From 68903cd9d43963420e45fae0532651bc1333d2de Mon Sep 17 00:00:00 2001 From: Joanna Rutkowska Date: Tue, 27 Jul 2010 12:52:26 +0200 Subject: [PATCH] appvm/init.d/qubes_core: a few more comments and cleanup --- appvm/qubes_core | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/appvm/qubes_core b/appvm/qubes_core index eea88b8d..bd3346a2 100755 --- a/appvm/qubes_core +++ b/appvm/qubes_core @@ -31,13 +31,16 @@ start() possibly_run_save_script touch /etc/this_is_dvm dmesg -c >/dev/null -# echo 1 >/proc/sys/vm/drop_caches -# free | grep buffers/cache | -# (read a b c d ; xenstore-write device/qubes_used_mem $c) free | grep Mem: | (read a b c d ; xenstore-write device/qubes_used_mem $c) - echo "Waiting for restore" + # we're still running in DispVM template + echo "Waiting for save/restore..." + # WARNING: Nergalism! + # Apparently it has been determined that DomU kernel + # dmesg's "using vcpu" after restore while ! dmesg -c | grep "using vcpu" ; do usleep 10 ; done + # we're now after restore in a new instance of a DispVM + # ... wait until qubes_restore.c (in Dom0) recreates VM-specific keys while ! xenstore-read qubes_vm_type 2>/dev/null ; do usleep 10 done