x86: remove the Xen-specific _PAGE_IOMAP PTE flag
authorDavid Vrabel <david.vrabel@citrix.com>
Tue, 7 Jan 2014 17:03:06 +0000 (17:03 +0000)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Tue, 23 Sep 2014 13:36:20 +0000 (13:36 +0000)
commitf955371ca9d3986bca100666041fcfa9b6d21962
tree37433b98ce1cecf3865a398479b148a5ebfc2e9d
parent7f2f88224517cdaad68b772b2a2095b87dc72886
x86: remove the Xen-specific _PAGE_IOMAP PTE flag

The _PAGE_IO_MAP PTE flag was only used by Xen PV guests to mark PTEs
that were used to map I/O regions that are 1:1 in the p2m.  This
allowed Xen to obtain the correct PFN when converting the MFNs read
from a PTE back to their PFN.

Xen guests no longer use _PAGE_IOMAP for this. Instead mfn_to_pfn()
returns the correct PFN by using a combination of the m2p and p2m to
determine if an MFN corresponds to a 1:1 mapping in the the p2m.

Remove _PAGE_IOMAP, replacing it with _PAGE_UNUSED2 to allow for
future uses of the PTE flag.

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Acked-by: "H. Peter Anvin" <hpa@zytor.com>
arch/x86/include/asm/pgtable_types.h
arch/x86/mm/init_32.c
arch/x86/mm/init_64.c
arch/x86/pci/i386.c
arch/x86/xen/enlighten.c