From: Tim Deegan Subject: Re: [PATCH] [XEN-4.2] hvmloader: Workaround uncached P2M mappings being created when relocating RAM Date: Fri, 20 Feb 2015 12:27:33 +0100 Message-ID: <20150220112733.GA5957@deinos.phlegethon.org> References: <4c9ba9c07a76edcd7d61.1424350896@malcolmc.uk.xensource.com> <54E601240200007800061AE5@mail.emea.novell.com> <54E5F772.6050201@citrix.com> <54E60B830200007800061B42@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <54E60B830200007800061B42@mail.emea.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: Malcolm Crossley , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org At 15:12 +0000 on 19 Feb (1424355171), Jan Beulich wrote: > >>> On 19.02.15 at 15:47, wrote: > > Tim suggested posting this patch to see what general opinion was to this > > style of backport fix. I attempted to backport the EPT misconfig to Xen > > 4.4 but I ended up with quite a large number of patches and got > > concerned there would be a subtle error in my backport. > > Yeah, your change is certainly much smaller, so I'm not opposed > to going this route. I've Cc-ed Tim now so he could chime in if at > this point he thinks differently. I still think this is the better path - especially once it's been adjusted as Jan suggests to make the patch even smaller and clearer. One other comment, if you're respinning: > >>> + uint64_t mtrr_def_type = rdmsr(MSR_MTRRdefType); > >>> + wrmsr(MSR_MTRRdefType, (1u << 11) | 6); Can this magic constant have a comment? When it's used in cacheattr.c it's commented as '/* E, default type WB */'. Cheers, Tim.