xen: handle access to MSR_AMD64_NB_CFG
PATCH 1/1 xen: handle access to MSR_AMD64_NB_CFG
Hi!
Attached patch handles HVM guest access to MSR_AMD64_NB_CFG.
Signed-off-by Christoph Egger <[email protected]>
Signature · 6 lines
---to satisfy European Law for business letters: Advanced Micro Devices GmbH Karl-Hammerschmidt-Str. 34, 85609 Dornach b. Muenchen Geschaeftsfuehrer: Thomas M. McCoy, Giuliano Meroni Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen Registergericht Muenchen, HRB Nr. 43632
xen/arch/x86/hvm/hvm.c +12 -0
@@ -1850,6 +1850,14 @@ int hvm_msr_read_intercept(struct cpu_us msr_content =0 ;break ; +case MSR_AMD64_NB_CFG : +/* This AMD-only register may be accessed if this HVM guest +* has been migrated to an Intel host. This fixes a guest crash +* in this case. +*/ + msr_content =0 ; +break ; +default : ret =mce_rdmsr (ecx, &lo, &hi);if ( ret <0 )
@@ -1949,6 +1957,10 @@ int hvm_msr_write_intercept(struct cpu_u goto gp_fault;break ; +case MSR_AMD64_NB_CFG : +/* ignore the write */ +break ; +default : ret =mce_wrmsr (ecx, msr_content);if ( ret <0 )
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel