x86/xen: fix set_phys_range_identity() if pfn_e > MAX_P2M_PFN
authorDavid Vrabel <david.vrabel@citrix.com>
Mon, 6 Jan 2014 11:55:13 +0000 (11:55 +0000)
committerDavid Vrabel <david.vrabel@citrix.com>
Thu, 15 May 2014 15:13:23 +0000 (16:13 +0100)
commita9b5bff66b2a63f7d0f42434f5da9024b442159c
treecbb48a2c20b256abb44fbe157b98c2981dffa546
parentfcca2e3119f3771dcfd0b03b3718b3c51b5f21c3
x86/xen: fix set_phys_range_identity() if pfn_e > MAX_P2M_PFN

Allow set_phys_range_identity() to work with a range that overlaps
MAX_P2M_PFN by clamping pfn_e to MAX_P2M_PFN.

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tested-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
arch/x86/xen/p2m.c