Re: [PATCH v3 3/10] x86/asm: Fix pud/pmd interfaces to handle large PAT bit

2015-08-25 Thread Toshi Kani
On Tue, 2015-08-25 at 10:16 +0200, Thomas Gleixner wrote: > On Wed, 5 Aug 2015, Toshi Kani wrote: > > > The PAT bit gets relocated to bit 12 when PUD and PMD mappings are > > used. This bit 12, however, is not covered by PTE_FLAGS_MASK, which > > is corrently used for masking pfn and flags for al

Re: [PATCH v3 3/10] x86/asm: Fix pud/pmd interfaces to handle large PAT bit

2015-08-25 Thread Thomas Gleixner
On Wed, 5 Aug 2015, Toshi Kani wrote: > The PAT bit gets relocated to bit 12 when PUD and PMD mappings are > used. This bit 12, however, is not covered by PTE_FLAGS_MASK, which > is corrently used for masking pfn and flags for all cases. > > Fix pud/pmd interfaces to handle pfn and flags properl

[PATCH v3 3/10] x86/asm: Fix pud/pmd interfaces to handle large PAT bit

2015-08-05 Thread Toshi Kani
The PAT bit gets relocated to bit 12 when PUD and PMD mappings are used. This bit 12, however, is not covered by PTE_FLAGS_MASK, which is corrently used for masking pfn and flags for all cases. Fix pud/pmd interfaces to handle pfn and flags properly by using P?D_PAGE_MASK when PUD/PMD mappings ar