diff options
author | Avi Kivity <avi@redhat.com> | 2008-12-29 10:32:28 -0500 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-03-24 05:02:54 -0400 |
commit | 61a6bd672bda3b9468bf5895c1be085c4e481138 (patch) | |
tree | 639265f9c99b090a7b39b2ca901b6a30fd8ac56c /arch | |
parent | 0f346074403bc109f9569f14b45cb09e83729032 (diff) |
KVM: Fallback support for MSR_VM_HSAVE_PA
Since we advertise MSR_VM_HSAVE_PA, userspace will attempt to read it
even on Intel. Implement fake support for this MSR to avoid the
warnings.
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/kvm/x86.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 2a4f3a697343..c3fbe8c55c13 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c | |||
@@ -742,6 +742,7 @@ int kvm_set_msr_common(struct kvm_vcpu *vcpu, u32 msr, u64 data) | |||
742 | break; | 742 | break; |
743 | case MSR_IA32_UCODE_REV: | 743 | case MSR_IA32_UCODE_REV: |
744 | case MSR_IA32_UCODE_WRITE: | 744 | case MSR_IA32_UCODE_WRITE: |
745 | case MSR_VM_HSAVE_PA: | ||
745 | break; | 746 | break; |
746 | case 0x200 ... 0x2ff: | 747 | case 0x200 ... 0x2ff: |
747 | return set_msr_mtrr(vcpu, msr, data); | 748 | return set_msr_mtrr(vcpu, msr, data); |
@@ -863,6 +864,7 @@ int kvm_get_msr_common(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata) | |||
863 | case MSR_IA32_LASTBRANCHTOIP: | 864 | case MSR_IA32_LASTBRANCHTOIP: |
864 | case MSR_IA32_LASTINTFROMIP: | 865 | case MSR_IA32_LASTINTFROMIP: |
865 | case MSR_IA32_LASTINTTOIP: | 866 | case MSR_IA32_LASTINTTOIP: |
867 | case MSR_VM_HSAVE_PA: | ||
866 | data = 0; | 868 | data = 0; |
867 | break; | 869 | break; |
868 | case MSR_MTRRcap: | 870 | case MSR_MTRRcap: |