From 953b59ac6bfe9de7d6af0373c3f0f5efe326ff00 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Thu, 28 Jul 2011 10:40:05 +1000 Subject: [PATCH] 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 Signed-off-by: Rusty Russell # HG changeset patch --- drivers/lguest/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) 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; } -- 2.39.5