Re: [PATCH] qdev-monitor: Forbid repeated device_del

2020-02-21 Thread Paolo Bonzini
On 21/02/20 14:53, Stefan Hajnoczi wrote: > On Thu, Feb 20, 2020 at 05:55:56PM +0100, Julia Suvorova wrote: >> Device unplug can be done asynchronously. Thus, sending the second >> device_del before the previous unplug is complete may lead to >> unexpected results. On PCIe devices, this cancels the

Re: [PATCH] qdev-monitor: Forbid repeated device_del

2020-02-21 Thread Stefan Hajnoczi
On Thu, Feb 20, 2020 at 05:55:56PM +0100, Julia Suvorova wrote: > Device unplug can be done asynchronously. Thus, sending the second > device_del before the previous unplug is complete may lead to > unexpected results. On PCIe devices, this cancels the hot-unplug > process. > > Signed-off-by: Juli

[PATCH] qdev-monitor: Forbid repeated device_del

2020-02-20 Thread Julia Suvorova
Device unplug can be done asynchronously. Thus, sending the second device_del before the previous unplug is complete may lead to unexpected results. On PCIe devices, this cancels the hot-unplug process. Signed-off-by: Julia Suvorova --- qdev-monitor.c | 6 ++ 1 file changed, 6 insertions(+)