xen: fix the check of e_pfn in xen_find_pfn_range
authorZhenzhong Duan <zhenzhong.duan@oracle.com>
Tue, 27 Oct 2015 19:19:52 +0000 (15:19 -0400)
committerDavid Vrabel <david.vrabel@citrix.com>
Mon, 2 Nov 2015 17:47:38 +0000 (17:47 +0000)
commitabed7d0710e8f892c267932a9492ccf447674fb8
treef245cd24450ec88d959407014d06b18761e005aa
parent914beb9fc26d6225295b8315ab54026f8f22755c
xen: fix the check of e_pfn in xen_find_pfn_range

On some NUMA system, after dom0 up, we see below warning even if there are
enough pfn ranges that could be used for remapping:
"Unable to find available pfn range, not remapping identity pages"

Fix it to avoid getting a memory region of zero size in xen_find_pfn_range.

Signed-off-by: Zhenzhong Duan <zhenzhong.duan@oracle.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
arch/x86/xen/setup.c