xen: correct race in alloc_p2m_pmd()
authorJuergen Gross <jgross@suse.com>
Mon, 12 Jan 2015 05:05:08 +0000 (06:05 +0100)
committerDavid Vrabel <david.vrabel@citrix.com>
Mon, 12 Jan 2015 10:09:40 +0000 (10:09 +0000)
commitf241b0b891c903da2465b7a98eaf650784e666da
treeff0134e6a0dd55e5066719de73dac85d8ea972fe
parent82c92ed1357bca22a5d637fbb93dab3eb18a8e8c
xen: correct race in alloc_p2m_pmd()

When allocating a new pmd for the linear mapped p2m list a check is
done for not introducing another pmd when this just happened on
another cpu. In this case the old pte pointer was returned which
points to the p2m_missing or p2m_identity page. The correct value
would be the pointer to the found new page.

Signed-off-by: Juergen Gross <jgross@suse.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
arch/x86/xen/p2m.c