]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/lguest/core.c
lguest: Reboot support
[karo-tx-linux.git] / drivers / lguest / core.c
index cb4c67025d52ae5c6c4826a855695ec09dcf29e6..c1069bceba11dde196f02e75f691e3ed873565ba 100644 (file)
@@ -235,6 +235,8 @@ int run_guest(struct lguest *lg, unsigned long __user *user)
                lguest_arch_handle_trap(lg);
        }
 
+       if (lg->dead == ERR_PTR(-ERESTART))
+               return -ERESTART;
        /* The Guest is dead => "No such file or directory" */
        return -ENOENT;
 }
@@ -253,7 +255,7 @@ static int __init init(void)
 
        /* Lguest can't run under Xen, VMI or itself.  It does Tricky Stuff. */
        if (paravirt_enabled()) {
-               printk("lguest is afraid of %s\n", pv_info.name);
+               printk("lguest is afraid of being a guest\n");
                return -EPERM;
        }