Skip to content

Commit

Permalink
lguest: Allow running under paravirt-enabled KVM.
Browse files Browse the repository at this point in the history
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: Stefanos Geraggelos <sgerag@cslab.ece.ntua.gr>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au># HG changeset patch
  • Loading branch information
Rusty Russell committed Oct 27, 2011
1 parent 138c4ae commit b56e321
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/lguest/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ static int __init init(void)
int err;

/* 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");
return -EPERM;
}
Expand Down

0 comments on commit b56e321

Please sign in to comment.