summaryrefslogtreecommitdiff
path: root/monitor.c
diff options
context:
space:
mode:
authorLaszlo Ersek <lersek@redhat.com>2014-06-26 17:50:02 +0200
committerLuiz Capitulino <lcapitulino@redhat.com>2014-06-27 09:33:27 -0400
commite2ae6159de2482ee5e22532301eb7f2795828d07 (patch)
treecc35e7385fc1befbb12608953f277f6cc9800700 /monitor.c
parentdfab489214bcf88f1b81796118aaae3808620604 (diff)
downloadqemu-e2ae6159de2482ee5e22532301eb7f2795828d07.tar.gz
virtio-serial: report frontend connection state via monitor
Libvirt wants to know about the guest-side connection state of some virtio-serial ports (in particular the one(s) assigned to guest agent(s)). Report such states with a new monitor event. RHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=1080376 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Amit Shah <amit.shah@redhat.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'monitor.c')
-rw-r--r--monitor.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/monitor.c b/monitor.c
index fd34ab705a..5718d0b60a 100644
--- a/monitor.c
+++ b/monitor.c
@@ -588,6 +588,7 @@ static void monitor_qapi_event_init(void)
monitor_qapi_event_throttle(QAPI_EVENT_BALLOON_CHANGE, 1000);
monitor_qapi_event_throttle(QAPI_EVENT_QUORUM_REPORT_BAD, 1000);
monitor_qapi_event_throttle(QAPI_EVENT_QUORUM_FAILURE, 1000);
+ monitor_qapi_event_throttle(QAPI_EVENT_VSERPORT_CHANGE, 1000);
qmp_event_set_func_emit(monitor_qapi_event_queue);
}