[libvirt] [PATCH v3 0/5] qemu_hotplug: Fix a rare race condition when detaching a device twice

Michal Privoznik mprivozn at redhat.com
Fri Mar 15 10:23:50 UTC 2019


v3 of:

https://www.redhat.com/archives/libvir-list/2019-March/msg00924.html

diff to v2:
- Dropped @enterMonitor from qemuDomainDeleteDevice,
- Simplified event checking since @vm is always locked after
@enterMonitor is dropped,
- Switched to plain qemuMonitorDelDevice for zpci device
- Added comment about error reporting to 3/5

Note that 3/5 was ACKed in v2.

Michal Prívozník (5):
  qemu_hotplug: Introduce and use qemuDomainDeleteDevice
  DO NOT APPLY: Simple reproducer
  qemuMonitorJSONDelDevice: Return -2 on DeviceNotFound error
  qemu_hotplug: Fix a rare race condition when detaching a device twice
  DO NOT APPLY: Revert simple reproducer

 src/qemu/qemu_domain.h       |   1 +
 src/qemu/qemu_hotplug.c      | 278 +++++++++++++++--------------------
 src/qemu/qemu_monitor.c      |  10 ++
 src/qemu/qemu_monitor_json.c |   5 +
 4 files changed, 134 insertions(+), 160 deletions(-)

-- 
2.19.2




More information about the libvir-list mailing list