vfio: reusing address space for the same iommu group devices
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | vfio: reusing address space for the same IOMMU group deviceshw/ include/ | +29 | 0 replies | |
| 2/3 | vfio: invoke looking up address space.hw/ | +7 | 0 replies | |
| 3/3 | vfio: remove checking duplicated vfio devicehw/ | +0 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [Qemu-devel] [Patch 0/3] vfio: reusing address space for the same iommu group devices
From: Wei Xu <[email protected]>
Recently I have been testing passing through 2 ixgbe(82599ES) nics which belong to the same iommu group to a guest with virtual iommu(vIOMMU) on my desktop, while vfio failed to realize the second device and prompted error message as 'group xxx used in multiple address spaces'.
It turned out to be that vtd doesn't know any group info while choosing an address space for the two devices, therefore it creates two separate address space for each which breaks granularity isolation.
This patch fixes this by looking up if there is any exist device within the same iommu group and shares the address space before creating a new one.
I am not sure if this fixes the problem in a correct way due to my limited knowledge about vfio, please come back to me for any feedback & comments, Thanks.
Wei Xu (3):
vfio: reusing address space for the same iommu group devices
vfio: invoke looking up address space.
vfio: remove checking duplicated vfio device
hw/vfio/common.c | 28 ++++++++++++++++++++++++++++ hw/vfio/pci.c | 15 ++++++--------- include/hw/vfio/vfio-common.h | 1 + 3 files changed, 35 insertions(+), 9 deletions(-)
Signature · 1 line
1.8.3.1