|
@@ -1645,7 +1645,7 @@ void qemu_system_reset(ShutdownCause reason)
|
|
} else {
|
|
} else {
|
|
qemu_devices_reset();
|
|
qemu_devices_reset();
|
|
}
|
|
}
|
|
- if (reason) {
|
|
|
|
|
|
+ if (reason != SHUTDOWN_CAUSE_SUBSYSTEM_RESET) {
|
|
qapi_event_send_reset(shutdown_caused_by_guest(reason),
|
|
qapi_event_send_reset(shutdown_caused_by_guest(reason),
|
|
&error_abort);
|
|
&error_abort);
|
|
}
|
|
}
|
|
@@ -1691,7 +1691,7 @@ void qemu_system_guest_panicked(GuestPanicInformation *info)
|
|
|
|
|
|
void qemu_system_reset_request(ShutdownCause reason)
|
|
void qemu_system_reset_request(ShutdownCause reason)
|
|
{
|
|
{
|
|
- if (no_reboot) {
|
|
|
|
|
|
+ if (no_reboot && reason != SHUTDOWN_CAUSE_SUBSYSTEM_RESET) {
|
|
shutdown_requested = reason;
|
|
shutdown_requested = reason;
|
|
} else {
|
|
} else {
|
|
reset_requested = reason;
|
|
reset_requested = reason;
|