x86/shadow: fold p2m page accounting into sh_min_allocation()
authorJan Beulich <jbeulich@suse.com>
Wed, 11 Sep 2019 12:54:34 +0000 (14:54 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 11 Sep 2019 12:54:34 +0000 (14:54 +0200)
commit8e8ae158c85fd8b26ff7c0abc52fc5767905d7f9
treeae0e36e6642f7ea914b775a0ff176a4e92b7897e
parent4e4a850aa42f9d1573978703e69f6177190dc9f7
x86/shadow: fold p2m page accounting into sh_min_allocation()

This is to make the function live up to the promise its name makes. And
it simplifies all callers.

Suggested-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Tim Deegan <tim@xen.org>
xen/arch/x86/mm/shadow/common.c