|
From: | Daniel Henrique Barboza |
Subject: | Re: [PATCH 0/4] DEVICE_NOT_DELETED/DEVICE_UNPLUG_ERROR QAPI events |
Date: | Tue, 23 Mar 2021 14:10:22 -0300 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 |
On 3/22/21 10:12 PM, David Gibson wrote:
On Fri, Mar 12, 2021 at 05:07:36PM -0300, Daniel Henrique Barboza wrote:Hi, This series adds 2 new QAPI events, DEVICE_NOT_DELETED and DEVICE_UNPLUG_ERROR. They were (and are still being) discussed in [1]. Patches 1 and 3 are independent of the ppc patches and can be applied separately. Patches 2 and 4 are based on David's ppc-for-6.0 branch and are dependent on the QAPI patches.Implementation looks fine, but I think there's a bit more to discuss before we can apply. I think it would make sense to re-order this and put UNPLUG_ERROR first. Its semantics are clearer, and I think there's a stronger case for it.
Alright
I'm a bit less sold on DEVICE_NOT_DELETED, after consideration. Does it really tell the user/management anything useful beyond what receiving neither a DEVICE_DELETED nor a DEVICE_UNPLUG_ERROR does?
It informs that the hotunplug operation exceed the timeout that QEMU internals considers adequate, but QEMU can't assert that it was caused by an error or an unexpected delay. The end result is that the device is not going to be deleted from QMP, so DEVICE_NOT_DELETED. Perhaps we should just be straightforward and create a DEVICE_UNPLUG_TIMEOUT event. Thanks, DHB
[Prev in Thread] | Current Thread | [Next in Thread] |