x86 / p2m: replace page_list check in p2m_alloc_table...
authorPaul Durrant <paul@xen.org>
Tue, 10 Mar 2020 16:06:09 +0000 (17:06 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 10 Mar 2020 16:06:09 +0000 (17:06 +0100)
commit15b6242230ba1cf92c774ad2b14f4f25411aa644
tree3cba63ebbe8ae1397220eea12231de7dd40831dd
parent0198960edbf0e681cef59fd81c994643e7b148e0
x86 / p2m: replace page_list check in p2m_alloc_table...

... with a check of domain_tot_pages().

The check of page_list prevents the prior allocation of PGC_extra pages,
whereas what the code is trying to verify is that the toolstack has not
already RAM for the domain.

Signed-off-by: Paul Durrant <paul@xen.org>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/mm/p2m.c