Re: [PATCH V4 1/3] x86: Make page cache mode a real type

2014-10-29 Thread Ingo Molnar
* Juergen Gross wrote: > On 10/29/2014 11:28 AM, Ingo Molnar wrote: > > > >* Thomas Gleixner wrote: > > > >>On Mon, 27 Oct 2014, Juergen Gross wrote: > >>>At the moment there are a lot of places that handle setting or getting > >>>the page cache mode by treating the pgprot bits equal to the cac

Re: [PATCH V4 1/3] x86: Make page cache mode a real type

2014-10-29 Thread Juergen Gross
On 10/29/2014 11:28 AM, Ingo Molnar wrote: * Thomas Gleixner wrote: On Mon, 27 Oct 2014, Juergen Gross wrote: At the moment there are a lot of places that handle setting or getting the page cache mode by treating the pgprot bits equal to the cache mode. This is only true because there are a

Re: [PATCH V4 1/3] x86: Make page cache mode a real type

2014-10-29 Thread Ingo Molnar
* Thomas Gleixner wrote: > On Mon, 27 Oct 2014, Juergen Gross wrote: > > At the moment there are a lot of places that handle setting or getting > > the page cache mode by treating the pgprot bits equal to the cache mode. > > This is only true because there are a lot of assumptions about the setu

Re: [PATCH V4 1/3] x86: Make page cache mode a real type

2014-10-28 Thread Thomas Gleixner
On Mon, 27 Oct 2014, Juergen Gross wrote: > At the moment there are a lot of places that handle setting or getting > the page cache mode by treating the pgprot bits equal to the cache mode. > This is only true because there are a lot of assumptions about the setup > of the PAT MSR. Otherwise the ca

[PATCH V4 1/3] x86: Make page cache mode a real type

2014-10-26 Thread Juergen Gross
At the moment there are a lot of places that handle setting or getting the page cache mode by treating the pgprot bits equal to the cache mode. This is only true because there are a lot of assumptions about the setup of the PAT MSR. Otherwise the cache type needs to get translated into pgprot bits