[vfio-users] reuse vfio pass through device problem

chris thompson the_cartographer at hotmail.com
Thu Nov 3 10:14:56 UTC 2016


Hi,


>From my experience once the process that has the file handle to the container terminates, the container is automatically destroyed and the groups released - I'm working with code that doesn't do any cleanup on exit at the moment and I've had no problems opening and reusing several devices in the same machine over and over...


Perhaps however, QEMU hasn't actually completely terminated, is there still a zombie process which might be keeping the file handles open?


-Chris


________________________________
From: vfio-users-bounces at redhat.com <vfio-users-bounces at redhat.com> on behalf of Chen, Xiaoguang <xiaoguang.chen at intel.com>
Sent: 03 November 2016 07:22
To: vfio-users at redhat.com
Subject: [vfio-users] reuse vfio pass through device problem

Hi everyone,

I pass through a network card to a linux guest using vfio.
Then I shut down the guest and boot the guest again but got problem:
qemu-system-x86_64: -device vfio-pci,host=0000:04:00.0: vfio error: 0000:04:00.0: failed to open /dev/vfio/11: Device or resource busy

I checked the QEMU code and found that the error occured while opening the group.
When I booted the guest for the first time the group was added to a container but when the guest shut down the group was not deleted from the container. So I got error while opening the group.

Does this work as design or a bug?



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/vfio-users/attachments/20161103/3271df56/attachment.htm>


More information about the vfio-users mailing list