From: Jan Beulich Date: Thu, 15 Mar 2012 14:09:18 +0000 (+0100) Subject: svm: amend c/s 24990:322300fd2ebd (fake BU_CFG MSR on AMD revF) X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a13b23fffeff0e95699b299f73cb34900fe5c89e;p=xen.git svm: amend c/s 24990:322300fd2ebd (fake BU_CFG MSR on AMD revF) Let's restrict such a hack to the known affected family. Signed-off-by: Jan Beulich Acked-by: Keir Fraser Acked-by: George Dunlap --- diff --git a/xen/arch/x86/hvm/svm/svm.c b/xen/arch/x86/hvm/svm/svm.c index f87afd90e2..c05df20bf4 100644 --- a/xen/arch/x86/hvm/svm/svm.c +++ b/xen/arch/x86/hvm/svm/svm.c @@ -1505,7 +1505,7 @@ static int svm_msr_read_intercept(unsigned int msr, uint64_t *msr_content) if ( rdmsr_safe(msr, *msr_content) == 0 ) break; - if ( msr == MSR_F10_BU_CFG ) + if ( boot_cpu_data.x86 == 0xf && msr == MSR_F10_BU_CFG ) { /* Win2k8 x64 reads this MSR on revF chips, where it * wasn't publically available; it uses a magic constant