Thread (5 messages) 5 messages, 3 authors, 2020-12-03

Re: [PATCH v2 1/2] x86: make VMware support optional

From: Randy Dunlap <hidden>
Date: 2020-12-02 22:00:34
Also in: linux-hyperv, linux-input, lkml

On 12/2/20 1:19 PM, Enrico Weigelt, metux IT consult wrote:
quoted hunk ↗ jump to hunk
Make it possible to opt-out from VMware support, for minimized kernels
that never will be run under Vmware (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/input/mouse/Kconfig      |  2 +-
 drivers/misc/Kconfig             |  2 +-
 drivers/ptp/Kconfig              |  2 +-
 6 files changed, 19 insertions(+), 4 deletions(-)
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index f6946b81f74a..eff12460cb3c 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -801,6 +801,17 @@ config X86_HV_CALLBACK_VECTOR
 
 source "arch/x86/xen/Kconfig"
 
+config VMWARE_GUEST
+	bool "VMware Guest support"
+	default y
+	help
+	  This option enables several optimizations for running under the
+	  VMware hypervisor.
+
+	  Disabling it saves a few kb, for stripped down kernels eg. in high
	                           kB or KiB or even KB, but not 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help