aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/x86.c
diff options
context:
space:
mode:
authorNadav Har'El <nyh@il.ibm.com>2011-05-25 16:08:00 -0400
committerAvi Kivity <avi@redhat.com>2011-07-12 04:45:13 -0400
commit6a4d7550601b5b17df227959bdbec208384f729c (patch)
treeccc7403ae0e31c34ad5f769bbcaf445817092a6b /arch/x86/kvm/x86.c
parent63846663eac783eabbc1ab7c325e41a3627d986f (diff)
KVM: nVMX: Implement VMPTRST
This patch implements the VMPTRST instruction. Signed-off-by: Nadav Har'El <nyh@il.ibm.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'arch/x86/kvm/x86.c')
-rw-r--r--arch/x86/kvm/x86.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index c1b5a1817e43..de262a086863 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -3869,7 +3869,7 @@ static int kvm_read_guest_virt_system(struct x86_emulate_ctxt *ctxt,
3869 return kvm_read_guest_virt_helper(addr, val, bytes, vcpu, 0, exception); 3869 return kvm_read_guest_virt_helper(addr, val, bytes, vcpu, 0, exception);
3870} 3870}
3871 3871
3872static int kvm_write_guest_virt_system(struct x86_emulate_ctxt *ctxt, 3872int kvm_write_guest_virt_system(struct x86_emulate_ctxt *ctxt,
3873 gva_t addr, void *val, 3873 gva_t addr, void *val,
3874 unsigned int bytes, 3874 unsigned int bytes,
3875 struct x86_exception *exception) 3875 struct x86_exception *exception)
@@ -3901,6 +3901,7 @@ static int kvm_write_guest_virt_system(struct x86_emulate_ctxt *ctxt,
3901out: 3901out:
3902 return r; 3902 return r;
3903} 3903}
3904EXPORT_SYMBOL_GPL(kvm_write_guest_virt_system);
3904 3905
3905static int emulator_read_emulated(struct x86_emulate_ctxt *ctxt, 3906static int emulator_read_emulated(struct x86_emulate_ctxt *ctxt,
3906 unsigned long addr, 3907 unsigned long addr,