Hi,

If the guest is stopped while unplugging the device the unplug should
happen as soon as the guest is unpaused.

This is a case where the fundamental problem is that the pci_del command
should block until the guest has actually responded to the request.

You can't block. Unplug might never ever happen for various reasons. IMHO the only sane way to handle it is sending a event when the unplug is done.

pci_del returning with no error and yet not having the operation
complete is certainly a usability issue.

There simply is no clear error condition. If the guest didn't respond (yet) you don't know whenever it just needs a bit more time to shutdown the device or if unplugging the device failed.

cheers,
  Gerd


Reply via email to