summaryrefslogtreecommitdiff
path: root/arch/x86/include/asm
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2011-11-10 14:57:23 +0200
committerAvi Kivity <avi@redhat.com>2011-12-27 11:24:35 +0200
commit022cd0e84020eec8b589bc119699c935c7b29584 (patch)
tree255dbe0fd7fdfb00bd23b23000d69a1a7d8144bf /arch/x86/include/asm
parentf5132b01386b5a67f1ff673bb2b96a507a3f7e41 (diff)
downloadlinux-stable-022cd0e84020eec8b589bc119699c935c7b29584.tar.gz
linux-stable-022cd0e84020eec8b589bc119699c935c7b29584.tar.bz2
linux-stable-022cd0e84020eec8b589bc119699c935c7b29584.zip
KVM: Add generic RDPMC support
Add a helper function that emulates the RDPMC instruction operation. Signed-off-by: Avi Kivity <avi@redhat.com> Signed-off-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/include/asm')
-rw-r--r--arch/x86/include/asm/kvm_host.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h
index fb60ffdb4e43..52d6640a5ca1 100644
--- a/arch/x86/include/asm/kvm_host.h
+++ b/arch/x86/include/asm/kvm_host.h
@@ -760,6 +760,7 @@ int kvm_set_msr_common(struct kvm_vcpu *vcpu, u32 msr, u64 data);
unsigned long kvm_get_rflags(struct kvm_vcpu *vcpu);
void kvm_set_rflags(struct kvm_vcpu *vcpu, unsigned long rflags);
+bool kvm_rdpmc(struct kvm_vcpu *vcpu);
void kvm_queue_exception(struct kvm_vcpu *vcpu, unsigned nr);
void kvm_queue_exception_e(struct kvm_vcpu *vcpu, unsigned nr, u32 error_code);