aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2009-01-05 10:02:47 -0500
committerAvi Kivity <avi@redhat.com>2009-03-24 05:03:02 -0400
commitc8a73f186bf62235b6fb5dd52601d641917dd50b (patch)
tree8bd393676b54689bf3d0d1c609f80237992d0645
parent17071fe74fe0fbfdb03cd9b82f2490447cf1f986 (diff)
KVM: SVM: Add microcode patch level dummy
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>
-rw-r--r--arch/x86/kvm/svm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c
index b3a7a314d55c..3a60c3f04e65 100644
--- a/arch/x86/kvm/svm.c
+++ b/arch/x86/kvm/svm.c
@@ -1928,6 +1928,9 @@ static int svm_get_msr(struct kvm_vcpu *vcpu, unsigned ecx, u64 *data)
1928 case MSR_VM_CR: 1928 case MSR_VM_CR:
1929 *data = 0; 1929 *data = 0;
1930 break; 1930 break;
1931 case MSR_IA32_UCODE_REV:
1932 *data = 0x01000065;
1933 break;
1931 default: 1934 default:
1932 return kvm_get_msr_common(vcpu, ecx, data); 1935 return kvm_get_msr_common(vcpu, ecx, data);
1933 } 1936 }