Re: [PATCH v6 2/4] qapi: add DEVICE_ON and query-hotplug infrastructure

2023-03-09 Thread Vladimir Sementsov-Ogievskiy
On 07.03.23 20:31, Michael S. Tsirkin wrote: On Tue, Mar 07, 2023 at 07:05:35PM +0300, Vladimir Sementsov-Ogievskiy wrote: We have DEVICE_DELETED event, that signals that device_del command is actually completed. But we don't have a counter-part for device_add. Still it's sensible for SHPC and P

Re: [PATCH v6 2/4] qapi: add DEVICE_ON and query-hotplug infrastructure

2023-03-07 Thread Michael S. Tsirkin
On Tue, Mar 07, 2023 at 07:05:35PM +0300, Vladimir Sementsov-Ogievskiy wrote: > We have DEVICE_DELETED event, that signals that device_del command is > actually completed. But we don't have a counter-part for device_add. > Still it's sensible for SHPC and PCIe-native hotplug, as there are time > wh

[PATCH v6 2/4] qapi: add DEVICE_ON and query-hotplug infrastructure

2023-03-07 Thread Vladimir Sementsov-Ogievskiy
We have DEVICE_DELETED event, that signals that device_del command is actually completed. But we don't have a counter-part for device_add. Still it's sensible for SHPC and PCIe-native hotplug, as there are time when the device in some intermediate state. Let's add an event that say that the device