]> xenbits.xensource.com Git - people/royger/xen.git/commit
x86: correct instances of PGC_allocated clearing
authorJan Beulich <jbeulich@suse.com>
Wed, 21 Nov 2018 09:54:05 +0000 (10:54 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 21 Nov 2018 09:54:05 +0000 (10:54 +0100)
commit0502e0adae25f8d9e5b3f02320aa2859041f205d
treef2f9d1a567658e70a7e2da291cfd93cdba1923e7
parentf92212e1354cafb2cee741af653f12e273783cbf
x86: correct instances of PGC_allocated clearing

For domain heap pages assigned to a domain dropping the page reference
tied to PGC_allocated may not drop the last reference, as otherwise the
test_and_clear_bit() might already act on an unowned page.

Work around this where possible, but the need to acquire extra page
references is a fair hint that references should have been acquired in
other places instead.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Tamas K Lengyel <tamas@tklengyel.com>
xen/arch/x86/mm/mem_sharing.c
xen/common/memory.c