const char *event_name;
Monitor *mon = cur_mon;
- assert(event < EVENT_MAX);
+ assert(event < QEVENT_MAX);
if (!monitor_ctrl_mode(mon))
return;
switch (event) {
- case EVENT_DEBUG:
+ case QEVENT_DEBUG:
event_name = "DEBUG";
break;
- case EVENT_SHUTDOWN:
+ case QEVENT_SHUTDOWN:
event_name = "SHUTDOWN";
break;
- case EVENT_RESET:
+ case QEVENT_RESET:
event_name = "RESET";
break;
- case EVENT_POWERDOWN:
+ case QEVENT_POWERDOWN:
event_name = "POWERDOWN";
break;
- case EVENT_STOP:
+ case QEVENT_STOP:
event_name = "STOP";
break;
default:
} while (vm_can_run());
if (qemu_debug_requested()) {
- monitor_protocol_event(EVENT_DEBUG, NULL);
+ monitor_protocol_event(QEVENT_DEBUG, NULL);
vm_stop(EXCP_DEBUG);
}
if (qemu_shutdown_requested()) {
- monitor_protocol_event(EVENT_SHUTDOWN, NULL);
+ monitor_protocol_event(QEVENT_SHUTDOWN, NULL);
if (no_shutdown) {
vm_stop(0);
no_shutdown = 0;
break;
}
if (qemu_reset_requested()) {
- monitor_protocol_event(EVENT_RESET, NULL);
+ monitor_protocol_event(QEVENT_RESET, NULL);
pause_all_vcpus();
qemu_system_reset();
resume_all_vcpus();
}
if (qemu_powerdown_requested()) {
- monitor_protocol_event(EVENT_POWERDOWN, NULL);
+ monitor_protocol_event(QEVENT_POWERDOWN, NULL);
qemu_irq_raise(qemu_system_powerdown);
}
if ((r = qemu_vmstop_requested())) {
- monitor_protocol_event(EVENT_STOP, NULL);
+ monitor_protocol_event(QEVENT_STOP, NULL);
vm_stop(r);
}
}