x86/mem-sharing: Don't leave the altp2m lock held when nominating a page
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 7 Nov 2018 12:25:26 +0000 (12:25 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 22 Nov 2018 17:58:46 +0000 (17:58 +0000)
commitd6e02850d3b45c9658457214a749cc48097bdef4
tree2ea372c49ef19df94147c6c0b8221b3f2a4f3614
parente7969e917cef276318f722a607985a2e896aeb94
x86/mem-sharing: Don't leave the altp2m lock held when nominating a page

get_gfn_type_access() internally takes the p2m lock, and nothing ever unlocks
it.  Switch to using the unlocked accessor instead.

This wasn't included in XSA-277 because neither mem-sharing nor altp2m are
supported.

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