]> xenbits.xensource.com Git - people/liuw/xen.git/commit
IOMMU: default to always quarantining PCI devices
authorJan Beulich <jbeulich@suse.com>
Tue, 26 Nov 2019 13:15:01 +0000 (14:15 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 26 Nov 2019 13:15:01 +0000 (14:15 +0100)
commitba2ab00bbb8c74e311a252d816d68dee47c779a0
tree5ad1c0f05e3b56c75bc1753224bd77dd142ebef8
parent8c79c129a6db2220c1089e0ce5fa49e7298b1d3e
IOMMU: default to always quarantining PCI devices

XSA-302 relies on the use of libxl's "assignable-add" feature to prepare
devices to be assigned to untrusted guests.

Unfortunately, this is not considered a strictly required step for
device assignment. The PCI passthrough documentation on the wiki
describes alternate ways of preparing devices for assignment, and
libvirt uses its own ways as well. Hosts where these alternate methods
are used will still leave the system in a vulnerable state after the
device comes back from a guest.

Default to always quarantining PCI devices, but provide a command line
option to revert back to prior behavior (such that people who both
sufficiently trust their guests and want to be able to use devices in
Dom0 again after they had been in use by a guest wouldn't need to
"manually" move such devices back from DomIO to Dom0).

This is XSA-306.

Reported-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Wei Liu <wl@xen.org>
docs/misc/xen-command-line.pandoc
xen/drivers/passthrough/iommu.c
xen/drivers/passthrough/pci.c
xen/include/xen/iommu.h