QMP: Sync with upstream event changes
PATCH 1/1 QMP: Sync with upstream event changes
This commit contains the following QMP event changes to sync kvm_main_loop() with upstream:
- Add the SHUTDOWN event (it's currently missing here)
- Drop the RESET event (it's now emitted in qemu_system_reset())
- Drop the DEBUG event (it has been dropped upstream)
Signed-off-by Luiz Capitulino <[email protected]>
--- qemu-kvm.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
qemu-kvm.c +1 -2
@@ -2038,6 +2038,7 @@ int kvm_main_loop(void)while (1 ) {main_loop_wait (1000 );if (qemu_shutdown_requested ()) { +monitor_protocol_event (QEVENT_SHUTDOWN ,NULL );if (qemu_no_shutdown ()) {vm_stop (0 ); }else
@@ -2046,10 +2047,8 @@ int kvm_main_loop(void)monitor_protocol_event (QEVENT_POWERDOWN ,NULL );qemu_irq_raise (qemu_system_powerdown); }else if (qemu_reset_requested ()) { -monitor_protocol_event (QEVENT_RESET ,NULL );qemu_kvm_system_reset (); }else if (kvm_debug_cpu_requested) { -monitor_protocol_event (QEVENT_DEBUG ,NULL );gdb_set_stop_cpu (kvm_debug_cpu_requested);vm_stop (EXCP_DEBUG ); kvm_debug_cpu_requested =NULL ;
Signature · 1 line
1.7.0.2.182.ge007