KVM: SVM: copy instruction bytes from VMCB
authorAndre Przywara <andre.przywara@amd.com>
Tue, 21 Dec 2010 10:12:07 +0000 (11:12 +0100)
committerAvi Kivity <avi@redhat.com>
Wed, 12 Jan 2011 09:31:07 +0000 (11:31 +0200)
commitdc25e89e07d5ef31c476117d2c76b34dbb22196c
tree9fef452c4bd0704b9d74512a9a58dc5d5b742d53
parentdf4f3108562dc6f6ae6648f2698df7f4c9acf52d
KVM: SVM: copy instruction bytes from VMCB

In case of a nested page fault or an intercepted #PF newer SVM
implementations provide a copy of the faulting instruction bytes
in the VMCB.
Use these bytes to feed the instruction emulator and avoid the costly
guest instruction fetch in this case.

Signed-off-by: Andre Przywara <andre.przywara@amd.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/include/asm/kvm_emulate.h
arch/x86/include/asm/kvm_host.h
arch/x86/include/asm/svm.h
arch/x86/kvm/emulate.c
arch/x86/kvm/mmu.c
arch/x86/kvm/svm.c
arch/x86/kvm/vmx.c
arch/x86/kvm/x86.c