Subject: Re: Making MTRR support non-optional
To: None <port-i386@netbsd.org>
From: Joerg Sonnenberger <joerg@britannica.bec.de>
List: port-i386
Date: 12/15/2007 12:34:26
On Fri, Dec 14, 2007 at 05:26:30PM +0100, Manuel Bouyer wrote:
> On Fri, Dec 14, 2007 at 04:03:06PM +0100, Joerg Sonnenberger wrote:
> > Hi all,
> > can we just remove the MTRR option similiar to the various CPU class
> > options? It is a small amount of code and detected at runtime anyway.
> 
> It may cause problems for Xen; I'm not sure Xen2 allows control on
> the mtrr. I'm almost sure xeni386 won't compile with options MTRR
> right now. But I think this option is the default on amd64, so it should
> be easily fixed.

Can you add some checks to arch/x86/x86/cpu.c to disable it for Xen2 in
that case? Xen3 might need a different backend driver as well.

Joerg