From fd92f717308b5123f02983b47dff618807f6bcd9 Mon Sep 17 00:00:00 2001 From: Hector Martin Date: Wed, 19 Apr 2023 02:48:18 +0900 Subject: [PATCH] run_guest: Implement going to sleep Getting back from sleep is left as an exercise to the reverse engineer... Signed-off-by: Hector Martin --- proxyclient/tools/run_guest.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/proxyclient/tools/run_guest.py b/proxyclient/tools/run_guest.py index 1346a6fd2..11cb63818 100755 --- a/proxyclient/tools/run_guest.py +++ b/proxyclient/tools/run_guest.py @@ -113,3 +113,8 @@ def volumespec(s): run_shell(hv.shell_locals, "Entering hypervisor shell. Type ^D to start the guest.") hv.start() + +run_shell(hv.shell_locals, "Hypervisor exited. Entering shell.") + +p.smp_stop_secondaries(True) +p.sleep(True)