]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
KVM: SVM: Add microcode patch level dummy
authorAlexander Graf <agraf@suse.de>
Mon, 5 Jan 2009 15:02:47 +0000 (16:02 +0100)
committerAvi Kivity <avi@redhat.com>
Tue, 24 Mar 2009 09:03:02 +0000 (11:03 +0200)
VMware ESX checks if the microcode level is correct when using a barcelona
CPU, in order to see if it actually can use SVM. Let's tell it we're on the
safe side...

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/svm.c

index b3a7a314d55c543124639e403bd4784522d99a58..3a60c3f04e65ed4afa8c5cf67c503112833c1456 100644 (file)
@@ -1928,6 +1928,9 @@ static int svm_get_msr(struct kvm_vcpu *vcpu, unsigned ecx, u64 *data)
        case MSR_VM_CR:
                *data = 0;
                break;
+       case MSR_IA32_UCODE_REV:
+               *data = 0x01000065;
+               break;
        default:
                return kvm_get_msr_common(vcpu, ecx, data);
        }