Re: [Xen-devel] [PATCH RFC 2/3] x86: Enable PAT to use cache mode translation tables

2014-08-25 Thread Juergen Gross
On 08/22/2014 11:32 AM, Jan Beulich wrote: On 19.08.14 at 15:25, wrote: @@ -118,8 +167,14 @@ void pat_init(void) PAT(4, WB) | PAT(5, WC) | PAT(6, UC_MINUS) | PAT(7, UC); /* Boot CPU check */ - if (!boot_pat_state) + if (!boot_pat_state) { rdmsr

Re: [Xen-devel] [PATCH RFC 2/3] x86: Enable PAT to use cache mode translation tables

2014-08-22 Thread Jan Beulich
>>> On 19.08.14 at 15:25, wrote: > @@ -118,8 +167,14 @@ void pat_init(void) > PAT(4, WB) | PAT(5, WC) | PAT(6, UC_MINUS) | PAT(7, UC); > > /* Boot CPU check */ > - if (!boot_pat_state) > + if (!boot_pat_state) { > rdmsrl(MSR_IA32_CR_PAT, boot_pat_state); >

[PATCH RFC 2/3] x86: Enable PAT to use cache mode translation tables

2014-08-19 Thread jgross
From: Juergen Gross Update the translation tables from cache mode to pgprot values according to the PAT settings. This enables changing the cache attributes of a PAT index in just one place without having to change at the users side. With this change it is possible to use the same kernel with di