KVM: handle AMD microcode MSR
authorAndre Przywara <andre.przywara@amd.com>
Fri, 3 Jul 2009 14:00:14 +0000 (16:00 +0200)
committerAvi Kivity <avi@redhat.com>
Thu, 10 Sep 2009 05:33:08 +0000 (08:33 +0300)
Windows 7 tries to update the CPU's microcode on some processors,
so we ignore the MSR write here. The patchlevel register is already handled
(returning 0), because the MSR number is the same as Intel's.

Signed-off-by: Andre Przywara <andre.przywara@amd.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/x86.c

index a50c832..6dde99c 100644 (file)
@@ -861,6 +861,7 @@ int kvm_set_msr_common(struct kvm_vcpu *vcpu, u32 msr, u64 data)
        case MSR_IA32_UCODE_REV:
        case MSR_IA32_UCODE_WRITE:
        case MSR_VM_HSAVE_PA:
+       case MSR_AMD64_PATCH_LOADER:
                break;
        case 0x200 ... 0x2ff:
                return set_msr_mtrr(vcpu, msr, data);