]> xenbits.xensource.com Git - xen.git/commit
x86/mm: account for PGT_pae_xen_l2 in recently added assertion
authorJan Beulich <jbeulich@suse.com>
Fri, 10 Jun 2022 08:21:06 +0000 (10:21 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 10 Jun 2022 08:21:06 +0000 (10:21 +0200)
commitc2095ac76be0f4a1940346c9ffb49fb967345060
treedbd329c9dc6ec03aaac2c1c7b31f1c21c2d703d6
parentc1c9cae3a9633054b177c5de21ad7268162b2f2c
x86/mm: account for PGT_pae_xen_l2 in recently added assertion

While PGT_pae_xen_l2 will be zapped once the type refcount of an L2 page
reaches zero, it'll be retained as long as the type refcount is non-
zero. Hence any checking against the requested type needs to either zap
the bit from the type or include it in the used mask.

Fixes: 9186e96b199e ("x86/pv: Clean up _get_page_type()")
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/mm.c