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>
This commit is contained in:
Hector Martin 2023-04-19 02:48:18 +09:00
parent bd63b119ec
commit a81314fe77

View file

@ -113,3 +113,8 @@ if args.shell:
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)