kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Add microcode patch level dummy
@ 2009-01-05 15:02 Alexander Graf
  2009-01-05 16:28 ` Anthony Liguori
  2009-01-06  9:29 ` Avi Kivity
  0 siblings, 2 replies; 8+ messages in thread
From: Alexander Graf @ 2009-01-05 15:02 UTC (permalink / raw)
  To: kvm; +Cc: avi

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>

diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c
index f53be7e..3f88416 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)
 	case MSR_VM_CR:
 		*data = 0;
 		break;
+	case MSR_IA32_UCODE_REV:
+		*data = 0x01000065;
+		break;
 	default:
 		return kvm_get_msr_common(vcpu, ecx, data);
 	}

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-01-06  9:30 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-05 15:02 [PATCH] Add microcode patch level dummy Alexander Graf
2009-01-05 16:28 ` Anthony Liguori
2009-01-05 16:30   ` Alexander Graf
2009-01-05 16:38     ` David S. Ahern
2009-01-05 16:39       ` Alexander Graf
2009-01-05 16:40     ` Anthony Liguori
2009-01-05 17:08       ` Alexander Graf
2009-01-06  9:29 ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).