xen: PAT support on AMD
PATCH 1/1 xen: PAT support on AMD
Hi!
Attached patch adds PAT support on AMD CPUs.
Signed-off-by Christoph Egger <[email protected]>
Keir: Please apply this to Xen-3.4-testing and Xen-3.3-testing, too.
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/svm/vmcb.c +3 -0
@@ -155,6 +155,7 @@ static int construct_vmcb(struct vcpu *vsvm_disable_intercept_for_msr (v,MSR_LSTAR );svm_disable_intercept_for_msr (v,MSR_STAR );svm_disable_intercept_for_msr (v,MSR_SYSCALL_MASK ); +svm_disable_intercept_for_msr (v,MSR_IA32_CR_PAT ); vmcb->msrpm_base_pa = (u64 )virt_to_maddr (arch_svm->msrpm); vmcb->iopm_base_pa = (u64 )virt_to_maddr (hvm_io_bitmap);
@@ -247,6 +250,8 @@ static int construct_vmcb(struct vcpu *velse { vmcb->exception_intercepts |= (1U << TRAP_page_fault); +if ( cpu_has_pat ) +svm_enable_intercept_for_msr (v,MSR_IA32_CR_PAT ); }if ( cpu_has_pause_filter )
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel