]> xenbits.xensource.com Git - people/liuw/xen.git/commit
x86/iommu: add map-reserved dom0-iommu option to map reserved memory ranges
authorRoger Pau Monné <roger.pau@citrix.com>
Fri, 7 Sep 2018 09:08:00 +0000 (11:08 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 12 Sep 2018 14:33:29 +0000 (16:33 +0200)
commit0426787629417dcc338f03c1682b34d3540cb674
treee2f4342499052fa64b68b66ea58c0c2c89a316ef
parent6bf0be5af852f2317b75ab94f1d2bb045ebef452
x86/iommu: add map-reserved dom0-iommu option to map reserved memory ranges

Several people have reported hardware issues (malfunctioning USB
controllers) due to iommu page faults on Intel hardware. Those faults
are caused by missing RMRR (VTd) entries in the ACPI tables. Those can
be worked around on VTd hardware by manually adding RMRR entries on
the command line, this is however limited to Intel hardware and quite
cumbersome to do.

In order to solve those issues add a new dom0-iommu=map-reserved
option that identity maps all regions marked as reserved in the memory
map. Note that regions used by devices emulated by Xen (LAPIC, IO-APIC
or PCIe MCFG regions) are specifically avoided. Note that this option
is available to all Dom0 modes (as opposed to the inclusive option
which only works for PV Dom0).

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Paul Durrant <paul.durrant@citrix.com>
Acked-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
docs/misc/xen-command-line.markdown
xen/arch/x86/hvm/io.c
xen/drivers/passthrough/amd/pci_amd_iommu.c
xen/drivers/passthrough/arm/smmu.c
xen/drivers/passthrough/iommu.c
xen/drivers/passthrough/vtd/iommu.c
xen/drivers/passthrough/x86/iommu.c
xen/include/asm-x86/hvm/io.h
xen/include/xen/iommu.h