Re: EBUSY when using NVMe Block Driver with multiple devices in the same IOMMU group

2022-08-25 Thread Chaitanya Kulkarni
> First, multiple QEMU instances cannot access nvme:// devices sharing the > same IOMMU group. I don't think this will ever be possible because it > opens a backdoor around process memory isolation. > > However, a single QEMU (or qemu-storage-daemon) instance should be able > to access multiple

Re: EBUSY when using NVMe Block Driver with multiple devices in the same IOMMU group

2022-08-24 Thread Stefan Hajnoczi
On Tue, Aug 23, 2022 at 10:36:00PM +, Martin Oliveira wrote: > Hello, > > I'm trying to use the QEMU NVMe userspace driver and I'm hitting an error > when trying to use more than one device from an IOMMU group: > > Failed to open VFIO group file: /dev/vfio/39: Device or resource busy >

Re: EBUSY when using NVMe Block Driver with multiple devices in the same IOMMU group

2022-08-24 Thread Martin Oliveira
> On Aug 24, 2022, at 4:36 PM, Martin Oliveira > wrote: >-drive file=nvme://:26:00.0,if=none,id=drive0,format=raw >-device virtio-blk,drive=drive0,id=virtio0,serial=nvme0 Small typo above, I missed the /1, it should read: -drive

EBUSY when using NVMe Block Driver with multiple devices in the same IOMMU group

2022-08-23 Thread Martin Oliveira
Hello, I'm trying to use the QEMU NVMe userspace driver and I'm hitting an error when trying to use more than one device from an IOMMU group: Failed to open VFIO group file: /dev/vfio/39: Device or resource busy If devices belong to different IOMMU groups, then it works as expected. For