Re: [PATCH v2 2/2] x86: make Hyper-V support optional

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
> ---
>  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




[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux