altp2m: don't attempt to unshare pages during change_altp2m_gfn op
authorTamas K Lengyel <tamas.lengyel@zentific.com>
Fri, 14 Oct 2016 00:00:47 +0000 (18:00 -0600)
committerGeorge Dunlap <george.dunlap@citrix.com>
Thu, 20 Oct 2016 16:22:44 +0000 (17:22 +0100)
commit31ba5a9b92ac00c135e46f54052336945b77f159
tree87c04d181236047617f6138d4ea139ae1f12b88f
parent4abcd521bf460fb3a247a7754698f98526b39635
altp2m: don't attempt to unshare pages during change_altp2m_gfn op

Attempting to change gfn mappings with altp2m on a memory shared page results
in a lock-order violation (mm locking order violation: 282 > 254), which
crashes the hypervisor. Don't attempt to automatically unshare such pages and
just fall back to failing the op if the page type is not correct.

Signed-off-by: Tamas K Lengyel <tamas.lengyel@zentific.com>
Reviewed-by: George Dunlap <george.dunlap@citrix.com>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
xen/arch/x86/mm/p2m.c