]> xenbits.xensource.com Git - people/hx242/xen.git/commit
x86/shadow: don't enable shadow mode with too small a shadow allocation
authorJan Beulich <jbeulich@suse.com>
Fri, 30 Nov 2018 11:10:39 +0000 (12:10 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 30 Nov 2018 11:10:39 +0000 (12:10 +0100)
commit2634b997afabfdc5a972e07e536dfbc6febb4385
treeeab29ebf5ceee0be620dcfcb5130b1457a05e732
parentfad6ba64a8c98bebb9374f390cc255fac05237ab
x86/shadow: don't enable shadow mode with too small a shadow allocation

We've had more than one report of host crashes after failed migration,
and in at least one case we've had a hint towards a too far shrunk
shadow allocation pool. Instead of just checking the pool for being
empty, check whether the pool is smaller than what
shadow_set_allocation() would minimally bump it to if it was invoked in
the first place.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Tim Deegan <tim@xen.org>
xen/arch/x86/mm/shadow/common.c