From: Paolo Bonzini <pbonzini@redhat.com>
To: Dave Hansen <dave@sr71.net>
Cc: linux-kernel@vger.kernel.org, x86@kernel.org, bp@suse.de,
dtor@vmware.com, kys@microsoft.com, haiyangz@microsoft.com,
agraf@suse.de, gleb@redhat.com
Subject: Re: [PATCH 11/12] x86 Kconfig: create x86/Kconfig.virt
Date: Mon, 13 Jan 2014 23:46:19 +0100 [thread overview]
Message-ID: <52D46CBB.9080103@redhat.com> (raw)
In-Reply-To: <20140113192259.5E9DFB02@viggo.jf.intel.com>
Il 13/01/2014 20:22, Dave Hansen ha scritto:
> From: Dave Hansen <dave.hansen@linux.intel.com>
>
> Right now, there is a "Enable paravirtualization code" option in
> the "Processor Features" menu, which means Xen. There is also a
> group of paravirtualization options specific to KVM under the
> top-level "Virtualization" menu.
>
> This creates a new hypervisor-independent arch/x86/Kconfig.virt
> file, and moves the "Virtualization" menu to be defined in there.
> This also removes the very counterintuitive references to
> lguest/vhost code *from* kvm-specific code.
>
> This also removes the silly:
>
> depends on HAVE_KVM || X86
>
> dependency. It makes zero sense to have entries defined in
> arch/x86 depend on x86.
>
> Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
> Cc: Borislav Petkov <bp@suse.de>
> Cc: Dmitry Torokhov <dtor@vmware.com>
> Cc: K. Y. Srinivasan <kys@microsoft.com>
> Cc: Haiyang Zhang <haiyangz@microsoft.com>
> Cc: Alexander Graf <agraf@suse.de>
> Cc: Gleb Natapov <gleb@redhat.com>
> Cc: Paolo Bonzini <pbonzini@redhat.com>
> ---
>
> linux.git-davehans/arch/x86/Kconfig | 2 +-
> linux.git-davehans/arch/x86/Kconfig.virt | 18 ++++++++++++++++++
> linux.git-davehans/arch/x86/kvm/Kconfig | 19 -------------------
> 3 files changed, 19 insertions(+), 20 deletions(-)
>
> diff -puN arch/x86/Kconfig~x86-Kconfig-move-paravirt-under-virtualization arch/x86/Kconfig
> --- linux.git/arch/x86/Kconfig~x86-Kconfig-move-paravirt-under-virtualization 2014-01-13 11:11:36.617255854 -0800
> +++ linux.git-davehans/arch/x86/Kconfig 2014-01-13 11:11:36.620255990 -0800
These diff headers are unreadable...
> @@ -2416,6 +2416,6 @@ source "security/Kconfig"
>
> source "crypto/Kconfig"
>
> -source "arch/x86/kvm/Kconfig"
> +source "arch/x86/Kconfig.virt"
>
> source "lib/Kconfig"
> diff -puN /dev/null arch/x86/Kconfig.virt
> --- /dev/null 2013-11-27 17:20:18.337162396 -0800
> +++ linux.git-davehans/arch/x86/Kconfig.virt 2014-01-13 11:11:36.621256035 -0800
> @@ -0,0 +1,18 @@
> +
> +menuconfig VIRTUALIZATION
> + bool "Virtualization"
Please rename this to "Hypervisor support" or "Virtual guest support" to
avoid confusion with KVM. Note there is a reference to
CONFIG_VIRTUALIZATION in configs/kvm_guest.config.
> + default y
> + ---help---
> + Say Y here to get to see options for using your Linux host to run other
> + operating systems inside virtual machines (guests).
> + This option alone does not add any kernel code.
> +
> + If you say N, all options in this submenu will be skipped and disabled.
> +
> +if VIRTUALIZATION
> +
> +source arch/x86/kvm/Kconfig
> +source drivers/vhost/Kconfig
> +source drivers/lguest/Kconfig
> +
> +endif # VIRTUALIZATION
> diff -puN arch/x86/kvm/Kconfig~x86-Kconfig-move-paravirt-under-virtualization arch/x86/kvm/Kconfig
> --- linux.git/arch/x86/kvm/Kconfig~x86-Kconfig-move-paravirt-under-virtualization 2014-01-13 11:11:36.618255899 -0800
> +++ linux.git-davehans/arch/x86/kvm/Kconfig 2014-01-13 11:11:36.621256035 -0800
> @@ -4,19 +4,6 @@
>
> source "virt/kvm/Kconfig"
>
> -menuconfig VIRTUALIZATION
> - bool "Virtualization"
> - depends on HAVE_KVM || X86
> - default y
> - ---help---
> - Say Y here to get to see options for using your Linux host to run other
> - operating systems inside virtual machines (guests).
> - This option alone does not add any kernel code.
> -
> - If you say N, all options in this submenu will be skipped and disabled.
> -
> -if VIRTUALIZATION
> -
> config KVM
> tristate "Kernel-based Virtual Machine (KVM) support"
> depends on HAVE_KVM
Definitely a good idea to separate KVM from the virtualization submenu.
> @@ -93,9 +80,3 @@ config KVM_DEVICE_ASSIGNMENT
>
> If unsure, say Y.
>
> -# OK, it's a little counter-intuitive to do this, but it puts it neatly under
> -# the virtualization menu.
> -source drivers/vhost/Kconfig
> -source drivers/lguest/Kconfig
> -
> -endif # VIRTUALIZATION
> _
>
next prev parent reply other threads:[~2014-01-13 22:47 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-13 19:22 [PATCH 00/12] [v2] Reorganize x86 Kconfig menu Dave Hansen
2014-01-13 19:22 ` [PATCH 01/12] x86 Kconfig: create extended platforms menu Dave Hansen
2014-01-13 19:22 ` [PATCH 02/12] x86 Kconfig: memory options Dave Hansen
2014-01-13 19:22 ` [PATCH 03/12] x86 Kconfig: move highmem Dave Hansen
2014-01-13 19:22 ` [PATCH 04/12] x86 Kconfig: processor options menu Dave Hansen
2014-01-13 19:22 ` [PATCH 05/12] x86 Kconfig: processor drivers Dave Hansen
2014-01-13 19:22 ` [PATCH 06/12] x86 Kconfig: scheduler options Dave Hansen
2014-01-13 19:22 ` [PATCH 07/12] x86 Kconfig: move memtest Dave Hansen
2014-01-13 19:22 ` [PATCH 08/12] x86 Kconfig: bury obscure options Dave Hansen
2014-01-13 19:22 ` [PATCH 09/12] x86 Kconfig: create mtrr menu under processsor options Dave Hansen
2014-01-13 19:22 ` [PATCH 10/12] x86 Kconfig: MCE menu Dave Hansen
2014-01-13 19:22 ` [PATCH 11/12] x86 Kconfig: create x86/Kconfig.virt Dave Hansen
2014-01-13 22:46 ` Paolo Bonzini [this message]
2014-01-13 23:00 ` Dave Hansen
2014-01-13 23:12 ` Paolo Bonzini
2014-01-14 0:04 ` Dave Hansen
2014-01-13 19:23 ` [PATCH 12/12] x86 Kconfig: move paravirt under "Virtualization" Dave Hansen
2014-01-14 14:25 ` [PATCH 00/12] [v2] Reorganize x86 Kconfig menu Borislav Petkov
2014-01-14 22:12 ` Dave Hansen
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=52D46CBB.9080103@redhat.com \
--to=pbonzini@redhat.com \
--cc=agraf@suse.de \
--cc=bp@suse.de \
--cc=dave@sr71.net \
--cc=dtor@vmware.com \
--cc=gleb@redhat.com \
--cc=haiyangz@microsoft.com \
--cc=kys@microsoft.com \
--cc=linux-kernel@vger.kernel.org \
--cc=x86@kernel.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