]> git.karo-electronics.de Git - linux-beck.git/commitdiff
KVM: Fallback support for MSR_VM_HSAVE_PA
authorAvi Kivity <avi@redhat.com>
Mon, 29 Dec 2008 15:32:28 +0000 (17:32 +0200)
committerAvi Kivity <avi@redhat.com>
Tue, 24 Mar 2009 09:02:54 +0000 (11:02 +0200)
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>
arch/x86/kvm/x86.c

index 2a4f3a69734313ea027a1d79cf747735b9ad02ec..c3fbe8c55c136e7b494832fdcdd8ae9d82a82878 100644 (file)
@@ -742,6 +742,7 @@ int kvm_set_msr_common(struct kvm_vcpu *vcpu, u32 msr, u64 data)
                break;
        case MSR_IA32_UCODE_REV:
        case MSR_IA32_UCODE_WRITE:
+       case MSR_VM_HSAVE_PA:
                break;
        case 0x200 ... 0x2ff:
                return set_msr_mtrr(vcpu, msr, data);
@@ -863,6 +864,7 @@ int kvm_get_msr_common(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata)
        case MSR_IA32_LASTBRANCHTOIP:
        case MSR_IA32_LASTINTFROMIP:
        case MSR_IA32_LASTINTTOIP:
+       case MSR_VM_HSAVE_PA:
                data = 0;
                break;
        case MSR_MTRRcap: