]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit94805fece61c433fcffc2cdfe942ea5b733e23dc
treeb39ef6d8aaf3081b97a12fa06ca86ffb668d1b68
parentd77a72f183c0e02fef19bf43463086b862fff43d
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