The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Adrian Bunk <bunk@kernel.org>
To: Rusty Russell <rusty@rustcorp.com.au>
Cc: lkml - Kernel Mailing List <linux-kernel@vger.kernel.org>,
	virtualization <virtualization@lists.linux-foundation.org>,
	Andi Kleen <ak@muc.de>
Subject: Re: [PATCH 1/3] Virtualization config cleanup: Select CONFIG_PARAVIRT when required
Date: Tue, 25 Sep 2007 06:05:37 +0200	[thread overview]
Message-ID: <20070925040537.GL6800@stusta.de> (raw)
In-Reply-To: <1190692688.27805.276.camel@localhost.localdomain>

On Tue, Sep 25, 2007 at 01:58:08PM +1000, Rusty Russell wrote:
> (Unless there are complaints, I'll push this as part of the lguest
> patches for 2.6.24, since there are lguest config changes there too).
> 
> Andi points out that PARAVIRT is an option best selected when needed.
> 
> We introduce PARAVIRT_GUEST for the menu itself, and select PARAVIRT
> if the user turns on anything which needs it.
> 
> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
> ---
>  arch/i386/Kconfig     |   33 ++++++++++++++++++++-------------
>  arch/i386/xen/Kconfig |    1 +
>  2 files changed, 21 insertions(+), 13 deletions(-)
> 
> ===================================================================
> --- a/arch/i386/Kconfig
> +++ b/arch/i386/Kconfig
> @@ -214,24 +214,30 @@ config X86_ES7000
>  
>  endchoice
>  
> -menuconfig PARAVIRT
> +config PARAVIRT
> +	bool
> +	depends on !(X86_VISWS || X86_VOYAGER)
> +	help
> +	  This changes the kernel so it can modify itself when it is run
> +	  under a hypervisor, potentially improving performance significantly
> +	  over full virtualization.  However, when run without a hypervisor
> +	  the kernel is theoretically slower and slightly larger.
> +
> +menuconfig PARAVIRT_GUEST
> -	bool "Paravirtualized guest support (EXPERIMENTAL)"
> -	depends on EXPERIMENTAL
> +	bool "Paravirtualized guest support"
> -	depends on !(X86_VISWS || X86_VOYAGER)
> -	help
> -	  Paravirtualization is a way of running multiple instances of
> -	  Linux on the same machine, under a hypervisor.  This option
> -	  changes the kernel so it can modify itself when it is run
> -	  under a hypervisor, improving performance significantly.
> -	  However, when run without a hypervisor the kernel is
> -	  theoretically slower.  If in doubt, say N.
> -
> -if PARAVIRT
> +	help
> +	  Say Y here to get to see options related to running Linux under
> +	  various hypervisors.  This option alone does not add any kernel code.
> +
> +	  If you say N, all options in this submenu will be skipped and disabled.
> +
> +if PARAVIRT_GUEST
>  
>  source "arch/i386/xen/Kconfig"
>  
>  config VMI
>  	bool "VMI Guest support"
> +	select PARAVIRT


depends on !(X86_VISWS || X86_VOYAGER)

>  	help
>  	  VMI provides a paravirtualized interface to the VMware ESX server
>  	  (it could be used by other hypervisors in theory too, but is not
> @@ -239,6 +246,7 @@ config VMI
>  
>  config LGUEST_GUEST
>  	bool "Lguest guest support"
> +	select PARAVIRT
>  	depends on !X86_PAE


depends on !(X86_VISWS || X86_VOYAGER)

>  	help
>  	  Lguest is a tiny in-kernel hypervisor.  Selecting this will
> ===================================================================
> --- a/arch/i386/xen/Kconfig
> +++ b/arch/i386/xen/Kconfig
> @@ -4,6 +4,7 @@
>  
>  config XEN
>  	bool "Xen guest support"
> +	select PARAVIRT
>  	depends on X86_CMPXCHG && X86_TSC && !NEED_MULTIPLE_NODES

depends on !(X86_VISWS || X86_VOYAGER)

>  	help
>  	  This is the Linux Xen port.  Enabling this will allow the

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


  parent reply	other threads:[~2007-09-25  4:05 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-25  3:58 [PATCH 1/3] Virtualization config cleanup: Select CONFIG_PARAVIRT when required Rusty Russell
2007-09-25  3:59 ` [PATCH 2/3] Virtualization config cleanup: move lgeust under virtualization menu Rusty Russell
2007-09-25  4:18   ` [PATCH 3/3] Virtualization config cleanup: The real patch 1/3 Rusty Russell
2007-09-25  4:05 ` Adrian Bunk [this message]
2007-09-25  4:20   ` [PATCH 1/3] Virtualization config cleanup: Select CONFIG_PARAVIRT when required Rusty Russell
2007-09-25  4:26     ` Adrian Bunk
2007-09-25  4:45       ` Rusty Russell

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=20070925040537.GL6800@stusta.de \
    --to=bunk@kernel.org \
    --cc=ak@muc.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rusty@rustcorp.com.au \
    --cc=virtualization@lists.linux-foundation.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