]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen/mmu: If the revector fails, don't attempt to revector anything else.
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 17 Aug 2012 13:35:31 +0000 (09:35 -0400)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 17 Aug 2012 14:25:12 +0000 (10:25 -0400)
commitdda7f430fd5e2c55d8df3a8629fbe79b5b5954ad
tree4ae668361010af4a9146598c2b44f7bcaf620ca4
parentae0544c5c3a2f0df662d34cd5c366afd301dea82
xen/mmu: If the revector fails, don't attempt to revector anything else.

If the P2M revectoring would fail, we would try to continue on by
cleaning the PMD for L1 (PTE) page-tables. The xen_cleanhighmap
is greedy and erases the PMD on both boundaries. Since the P2M
array can share the PMD, we would wipe out part of the __ka
that is still used in the P2M tree to point to P2M leafs.

This fixes it by bypassing the revectoring and continuing on.
If the revector fails, a nice WARN is printed so we can still
troubleshoot this.

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
arch/x86/xen/mmu.c