diff options
author | Nadav Har'El <nyh@il.ibm.com> | 2011-05-25 16:04:56 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2011-07-12 04:45:11 -0400 |
commit | 064aea774768749c6fd308b37818ea3a9600583d (patch) | |
tree | 2661c607089ed44b71f6478d376de6ae571da37f /arch/x86/kvm/x86.h | |
parent | b87a51ae2893a5907f796eadb4beb60747a69209 (diff) |
KVM: nVMX: Decoding memory operands of VMX instructions
This patch includes a utility function for decoding pointer operands of VMX
instructions issued by L1 (a guest hypervisor)
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.h')
-rw-r--r-- | arch/x86/kvm/x86.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/x86/kvm/x86.h b/arch/x86/kvm/x86.h index e407ed3df817..6f150539b262 100644 --- a/arch/x86/kvm/x86.h +++ b/arch/x86/kvm/x86.h | |||
@@ -81,4 +81,8 @@ int kvm_inject_realmode_interrupt(struct kvm_vcpu *vcpu, int irq, int inc_eip); | |||
81 | 81 | ||
82 | void kvm_write_tsc(struct kvm_vcpu *vcpu, u64 data); | 82 | void kvm_write_tsc(struct kvm_vcpu *vcpu, u64 data); |
83 | 83 | ||
84 | int kvm_read_guest_virt(struct x86_emulate_ctxt *ctxt, | ||
85 | gva_t addr, void *val, unsigned int bytes, | ||
86 | struct x86_exception *exception); | ||
87 | |||
84 | #endif | 88 | #endif |