x86/mem_sharing: aquire extra references for pages with correct domain
authorTamas K Lengyel <tamas@tklengyel.com>
Thu, 25 Apr 2019 15:32:50 +0000 (09:32 -0600)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 13 May 2019 09:35:37 +0000 (10:35 +0100)
commitbad2c180988886e3232d2df24ecfc31b0cd51033
tree942eecacf6b417ec701a169f106e0e5c346de0a4
parente978e9ed9e1ff0dc326e72708ed03cac2ba41db8
x86/mem_sharing: aquire extra references for pages with correct domain

Patch 0502e0adae2 "x86: correct instances of PGC_allocated clearing" introduced
grabbing extra references for pages that drop references tied to PGC_allocated.
However, these pages are actually owned by dom_cow, resulting both sharing and
unsharing breaking.

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