linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Randy Dunlap <rdunlap@infradead.org>
To: "Enrico Weigelt, metux IT consult" <info@metux.net>,
	linux-kernel@vger.kernel.org
Cc: tglx@linutronix.de, mingo@redhat.com, bp@alien8.de,
	x86@kernel.org, hpa@zytor.com, dmitry.torokhov@gmail.com,
	derek.kiernan@xilinx.com, dragan.cvetic@xilinx.com,
	richardcochran@gmail.com, linux-hyperv@vger.kernel.org,
	linux-input@vger.kernel.org, netdev@vger.kernel.org
Subject: Re: [PATCH v2 2/2] x86: make Hyper-V support optional
Date: Wed, 2 Dec 2020 13:58:52 -0800	[thread overview]
Message-ID: <e898aa1b-84e8-9898-c834-48c599be7ffd@infradead.org> (raw)
In-Reply-To: <20201202211949.17730-2-info@metux.net>

On 12/2/20 1:19 PM, Enrico Weigelt, metux IT consult wrote:
> Make it possible to opt-out from Hyper-V support, for minimized kernels
> that never will by run under Hyper-V. (eg. high-density virtualization
> or embedded systems)
> 
> Average distro kernel will leave it on, therefore default to y.
> 
> Signed-off-by: Enrico Weigelt <info@metux.net>
> ---
>  arch/x86/Kconfig                 | 11 +++++++++++
>  arch/x86/kernel/cpu/Makefile     |  4 ++--
>  arch/x86/kernel/cpu/hypervisor.c |  2 ++
>  drivers/hv/Kconfig               |  2 +-
>  4 files changed, 16 insertions(+), 3 deletions(-)
> 
> diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
> index eff12460cb3c..57d20591d6ee 100644
> --- a/arch/x86/Kconfig
> +++ b/arch/x86/Kconfig
> @@ -812,6 +812,17 @@ config VMWARE_GUEST
>  	  density virtualization or embedded systems running (para)virtualized
>  	  workloads.
>  
> +config HYPERV_GUEST
> +	bool "Hyper-V Guest support"
> +	default y
> +	help
> +	  This option enables several optimizations for running under the
> +	  Hyper-V hypervisor.
> +
> +	  Disabling it saves a few kb, for stripped down kernels eg. in high

	                           kB,                           e.g.

> +	  density virtualization or embedded systems running (para)virtualized
> +	  workloads.
> +
>  config KVM_GUEST
>  	bool "KVM Guest support (including kvmclock)"
>  	depends on PARAVIRT


-- 
~Randy


  reply	other threads:[~2020-12-02 21:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-02 21:19 [PATCH v2 1/2] x86: make VMware support optional Enrico Weigelt, metux IT consult
2020-12-02 21:19 ` [PATCH v2 2/2] x86: make Hyper-V " Enrico Weigelt, metux IT consult
2020-12-02 21:58   ` Randy Dunlap [this message]
2020-12-02 21:59 ` [PATCH v2 1/2] x86: make VMware " Randy Dunlap
2020-12-03  7:46 ` Borislav Petkov

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=e898aa1b-84e8-9898-c834-48c599be7ffd@infradead.org \
    --to=rdunlap@infradead.org \
    --cc=bp@alien8.de \
    --cc=derek.kiernan@xilinx.com \
    --cc=dmitry.torokhov@gmail.com \
    --cc=dragan.cvetic@xilinx.com \
    --cc=hpa@zytor.com \
    --cc=info@metux.net \
    --cc=linux-hyperv@vger.kernel.org \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=netdev@vger.kernel.org \
    --cc=richardcochran@gmail.com \
    --cc=tglx@linutronix.de \
    --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;
as well as URLs for NNTP newsgroup(s).