Skip to content

Commit fd92f71

Browse files
committed
run_guest: Implement going to sleep
Getting back from sleep is left as an exercise to the reverse engineer... Signed-off-by: Hector Martin <marcan@marcan.st>
1 parent 02fc419 commit fd92f71

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

proxyclient/tools/run_guest.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,3 +113,8 @@ def volumespec(s):
113113
run_shell(hv.shell_locals, "Entering hypervisor shell. Type ^D to start the guest.")
114114

115115
hv.start()
116+
117+
run_shell(hv.shell_locals, "Hypervisor exited. Entering shell.")
118+
119+
p.smp_stop_secondaries(True)
120+
p.sleep(True)

0 commit comments

Comments
 (0)