qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 4/3] wakeup: only reset the CPU


From: Paolo Bonzini
Subject: [Qemu-devel] [PATCH 4/3] wakeup: only reset the CPU
Date: Tue, 5 Mar 2013 17:03:23 +0100

Resuming from suspend-to-RAM should not reset all devices.  Only the CPU
should get a reset signal.

Signed-off-by: Paolo Bonzini <address@hidden>
---
 vl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vl.c b/vl.c
index c03edf1..2c93478 100644
--- a/vl.c
+++ b/vl.c
@@ -1973,8 +1973,8 @@ static bool main_loop_should_exit(void)
     }
     if (qemu_wakeup_requested()) {
         pause_all_vcpus();
+        cpu_soft_reset();
         cpu_synchronize_all_states();
-        qemu_system_reset(VMRESET_SILENT);
         resume_all_vcpus();
         monitor_protocol_event(QEVENT_WAKEUP, NULL);
     }
-- 
1.8.1.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]