xen/mmu: Cleanup xen_pagetable_p2m_copy a bit.
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 3 Jan 2014 19:08:39 +0000 (14:08 -0500)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 6 Jan 2014 15:44:04 +0000 (10:44 -0500)
commitb621e157ba48fb7d36945405de68c5fa25e7b73c
tree410dbd6445045602471d4b47f032c6260e91e5fb
parent32df75cd148b43e007848ddbfdb1ea25535114cb
xen/mmu: Cleanup xen_pagetable_p2m_copy a bit.

Stefano noticed that the code runs only under 64-bit so
the comments about 32-bit are pointless.

Also we change the condition for xen_revector_p2m_tree
returning the same value (because it could not allocate
a swath of space to put the new P2M in) or it had been
called once already. In such we return early from the
function.

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
arch/x86/xen/mmu.c