]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen/mm: zero PTEs for non-present MFNs in the initial page table
authorDavid Vrabel <david.vrabel@citrix.com>
Mon, 9 Jul 2012 10:39:06 +0000 (11:39 +0100)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 19 Jul 2012 23:06:13 +0000 (19:06 -0400)
commit103e138e75f81bd064bc79e5333da80b6b9afc85
treea77a4464c508823aa29ca5ae1226e0239c865e6e
parente812c7e059ba51e76510ea1ebc8db68acb312bad
xen/mm: zero PTEs for non-present MFNs in the initial page table

When constructing the initial page tables, if the MFN for a usable PFN
is missing in the p2m then that frame is initially ballooned out.  In
this case, zero the PTE (as in decrease_reservation() in
drivers/xen/balloon.c).

This is obviously safe instead of having an valid PTE with an MFN of
INVALID_P2M_ENTRY (~0).

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