tools/libxl: don't allow IOMMU usage with PoD
authorRoger Pau Monné <roger.pau@citrix.com>
Thu, 10 Mar 2022 08:46:28 +0000 (09:46 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 10 Mar 2022 08:46:28 +0000 (09:46 +0100)
commit38fbfddf660de9572b1c906315a345b1470d3a04
tree053b820acdd53302b91879ce18a86cba77f6d255
parent99fa2c61ae1d3b83d7ef3c339568102a1252fafa
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>
master commit: 07449ecfa42532495156fa342af2112e3e31dd3f
master date: 2022-02-18 09:03:08 +0100
tools/libs/light/libxl_create.c