]> xenbits.xensource.com Git - xen.git/commit
x86/shadow: don't enable shadow mode with too small a shadow allocation
authorJan Beulich <jbeulich@suse.com>
Fri, 1 Feb 2019 10:45:01 +0000 (11:45 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 1 Feb 2019 10:45:01 +0000 (11:45 +0100)
commitc119267f25c5513e35b8c103ab6923c1d1075c68
tree0c486b651c17363fce7c2f3196f487a1162fb4a8
parent95e2f57788b5e18149578d34bf4af8802048b9bb
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>
master commit: 2634b997afabfdc5a972e07e536dfbc6febb4385
master date: 2018-11-30 12:10:39 +0100
xen/arch/x86/mm/shadow/common.c