QMP: Drop DEBUG event
authorLuiz Capitulino <lcapitulino@redhat.com>
Thu, 25 Feb 2010 15:07:01 +0000 (12:07 -0300)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 8 Mar 2010 17:30:08 +0000 (11:30 -0600)
This event has been introduced in the first round of QMP commits,
turns out that it's based on the usage of the EXCP_DEBUG macro,
which has discussable semantics when exposed through QMP.

As libvirt doesn't use this, let's just drop it.

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
QMP/qmp-events.txt
monitor.c
monitor.h
vl.c

index d585a8d1b6d7994715616e8ea5bed5ef6f934a86..9bf14d05b35a3dfa75b3086c34d2ad6c56615fb1 100644 (file)
@@ -19,12 +19,6 @@ Data: None.
 Description: Issued when the Virtual Machine is stopped.
 Data: None.
 
-4 DEBUG
--------
-
-Description: Issued when the Virtual Machine enters debug mode.
-Data: None.
-
 4 VNC_CONNECTED
 ---------------
 
index 61a072b1ae69136c375f74111583ac9650fd161d..1ef672c10a13f858fefd341575c778fc76d16d3c 100644 (file)
--- a/monitor.c
+++ b/monitor.c
@@ -399,9 +399,6 @@ void monitor_protocol_event(MonitorEvent event, QObject *data)
     assert(event < QEVENT_MAX);
 
     switch (event) {
-        case QEVENT_DEBUG:
-            event_name = "DEBUG";
-            break;
         case QEVENT_SHUTDOWN:
             event_name = "SHUTDOWN";
             break;
index fc0950506f55038ef3da3544213ce53b02c94bac..8cc21f53fc8b8ca6494949b0990a1c042f609b13 100644 (file)
--- a/monitor.h
+++ b/monitor.h
@@ -15,7 +15,6 @@ extern Monitor *cur_mon;
 
 /* QMP events */
 typedef enum MonitorEvent {
-    QEVENT_DEBUG,
     QEVENT_SHUTDOWN,
     QEVENT_RESET,
     QEVENT_POWERDOWN,
diff --git a/vl.c b/vl.c
index 65cc0209113440df1a9d6ec6f721236443d637d7..03a47a437182fb3179101cf114f227f3a8abd9a8 100644 (file)
--- a/vl.c
+++ b/vl.c
@@ -4086,7 +4086,6 @@ static void main_loop(void)
         } while (vm_can_run());
 
         if (qemu_debug_requested()) {
-            monitor_protocol_event(QEVENT_DEBUG, NULL);
             vm_stop(EXCP_DEBUG);
         }
         if (qemu_shutdown_requested()) {