aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/kvm/kvm.h
diff options
context:
space:
mode:
authorAvi Kivity <avi@qumranet.com>2007-07-17 07:20:30 -0400
committerAvi Kivity <avi@qumranet.com>2007-07-20 13:16:29 -0400
commit35f3f28613bc7263949db23a4c7078e425810c8c (patch)
tree134729d56cf503029e1e667df9bfe30b7410ad3b /drivers/kvm/kvm.h
parent90cb0529dd230548a7f0d6b315997be854caea1b (diff)
KVM: x86 emulator: implement rdmsr and wrmsr
Allow real-mode emulation of rdmsr and wrmsr. This allows smp Windows to boot, presumably for its sipi trampoline. Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/kvm.h')
-rw-r--r--drivers/kvm/kvm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/kvm/kvm.h b/drivers/kvm/kvm.h
index 6636ae2ee3b5..3ac9cbce3369 100644
--- a/drivers/kvm/kvm.h
+++ b/drivers/kvm/kvm.h
@@ -569,6 +569,8 @@ void realmode_lmsw(struct kvm_vcpu *vcpu, unsigned long msw,
569unsigned long realmode_get_cr(struct kvm_vcpu *vcpu, int cr); 569unsigned long realmode_get_cr(struct kvm_vcpu *vcpu, int cr);
570void realmode_set_cr(struct kvm_vcpu *vcpu, int cr, unsigned long value, 570void realmode_set_cr(struct kvm_vcpu *vcpu, int cr, unsigned long value,
571 unsigned long *rflags); 571 unsigned long *rflags);
572int kvm_get_msr(struct kvm_vcpu *vcpu, u32 msr_index, u64 *data);
573int kvm_set_msr(struct kvm_vcpu *vcpu, u32 msr_index, u64 data);
572 574
573struct x86_emulate_ctxt; 575struct x86_emulate_ctxt;
574 576