qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Chaitanya Kulkarni
Subject: Re: EBUSY when using NVMe Block Driver with multiple devices in the same IOMMU group
Date: Thu, 25 Aug 2022 09:04:23 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0

> 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 nvme:// devices in the same IOMMU group.
> Unfortunately the code currently doesn't support that.
> util/vfio-helpers.c:qemu_vfio_init_pci() has no logic for sharing
> groups/containers. Opening the group fails with EBUSY because the kernel
> only allows the file to be opened once at any given time.
> 
> It's possible to extend the util/vfio-helpers.c code to reuse VFIO
> groups (and share VFIO containers), but I'm not aware of anyone who is
> currently working on that.
> 
> Stefan

Thanks a lot for detailed explanation, it is really helpful.

-ck



reply via email to

[Prev in Thread] Current Thread [Next in Thread]