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

[Xen-devel] Re: Xen's use of PAT and PV guests



>>> Jeremy Fitzhardinge <jeremy@xxxxxxxx> 30.03.10 02:35 >>>
>It therefore seems to me that if I make Linux:
>
>   1. never set the PAT flag (which it won't anyway),
>   2. check that the value written to IA32_PAT is as expected, but
>      otherwise ignore it, and
>   3. use WT rather than WC
>
>then it all should just work.  I'm not completely confident in the third 
>point though, since I'm not quite sure about the full set of differences 
>between WT and WC, and their respective interactions with the MTRR, and 
>whether that would break anything.  At first glance it seems pretty safe 
>though...

No. For one, while WT is cachable (for reads), WC isn't.

Second, when the MTRRs indicate WC, using WT from PAT is not
recommended (and was earlier documented as undefined behavior).

Third, performance would likely suffer (MTRR-{WC,UC} + PAT-WT -> UC
whereas MTRR-{WC,UC} + PAT-WC -> WC).

Plus all of this would need revisiting once Linux decides to use WT
or WP.

Jan


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

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