]> xenbits.xensource.com Git - libvirt.git/commit
qemu: wire up RPC for qemu monitor events
authorEric Blake <eblake@redhat.com>
Wed, 29 Jan 2014 22:30:44 +0000 (15:30 -0700)
committerEric Blake <eblake@redhat.com>
Thu, 20 Mar 2014 17:25:37 +0000 (11:25 -0600)
commite7708a1c476202029c8c948941ec08a0ffa9b5ab
tree8207d6e6d63e420bbd7ef4d44a1149cef1e67aa3
parent8059afca62ecdb572aba71d226c43d1b89beeab7
qemu: wire up RPC for qemu monitor events

These are the first async events in the qemu protocol, so this
patch looks rather big compared to most RPC additions.  However,
a large majority of this patch is just mechanical copy-and-paste
from recently-added network events.  It didn't help that this
is also the first virConnect rather than virDomain prefix
associated with a qemu-specific API.

* src/remote/qemu_protocol.x (qemu_*_domain_monitor_event_*): New
structs and RPC messages.
* src/rpc/gendispatch.pl: Adjust naming conventions.
* daemon/libvirtd.h (daemonClientPrivate): Track qemu events.
* daemon/remote.c (remoteClientFreeFunc): Likewise.
(remoteRelayDomainQemuMonitorEvent)
(qemuDispatchConnectDomainMonitorEventRegister)
(qemuDispatchConnectDomainMonitorEventDeregister): New functions.
* src/remote/remote_driver.c (qemuEvents): Handle qemu events.
(doRemoteOpen): Register for events.
(remoteNetworkBuildEventLifecycle)
(remoteConnectDomainQemuMonitorEventRegister)
(remoteConnectDomainQemuMonitorEventDeregister): New functions.
* src/qemu_protocol-structs: Regenerate.

Signed-off-by: Eric Blake <eblake@redhat.com>
daemon/libvirtd.h
daemon/remote.c
src/qemu_protocol-structs
src/remote/qemu_protocol.x
src/remote/remote_driver.c
src/rpc/gendispatch.pl