qemu-e2k/monitor
David Hildenbrand 77ae2302ae monitor: Rate-limit MEMORY_DEVICE_SIZE_CHANGE qapi events per device
We want to rate-limit MEMORY_DEVICE_SIZE_CHANGE events per device,
otherwise we can lose some events for devices. We can now use the
qom-path to reliably map an event to a device and make rate-limiting
device-aware.

This was noticed by starting a VM with two virtio-mem devices that each
have a requested size > 0. The Linux guest will initialize both devices
in parallel, resulting in losing MEMORY_DEVICE_SIZE_CHANGE events for
one of the devices.

Fixes: 722a3c783e ("virtio-pci: Send qapi events when the virtio-mem size changes")
Suggested-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20210929162445.64060-4-david@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2021-10-02 08:43:21 +02:00
..
hmp-cmds.c sgx-epc: Add the fill_device_info() callback support 2021-09-30 15:30:24 +02:00
hmp.c monitor: allow register hmp commands 2021-07-09 18:21:33 +02:00
meson.build
misc.c trace: iter init tweaks 2021-07-12 17:37:07 +01:00
monitor-internal.h
monitor.c monitor: Rate-limit MEMORY_DEVICE_SIZE_CHANGE qapi events per device 2021-10-02 08:43:21 +02:00
qmp-cmds-control.c
qmp-cmds.c arch_init.h: Don't include arch_init.h unnecessarily 2021-08-26 17:02:00 +01:00
qmp.c
trace-events docs: fix references to docs/devel/tracing.rst 2021-06-02 06:51:09 +02:00
trace.h