Commit b56e3215 authored by Rusty Russell's avatar Rusty Russell

lguest: Allow running under paravirt-enabled KVM.

We actually can run under KVM, as it doesn't paravirtualize anything we
need to use; reduce the check to checking we are the normal ringlevel.
Reported-by: default avatarStefanos Geraggelos <sgerag@cslab.ece.ntua.gr>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au># HG changeset patch
parent 138c4ae9
...@@ -313,7 +313,7 @@ static int __init init(void) ...@@ -313,7 +313,7 @@ static int __init init(void)
int err; int err;
/* Lguest can't run under Xen, VMI or itself. It does Tricky Stuff. */ /* Lguest can't run under Xen, VMI or itself. It does Tricky Stuff. */
if (paravirt_enabled()) { if (get_kernel_rpl() != 0) {
printk("lguest is afraid of being a guest\n"); printk("lguest is afraid of being a guest\n");
return -EPERM; return -EPERM;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment