xen-devel
Re: [Xen-devel] Re: [PATCH 06/16] xen: disable PAT
To: |
"H. Peter Anvin" <hpa@xxxxxxxxx> |
Subject: |
Re: [Xen-devel] Re: [PATCH 06/16] xen: disable PAT |
From: |
Keir Fraser <keir.fraser@xxxxxxxxxxxxx> |
Date: |
Sun, 10 May 2009 10:21:48 +0100 |
Cc: |
Jeremy Fitzhardinge <jeremy@xxxxxxxx>, Jeremy Fitzhardinge <Jeremy.Fitzhardinge@xxxxxxxxxx>, Suresh Siddha <suresh.b.siddha@xxxxxxxxx>, the arch/x86 maintainers <x86@xxxxxxxxxx>, Kernel Mailing List <linux-kernel@xxxxxxxxxxxxxxx>, Ian Campbell <Ian.Campbell@xxxxxxxxxxxxx>, Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>, Thomas Gleixner <tglx@xxxxxxxxxxxxx>, "Pallipadi, Venkatesh" <venkatesh.pallipadi@xxxxxxxxx>, "Linux@xxxxxxxxx" <Linux@xxxxxxxxx>, Lu <yinghai@xxxxxxxxxx>, Ingo Molnar <mingo@xxxxxxx>, Alan Cox <alan@xxxxxxxxxxxxxxxxxxx>, Arjan van de Ven <arjan@xxxxxxxxxxxxx> |
Delivery-date: |
Sun, 10 May 2009 02:22:36 -0700 |
Envelope-to: |
www-data@xxxxxxxxxxxxxxxxxxx |
In-reply-to: |
<4A05CD29.6050505@xxxxxxxxx> |
List-help: |
<mailto:xen-devel-request@lists.xensource.com?subject=help> |
List-id: |
Xen developer discussion <xen-devel.lists.xensource.com> |
List-post: |
<mailto:xen-devel@lists.xensource.com> |
List-subscribe: |
<http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe> |
List-unsubscribe: |
<http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe> |
Sender: |
xen-devel-bounces@xxxxxxxxxxxxxxxxxxx |
Thread-index: |
AcnQ1RsVsbaPt7aeQIGlps/deltZxwAe6Nkw |
Thread-topic: |
[Xen-devel] Re: [PATCH 06/16] xen: disable PAT |
User-agent: |
Microsoft-Entourage/12.17.0.090302 |
On 09/05/2009 19:36, "H. Peter Anvin" <hpa@xxxxxxxxx> wrote:
>> My suggestion is that Xen changes its PAT[1] from WT to WC. AFAIK only
>> suse's Linux port is currently using Xen's PAT support, and it does not
>> actually use the WT cache attribute. Then Xen's PAT[0-3] would match what
>> Linux expects, and Linux apparently does not risk using PAT[4-7] because of
>> processor errata so their values are irrelevant. Linux can check that it is
>> running on Xen with suitable PAT setup by reading MSR_IA32_CR_PAT and
>> checking PAT[0-3], and only enable PAT usage in case of a match.
>
> There exists at least one processor erratum where the CPU will use
> PAT[4-7] when the user requested PAT[0-3]. For those CPUs, it is unsafe
> for *any* OS to have PAT[4-7] != PAT[0-3].
Would it be unreasonable for us to disable PAT on such processors?
An alternative would be to set up PAT according to a new elfnote in the dom0
kernel image, and then only expose the PAT feature flag to domU kernels that
have matching PAT configuration. No elfnote would mean use Xen's existing
PAT setup (or if that's very dangerous then disable PAT altogether, perhaps
dependent on CPU model/stepping?).
-- Keir
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [GIT PULL] xen: core dom0 support, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 12/16] xen/dom0: add XEN_DOM0 config option, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 11/16] xen: allow enable use of VGA console on dom0, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 10/16] xen: clear reserved bits in l3 entries given in the initial pagetables, Jeremy Fitzhardinge
- [Xen-devel] [PATCH 06/16] xen: disable PAT, Jeremy Fitzhardinge
- [Xen-devel] Re: [PATCH 06/16] xen: disable PAT, Ingo Molnar
- [Xen-devel] Re: [PATCH 06/16] xen: disable PAT, Ian Campbell
- [Xen-devel] Re: [PATCH 06/16] xen: disable PAT, Alan Cox
- Re: [Xen-devel] Re: [PATCH 06/16] xen: disable PAT, Keir Fraser
- Re: [Xen-devel] Re: [PATCH 06/16] xen: disable PAT, H. Peter Anvin
- Re: [Xen-devel] Re: [PATCH 06/16] xen: disable PAT,
Keir Fraser <=
- Re: [Xen-devel] Re: [PATCH 06/16] xen: disable PAT, Alan Cox
- Re: [Xen-devel] Re: [PATCH 06/16] xen: disable PAT, Keir Fraser
- Re: [Xen-devel] Re: [PATCH 06/16] xen: disable PAT, Jan Beulich
- Re: [Xen-devel] Re: [PATCH 06/16] xen: disable PAT, Keir Fraser
- Re: [Xen-devel] Re: [PATCH 06/16] xen: disable PAT, Jeremy Fitzhardinge
- Re: [Xen-devel] Re: [PATCH 06/16] xen: disable PAT, H. Peter Anvin
- Re: [Xen-devel] Re: [PATCH 06/16] xen: disable PAT, Ingo Molnar
[Xen-devel] [PATCH 05/16] xen mtrr: Add mtrr_ops support for Xen mtrr, Jeremy Fitzhardinge
[Xen-devel] [PATCH 02/16] xen dom0: Initialize xenbus for dom0., Jeremy Fitzhardinge
|
|
|