qemu/softmmu
Maxim Levitsky 7bed89958b device_core: use drain_call_rcu in in qmp_device_add
Soon, a device removal might only happen on RCU callback execution.
This is okay for device-del which provides a DEVICE_DELETED event,
but not for the failure case of device-add.  To avoid changing
monitor semantics, just drain all pending RCU callbacks on error.

Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
Suggested-by: Stefan Hajnoczi <stefanha@gmail.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20200913160259.32145-4-mlevitsk@redhat.com>
[Don't use it in qmp_device_del. - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2020-10-12 11:50:50 -04:00
..
arch_init.c 8bit AVR port from Michael Rolnik. 2020-07-11 19:27:59 +01:00
balloon.c qapi: Restrict balloon-related commands to machine code 2020-09-29 15:41:35 +02:00
bootdevice.c softmmu: move more files to softmmu/ 2020-10-12 11:50:21 -04:00
cpu-throttle.c qemu/atomic.h: rename atomic_ to qatomic_ 2020-09-23 16:07:44 +01:00
cpu-timers.c cpus: prepare new CpusAccel cpu accelerator interface 2020-10-05 16:41:22 +02:00
cpus.c monitor: Use getter/setter functions for cur_mon 2020-10-09 07:08:19 +02:00
device_tree.c softmmu: move more files to softmmu/ 2020-10-12 11:50:21 -04:00
dma-helpers.c softmmu: move more files to softmmu/ 2020-10-12 11:50:21 -04:00
icount.c icount: rename functions to be consistent with the module name 2020-10-05 16:41:22 +02:00
ioport.c softmmu: Add missing trace-events file 2020-09-09 17:15:18 +01:00
main.c meson: move SDL and SDL-image detection to meson 2020-08-21 06:30:44 -04:00
memory_mapping.c softmmu: move softmmu only files from root 2020-07-10 18:02:24 -04:00
memory.c exec: Remove MemoryRegion::global_locking field 2020-09-30 19:11:36 +02:00
meson.build exec: split out non-softmmu-specific parts 2020-10-12 11:50:22 -04:00
physmem.c exec: split out non-softmmu-specific parts 2020-10-12 11:50:22 -04:00
qdev-monitor.c device_core: use drain_call_rcu in in qmp_device_add 2020-10-12 11:50:50 -04:00
qemu-seccomp.c softmmu: move more files to softmmu/ 2020-10-12 11:50:21 -04:00
qtest.c docs/devel/qtest: Include protocol spec in document 2020-10-12 11:50:22 -04:00
timers-state.h cpu-timers, icount: new modules 2020-10-05 16:41:22 +02:00
tpm.c softmmu: move more files to softmmu/ 2020-10-12 11:50:21 -04:00
trace-events softmmu: Add missing trace-events file 2020-09-09 17:15:18 +01:00
trace.h softmmu: Add missing trace-events file 2020-09-09 17:15:18 +01:00
vl.c icount: rename functions to be consistent with the module name 2020-10-05 16:41:22 +02:00