Skip to content

monitor: Rate-limit MEMORY_DEVICE_SIZE_CHANGE qapi events per device

David Hildenbrand qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 1 replyIn review
  2. v21 patch 5 repliesSuperseded

Changes in v3 from the cover letter

- Split up into two patches
- "const char * qom_path" -> "char *qom_path"
- Fix existing memory leak and avoid a new memory leak when creating the event

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3virtio-mem-pci: Fix memory leak when creating MEMORY_DEVICE_SIZE_CHANGE eventhw/virtio/virtio-mem-pci.c+1 -60 replies
2/3qapi: Include qom-path in MEMORY_DEVICE_SIZE_CHANGE qapi eventshw/virtio/virtio-mem-pci.c qapi/machine.json+8 -20 replies
3/3monitor: Rate-limit MEMORY_DEVICE_SIZE_CHANGE qapi events per devicemonitor/monitor.c+9 -00 replies

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMarkus Armbruster
SeriesR-b
1/3
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/3] monitor: Rate-limit MEMORY_DEVICE_SIZE_CHANGE qapi events per device

Some fixes for virtio-mem-pci, to properly handle MEMORY_DEVICE_SIZE_CHANGE events, especially not dropping events of some devices when rate-limiting.

v2 -> v3:
- Split up into two patches
- "const char * qom_path" -> "char *qom_path"
- Fix existing memory leak and avoid a new memory leak when creating the event

v1 -> v2:
- Add the qom-path and use that identifier to rate-limit per device
- Rephrase subject/description

Cc "Dr. David Alan Gilbert" <[email protected]>
Cc Markus Armbruster <[email protected]>
Cc Michael S. Tsirkin <[email protected]>
Cc Eric Blake <[email protected]>
Cc Igor Mammedov <[email protected]>
Cc Michal Privoznik <[email protected]>

David Hildenbrand (3):
virtio-mem-pci: Fix memory leak when creating
MEMORY_DEVICE_SIZE_CHANGE event
qapi: Include qom-path in MEMORY_DEVICE_SIZE_CHANGE qapi events
monitor: Rate-limit MEMORY_DEVICE_SIZE_CHANGE qapi events per device

 hw/virtio/virtio-mem-pci.c | 10 ++++------
 monitor/monitor.c          |  9 +++++++++
 qapi/machine.json          |  5 ++++-
 3 files changed, 17 insertions(+), 7 deletions(-)
Signature · 1 line
2.31.1