]> xenbits.xensource.com Git - xen.git/commit
x86/mm/p2m: don't overwrite m2p entry of still-shared pages
authorAndres Lagar-Cavilla <andres@lagarcavilla.org>
Thu, 24 Nov 2011 15:20:57 +0000 (15:20 +0000)
committerAndres Lagar-Cavilla <andres@lagarcavilla.org>
Thu, 24 Nov 2011 15:20:57 +0000 (15:20 +0000)
commitc00341e69234028616f5ea20500099f9c141d24d
tree75a8fdaa4d61788d752b6da2f48fc811909cb8e4
parent5a7e47a73d26bea6bc2035901fab9271b41b95a4
x86/mm/p2m: don't overwrite m2p entry of still-shared pages

When updating a p2m mapping to shared, previous code
unconditionally set the m2p entry for the old mfn to invalid.
We now check that the old mfn does not remain shared.

Signed-off-by: Andres Lagar-Cavilla <andres@lagarcavilla.org>
Acked-by: Tim Deegan <tim@xen.org>
Committed-by: Tim Deegan <tim@xen.org>
xen/arch/x86/mm/p2m.c