Re: [Xen-devel] Re: [PATCH 06/16] xen: disable PAT

From: Alan Cox
Date: Sun May 10 2009 - 09:30:49 EST


> > 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?

That would be a regression as far as Linux is concerned. They work
perfectly well providing you stick to four PAT entries (which is enough
for any Linux system). I'm not sure how Windows handles this but that
might also matter for Xen I guess.

> 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?).

Hiding it on errata hit processors if the guest cannot support PAT
safely on such processors sounds a good policy and its one being a
hypervisor you can do neatly.

There are quite a few different CPUs with PAT errata. I've no idea why
there are so many errata about that specific bit.

Alan
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/