[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH for-4.6] p2m/ept: Set the A bit only if PML is enabled



>>> On 16.09.15 at 21:47, <andrew.cooper3@xxxxxxxxxx> wrote:
> On 16/09/2015 09:47, Ross Lagerwall wrote:
>> Since commit 191b3f3344ee ("p2m/ept: enable PML in p2m-ept for
>> log-dirty"), the A and D bits of EPT paging entries are set
>> unconditionally, regardless of whether PML is enabled or not. This
>> causes a regression in Xen 4.6 on some processors due to Intel Errata
>> AVR41 -- HVM guests get severe memory corruption when the A bit is
>> set. The errata affects the Atom C2000 family (Avaton).
> 
> ^ Due to incorrect TLB flushing on mov to cr3.
> 
>>
>> Instead, only set the bits if PML is enabled.
> 
> (You have missed a SoB)
> 
> While this certainly does fix the issue, I am not certain if it is the
> correct fix; It relies on no affected systems actually supporting PML.
> 
> The root issue is that ept a/d bits may not be used, even just as
> software-defined bits on these systems, and calling this out should be
> as specific quirk against Avoton systems, rather than being related to PML.

Hmm, the erratum talks about bit 8 (the a one) only.

But beyond that I agree - this would better be keyed to the erratum
being present (i.e. also excluding where e.g. a microcode update
fixed it, or whatever else "It is possible for the firmware to contain a
workaround for this erratum" might mean in this case), and should
result in the a bit never getting set. While indeed ought to also mean
- just for the theoretical case - disabling use of PML on such systems.

Jan


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.