diff options
author | Avi Kivity <avi@qumranet.com> | 2007-07-17 07:20:30 -0400 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2007-07-20 13:16:29 -0400 |
commit | 35f3f28613bc7263949db23a4c7078e425810c8c (patch) | |
tree | 134729d56cf503029e1e667df9bfe30b7410ad3b /drivers/kvm/kvm.h | |
parent | 90cb0529dd230548a7f0d6b315997be854caea1b (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.h | 2 |
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, | |||
569 | unsigned long realmode_get_cr(struct kvm_vcpu *vcpu, int cr); | 569 | unsigned long realmode_get_cr(struct kvm_vcpu *vcpu, int cr); |
570 | void realmode_set_cr(struct kvm_vcpu *vcpu, int cr, unsigned long value, | 570 | void realmode_set_cr(struct kvm_vcpu *vcpu, int cr, unsigned long value, |
571 | unsigned long *rflags); | 571 | unsigned long *rflags); |
572 | int kvm_get_msr(struct kvm_vcpu *vcpu, u32 msr_index, u64 *data); | ||
573 | int kvm_set_msr(struct kvm_vcpu *vcpu, u32 msr_index, u64 data); | ||
572 | 574 | ||
573 | struct x86_emulate_ctxt; | 575 | struct x86_emulate_ctxt; |
574 | 576 | ||