[PATCH v3 2/6] x86/mm/pageattr: Ensure cpa->pfn only contains page frame numbers

2015-11-23 Thread Matt Fleming
The x86 pageattr code is confused about the data that is stored in cpa->pfn, sometimes it's treated as a page frame number, sometimes it's treated as an unshifted physical address, and in one place it's treated as a pte. The result of this is that the mapping functions do not map the intended

[PATCH v3 2/6] x86/mm/pageattr: Ensure cpa->pfn only contains page frame numbers

2015-11-23 Thread Matt Fleming
The x86 pageattr code is confused about the data that is stored in cpa->pfn, sometimes it's treated as a page frame number, sometimes it's treated as an unshifted physical address, and in one place it's treated as a pte. The result of this is that the mapping functions do not map the intended