mem_sharing_nominate_page: p2mt should never change before p2m_change_type()
authorNai Xia <nai.xia@gmail.com>
Tue, 6 Aug 2013 16:25:48 +0000 (00:25 +0800)
committerTim Deegan <tim@xen.org>
Thu, 8 Aug 2013 10:19:46 +0000 (11:19 +0100)
commitfa89d08f329e495f20a561a0dac80c325c8b7784
treeb17e7d638ab34b8535ac2e36c97962edd49cb23f
parentda56976f30dcea66c09c2d63554228bbf8cc1d34
mem_sharing_nominate_page: p2mt should never change before p2m_change_type()

The p2mt change check for p2m_change_type() was first introduced when
this code path was not protected by p2m_lock().  Now this code path is
protected by p2m_lock. So p2mt should never change before
p2m_change_type().

Signed-off-by: Nai Xia <nai.xia@gmail.com>
Acked-by: Andres Lagar-Cavilla <andres@lagarcavilla.org>
Acked-by: Tim Deegan <tim@xen.org>
xen/arch/x86/mm/mem_sharing.c