From 1618e32993b1e93e9211e6f812cfe1bbb8be25d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Sat, 2 Aug 2014 23:44:48 +0200 Subject: [PATCH] dispvm: slow down "spinlock" while waiting for save/restore When something go wrong, it will remain spinning indefinitely. --- vm-systemd/prepare-dvm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vm-systemd/prepare-dvm.sh b/vm-systemd/prepare-dvm.sh index 7eb6ba3..bdd1506 100755 --- a/vm-systemd/prepare-dvm.sh +++ b/vm-systemd/prepare-dvm.sh @@ -29,7 +29,7 @@ if xenstore-read qubes-save-request 2>/dev/null ; then echo "Waiting for save/restore..." # ... wait until qubes-restore.c (in Dom0) recreates VM-specific keys while ! xenstore-read qubes-restore-complete 2>/dev/null ; do - usleep 10 + usleep 10000 done echo Back to life. fi