• D
    Define public API for receiving guest memory balloon events · 7ed6d7dd
    Daniel P. Berrange 提交于
    When the guest changes its memory balloon applications may want
    to know what the new value is, without having to periodically
    poll on XML / domain info. Introduce a "balloon change" event
    to let apps see this
    
    * include/libvirt/libvirt.h.in: Define the
      virConnectDomainEventBalloonChangeCallback callback
      and VIR_DOMAIN_EVENT_ID_BALLOON_CHANGE constant
    * python/libvirt-override-virConnect.py,
      python/libvirt-override.c: Wire up helpers for new event
    * daemon/remote.c: Helper for serializing balloon event
    * examples/domain-events/events-c/event-test.c,
      examples/domain-events/events-python/event-test.py: Add
      example of balloon event usage
    * src/conf/domain_event.c, src/conf/domain_event.h: Handling
      of balloon events
    * src/remote/remote_driver.c: Add handler of balloon events
    * src/remote/remote_protocol.x: Define wire protocol for
      balloon events
    * src/remote_protocol-structs: Likewise.
    Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
    7ed6d7dd
domain_event.h 8.9 KB