]> xenbits.xensource.com Git - xen.git/commit
tools/libxl: don't allow IOMMU usage with PoD
authorRoger Pau Monné <roger.pau@citrix.com>
Fri, 18 Feb 2022 08:03:08 +0000 (09:03 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 18 Feb 2022 08:03:08 +0000 (09:03 +0100)
commit07449ecfa42532495156fa342af2112e3e31dd3f
tree872b6cf1c6c82decea45ad04188216390ad0d517
parentaeaed47023377a20d0f77c82e54f504e99468fb6
tools/libxl: don't allow IOMMU usage with PoD

Prevent libxl from creating guests that attempts to use PoD together
with an IOMMU, even if no devices are actually assigned.

While the hypervisor could support using PoD together with an IOMMU as
long as no devices are assigned, such usage seems doubtful. There's no
guarantee the guest has PoD no longer be active, and thus a later
assignment of a PCI device to such domain could fail.

Preventing the usage of PoD together with an IOMMU at guest creation
avoids having to add checks for active PoD entries in the device
assignment paths.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Anthony PERARD <anthony.perard@citrix.com>
tools/libs/light/libxl_create.c