]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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)
committerJoao Martins <joao.m.martins@oracle.com>
Sun, 27 Mar 2016 01:01:27 +0000 (02:01 +0100)
commit26be75a4d716144b3099f068abaac431dd547fee
tree1db42b9c0de1a2b2e0d334bbfe347cb599821f52
parentd4dc32d2d8d49fe8721d842a9596308ddba80a50
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>
(cherry picked from commit abed7d0710e8f892c267932a9492ccf447674fb8)
Signed-off-by: Joao Martins <joao.m.martins@oracle.com>
arch/x86/xen/setup.c