xen: Allow unprivileged Xen domains to create iomap pages
authorAlex Nixon <alex.nixon@citrix.com>
Fri, 19 Feb 2010 18:31:06 +0000 (13:31 -0500)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 7 Jun 2010 18:33:13 +0000 (14:33 -0400)
commit7347b4082e55ac4a673f06a0a0ce25c37273c9ec
treeb39ef6d8aaf3081b97a12fa06ca86ffb668d1b68
parentc0011dbfce69467b23b08fb4a64c39a409a935fb
xen: Allow unprivileged Xen domains to create iomap pages

PV DomU domains are allowed to map hardware MFNs for PCI passthrough,
but are not generally allowed to map raw machine pages.  In particular,
various pieces of code try to map DMI and ACPI tables in the ISA ROM
range.  We disallow _PAGE_IOMAP for those mappings, so that they are
redirected to a set of local zeroed pages we reserve for that purpose.

[ Impact: prevent passthrough of ISA space, as we only allow PCI ]

Signed-off-by: Alex Nixon <alex.nixon@citrix.com>
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
arch/x86/xen/enlighten.c
arch/x86/xen/mmu.c