qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Glauber Costa <glommer@redhat.com>
To: qemu-devel@nongnu.org
Cc: aliguori@us.ibm.com
Subject: [Qemu-devel] [PATCH] Disable kqemu by default
Date: Fri, 29 May 2009 08:11:40 -0400	[thread overview]
Message-ID: <1243599100-3866-1-git-send-email-glommer@redhat.com> (raw)

turns -no-kqemu option into -kqemu
set kqemu_allowed to 0 by default.

Signed-off-by: Glauber Costa <glommer@redhat.com>
---
 kqemu.c         |    2 +-
 qemu-options.hx |    8 ++++----
 vl.c            |    4 ++--
 3 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/kqemu.c b/kqemu.c
index 1718498..203241e 100644
--- a/kqemu.c
+++ b/kqemu.c
@@ -81,7 +81,7 @@ int kqemu_fd = KQEMU_INVALID_FD;
    1 = user kqemu
    2 = kernel kqemu
 */
-int kqemu_allowed = 1;
+int kqemu_allowed = 0;
 uint64_t *pages_to_flush;
 unsigned int nb_pages_to_flush;
 uint64_t *ram_pages_to_update;
diff --git a/qemu-options.hx b/qemu-options.hx
index 87af798..755dc13 100644
--- a/qemu-options.hx
+++ b/qemu-options.hx
@@ -1329,12 +1329,12 @@ Enable KQEMU full virtualization (default is user mode only).
 ETEXI
 
 #ifdef CONFIG_KQEMU
-DEF("no-kqemu", 0, QEMU_OPTION_no_kqemu, \
-    "-no-kqemu       disable KQEMU kernel module usage\n")
+DEF("-kqemu", 0, QEMU_OPTION_kqemu, \
+    "-kqemu          enable KQEMU kernel module usage\n")
 #endif
 STEXI
-@item -no-kqemu
-Disable KQEMU kernel module usage. KQEMU options are only available if
+@item -kqemu
+Enable KQEMU kernel module usage. KQEMU options are only available if
 KQEMU support is enabled when compiling.
 ETEXI
 
diff --git a/vl.c b/vl.c
index 1a227bb..13d87de 100644
--- a/vl.c
+++ b/vl.c
@@ -5398,8 +5398,8 @@ int main(int argc, char **argv, char **envp)
                 break;
 #endif
 #ifdef CONFIG_KQEMU
-            case QEMU_OPTION_no_kqemu:
-                kqemu_allowed = 0;
+            case QEMU_OPTION_kqemu:
+                kqemu_allowed = 1;
                 break;
             case QEMU_OPTION_kernel_kqemu:
                 kqemu_allowed = 2;
-- 
1.5.6.6

             reply	other threads:[~2009-05-29 12:11 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-29 12:11 Glauber Costa [this message]
2009-05-29 12:22 ` [Qemu-devel] [PATCH] Disable kqemu by default Tomasz Chmielewski
2009-05-29 12:30   ` Glauber Costa
2009-05-29 12:31     ` Tomasz Chmielewski
2009-05-29 13:18       ` Glauber Costa
2009-05-30 17:35         ` François Revol
2009-05-29 12:40     ` Daniel P. Berrange
2009-05-30  8:06 ` [Qemu-devel] " Jan Kiszka

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1243599100-3866-1-git-send-email-glommer@redhat.com \
    --to=glommer@redhat.com \
    --cc=aliguori@us.ibm.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).