Re: [PATCH V2] powerpc/mm: Add validation for platform reserved memory ranges
From: Michael Ellerman <mpe@ellerman.id.au>
Date: 2016-04-11 13:32:04
On Mon, 2016-04-11 at 11:43 +0530, Anshuman Khandual wrote:
On 03/07/2016 03:25 PM, Anshuman Khandual wrote:quoted
For partition running on PHYP, there can be a adjunct partition which shares the virtual address range with the operating system. Virtual address ranges which can be used by the adjunct partition are communicated with virtual device node of the device tree with a property known as "ibm,reserved-virtual-addresses". This patch introduces a new function named 'validate_reserved_va_range' which is called during initialization to validate that these reserved virtual address ranges do not overlap with the address ranges used by the kernel for all supported memory contexts. This helps prevent the possibility of getting return codes similar to H_RESOURCE for H_PROTECT hcalls for conflicting HPTE entries. Signed-off-by: Anshuman Khandual <redacted> --- - Tested on both POWER8 LE and BE platforms Changes in V2: - Added braces to the definition of LINUX_VA_BITS - Adjusted tabs as spaces for the definition of PARTIAL_LINUX_VA_MASKmpe, any updates on this ?
I'm just starting to look at things for next. So will try and get to it this week. cheers