All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Drivers: hv: Kconfig: select CPUMASK_OFFSTACK for Hyper-V
@ 2024-02-16 14:10 Saurabh Sengar
  2024-02-17 16:46 ` Michael Kelley
  0 siblings, 1 reply; 4+ messages in thread
From: Saurabh Sengar @ 2024-02-16 14:10 UTC (permalink / raw)
  To: kys, haiyangz, wei.liu, decui, linux-hyperv, linux-kernel; +Cc: ssengar

CPUMASK_OFFSTACK must be set to have NR_CPUS_RANGE_END value greater than
512, which eventually allows NR_CPUS > 512.

CPUMASK_OFFSTACK can also be enabled by setting MAXSMP=y, but that will
set NR_CPUS=8192. This is not accurate for Hyper-V, because maximum number
of vCPU supported by Hyper-V today is 2048. Thus, enabling MAXSMP increase
the vmlinux size unnecessary.

This option allows NR_CPUS=2048 which saves around 1MB of vmlinux size for
Hyper-V.

Signed-off-by: Saurabh Sengar <ssengar@linux.microsoft.com>
---
 drivers/hv/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/hv/Kconfig b/drivers/hv/Kconfig
index 0024210..bc3f496 100644
--- a/drivers/hv/Kconfig
+++ b/drivers/hv/Kconfig
@@ -9,6 +9,7 @@ config HYPERV
 	select PARAVIRT
 	select X86_HV_CALLBACK_VECTOR if X86
 	select OF_EARLY_FLATTREE if OF
+	select CPUMASK_OFFSTACK
 	help
 	  Select this option to run Linux as a Hyper-V client operating
 	  system.
-- 
1.8.3.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-02-19 17:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-16 14:10 [PATCH] Drivers: hv: Kconfig: select CPUMASK_OFFSTACK for Hyper-V Saurabh Sengar
2024-02-17 16:46 ` Michael Kelley
2024-02-18  7:17   ` Saurabh Singh Sengar
2024-02-19 17:53     ` Michael Kelley

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.