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-boun...@redhat.com <vfio-users-boun...@redhat.com> on behalf of Chen, Xiaoguang <xiaoguang.c...@intel.com> Sent: 03 November 2016 07:22 To: vfio-users@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?
_______________________________________________ vfio-users mailing list vfio-users@redhat.com https://www.redhat.com/mailman/listinfo/vfio-users