qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* EBUSY when using NVMe Block Driver with multiple devices in the same IOMMU group
@ 2022-08-23 22:36 Martin Oliveira
  2022-08-24 16:17 ` Martin Oliveira
  2022-08-24 17:18 ` Stefan Hajnoczi
  0 siblings, 2 replies; 4+ messages in thread
From: Martin Oliveira @ 2022-08-23 22:36 UTC (permalink / raw)
  To: qemu-devel@nongnu.org, qemu-block@nongnu.org, stefanha@redhat.com,
	fam@euphon.net, f4bug@amsat.org
  Cc: Stephen Bates, Chaitanya Kulkarni

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 each device, I bind it to vfio-pci and then use something like this:

    -drive file=nvme://0000:26:00.0,if=none,id=drive0,format=raw
    -device virtio-blk,drive=drive0,id=virtio0,serial=nvme0

Using the file-based protocol (file=/dev/nvme0n1) works with multiple devices from the same group.

My host is running a 5.19 kernel and QEMU is the latest upstream (a8cc5842b5cb).

Thanks,
Martin

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-08-25 14:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-23 22:36 EBUSY when using NVMe Block Driver with multiple devices in the same IOMMU group Martin Oliveira
2022-08-24 16:17 ` Martin Oliveira
2022-08-24 17:18 ` Stefan Hajnoczi
2022-08-25  9:04   ` Chaitanya Kulkarni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).