mirror of
https://github.com/torvalds/linux.git
synced 2024-11-08 21:21:47 +00:00
KVM: Implement MSRs used by Hyper-V
Hyper-V uses some MSRs, some of which are actually reserved for BIOS usage. But let's be nice today and have it its way, because otherwise it fails terribly. [jaswinder: fix build for linux-next changes] Signed-off-by: Alexander Graf <agraf@suse.de> Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@gmail.com> Signed-off-by: Avi Kivity <avi@redhat.com>
This commit is contained in:
parent
0367b4330e
commit
3c5d0a44b0
@ -2131,6 +2131,11 @@ static int svm_set_msr(struct kvm_vcpu *vcpu, unsigned ecx, u64 data)
|
||||
case MSR_VM_HSAVE_PA:
|
||||
svm->hsave_msr = data;
|
||||
break;
|
||||
case MSR_VM_CR:
|
||||
case MSR_VM_IGNNE:
|
||||
case MSR_K7_HWCR:
|
||||
pr_unimpl(vcpu, "unimplemented wrmsr: 0x%x data 0x%llx\n", ecx, data);
|
||||
break;
|
||||
default:
|
||||
return kvm_set_msr_common(vcpu, ecx, data);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user