qemu/softmmu
Dmitrii Gavrilov e55ec34d3e system/qdev-monitor: move drain_call_rcu call under if (!dev) in qmp_device_add()
Original goal of addition of drain_call_rcu to qmp_device_add was to cover
the failure case of qdev_device_add. It seems call of drain_call_rcu was
misplaced in 7bed89958b what led to waiting for pending RCU callbacks
under happy path too. What led to overall performance degradation of
qmp_device_add.

In this patch call of drain_call_rcu moved under handling of failure of
qdev_device_add.

Signed-off-by: Dmitrii Gavrilov <ds-gavr@yandex-team.ru>
Message-ID: <20231103105602.90475-1-ds-gavr@yandex-team.ru>
Fixes: 7bed89958b ("device_core: use drain_call_rcu in in qmp_device_add", 2020-10-12)
Cc: qemu-stable@nongnu.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 012b170173)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
2024-03-13 23:09:00 +03:00
..
arch_init.c
balloon.c
bootdevice.c
cpu-throttle.c
cpu-timers.c
cpus.c * Fix and test the VISTR instruction on s390x 2022-10-31 06:19:54 -04:00
datadir.c
device_tree.c
dirtylimit.c
dma-helpers.c
globals.c
icount.c icount: don't adjust virtual time backwards after warp 2023-06-29 18:17:49 +03:00
ioport.c
main.c
memory_mapping.c
memory.c system/memory: use ldn_he_p/stn_he_p 2023-12-20 19:11:10 +03:00
meson.build
physmem.c memory: Fix wrong end address dump 2022-11-08 15:53:40 -05:00
qdev-monitor.c system/qdev-monitor: move drain_call_rcu call under if (!dev) in qmp_device_add() 2024-03-13 23:09:00 +03:00
qemu-seccomp.c
qtest.c module: add Error arguments to module_load and module_load_qom 2022-11-06 09:48:50 +01:00
rtc.c
runstate-action.c
runstate.c
timers-state.h
tpm.c
trace-events
trace.h
vl.c system/vl: Update description for input grab key 2024-02-22 18:46:10 +03:00