diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2011-10-26 20:26:17 -0400 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2011-10-26 20:26:17 -0400 |
commit | b56e3215d4331bff9b6d5e5f68bc1ec5cb01e650 (patch) | |
tree | bbc5fefc680d81f6a5a1c491e832144c02cd3731 /drivers/lguest | |
parent | 138c4ae9cfda8fdcf9e137457853b09ef8cf8f77 (diff) |
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: Stefanos Geraggelos <sgerag@cslab.ece.ntua.gr>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au># HG changeset patch
Diffstat (limited to 'drivers/lguest')
-rw-r--r-- | drivers/lguest/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/lguest/core.c b/drivers/lguest/core.c index 2535933c49f8..5c13e93898f9 100644 --- a/drivers/lguest/core.c +++ b/drivers/lguest/core.c | |||
@@ -313,7 +313,7 @@ static int __init init(void) | |||
313 | int err; | 313 | int err; |
314 | 314 | ||
315 | /* Lguest can't run under Xen, VMI or itself. It does Tricky Stuff. */ | 315 | /* Lguest can't run under Xen, VMI or itself. It does Tricky Stuff. */ |
316 | if (paravirt_enabled()) { | 316 | if (get_kernel_rpl() != 0) { |
317 | printk("lguest is afraid of being a guest\n"); | 317 | printk("lguest is afraid of being a guest\n"); |
318 | return -EPERM; | 318 | return -EPERM; |
319 | } | 319 | } |