From: Jan Kiszka <jan.kiszka@web.de>
To: Glauber Costa <glommer@redhat.com>
Cc: aliguori@us.ibm.com, qemu-devel@nongnu.org
Subject: [Qemu-devel] Re: [PATCH] Disable kqemu by default
Date: Sat, 30 May 2009 10:06:14 +0200 [thread overview]
Message-ID: <4A20E8F6.7000009@web.de> (raw)
In-Reply-To: <1243599100-3866-1-git-send-email-glommer@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 1998 bytes --]
Glauber Costa wrote:
> 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")
To be a bit consistent with -enable-kvm, what about -enable-kqemu?
> #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;
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 257 bytes --]
prev parent reply other threads:[~2009-05-30 8:06 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-29 12:11 [Qemu-devel] [PATCH] Disable kqemu by default Glauber Costa
2009-05-29 12:22 ` 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 ` Jan Kiszka [this message]
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=4A20E8F6.7000009@web.de \
--to=jan.kiszka@web.de \
--cc=aliguori@us.ibm.com \
--cc=glommer@redhat.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).