]> xenbits.xensource.com Git - xen.git/commit
IOMMU/PCI: propagate get_device_group_id() failure
authorJan Beulich <jbeulich@suse.com>
Fri, 18 Feb 2022 13:19:42 +0000 (14:19 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 18 Feb 2022 13:19:42 +0000 (14:19 +0100)
commit8518f96f13fb0ac2dd9791014bfb0d1b01f34e4c
treecd186b7ef70c69fc4253d4711ffce88e21c0130e
parent89d5b779a854068a3194170b505f5e1f418ec082
IOMMU/PCI: propagate get_device_group_id() failure

The VT-d hook can indicate an error, which shouldn't be ignored. Convert
the hook's return value to a proper error code, and let that bubble up.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Paul Durrant <paul@xen.org>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
xen/drivers/passthrough/pci.c
xen/drivers/passthrough/vtd/iommu.c