|
From: | Gerd Hoffmann |
Subject: | Re: [Qemu-devel] [PATCH] monitor: Add force option support to pci_del command |
Date: | Tue, 15 Jun 2010 10:46:15 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100505 Fedora/3.0.4-2.el6 Thunderbird/3.0.4 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |