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" <dgilb...@redhat.com>
Cc: Markus Armbruster <arm...@redhat.com>
Cc: Michael S. Tsirkin <m...@redhat.com>
Cc: Eric Blake <ebl...@redhat.com>
Cc: Igor Mammedov <imamm...@redhat.com>
Cc: Michal Privoznik <mpriv...@redhat.com>

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(-)

-- 
2.31.1


Reply via email to