From: Jan Beulich Date: Fri, 28 Mar 2014 12:43:25 +0000 (+0100) Subject: x86/EPT: relax treatment of APIC MFN X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~5327 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=1f8b57779785bf9f55c16312bb1ec679929c314b;p=xen.git x86/EPT: relax treatment of APIC MFN There's no point in this being mapped UC by the guest due to using a respective PAT index - set the ignore-PAT flag to true. Signed-off-by: Jan Beulich Reviewed-by: Tim Deegan --- diff --git a/xen/arch/x86/hvm/mtrr.c b/xen/arch/x86/hvm/mtrr.c index 170c8c124a..df52a54f39 100644 --- a/xen/arch/x86/hvm/mtrr.c +++ b/xen/arch/x86/hvm/mtrr.c @@ -719,8 +719,12 @@ uint8_t epte_get_entry_emt(struct domain *d, unsigned long gfn, mfn_t mfn, } if ( direct_mmio ) - return mfn_x(mfn) != d->arch.hvm_domain.vmx.apic_access_mfn - ? MTRR_TYPE_UNCACHABLE : MTRR_TYPE_WRBACK; + { + if ( mfn_x(mfn) != d->arch.hvm_domain.vmx.apic_access_mfn ) + return MTRR_TYPE_UNCACHABLE; + *ipat = 1; + return MTRR_TYPE_WRBACK; + } if ( iommu_snoop ) {