Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp1123348rdb; Fri, 16 Feb 2024 06:10:48 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWiKqzwX4uhb7YWf8fVVdMiH9os7TsoJL9QxVnnMD0puVf/vA+vIqnufRBbH3N8Dif1c5rMFieFwLd/kiY9zVuiS4wDA1dECe9RQS48Iw== X-Google-Smtp-Source: AGHT+IG+Xx6zNXDrzArqrAvheauAns/WMymqgR6TjBEe6eIZ1TbgIS2LHXiLxXPG4qlaxlz//xvC X-Received: by 2002:a05:620a:b1a:b0:785:d941:16c8 with SMTP id t26-20020a05620a0b1a00b00785d94116c8mr12335196qkg.18.1708092648189; Fri, 16 Feb 2024 06:10:48 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708092648; cv=pass; d=google.com; s=arc-20160816; b=IbYRDE/ghNTy+rarv/mXMQshVLMLV9pChQdRWVZa5nAqdZdw+NqrPiQWVZBJa5Ke2Q FbuioSMAUxn6mtRe54WRCbN2XyMOe6dKkZk3i55oKZo7M7pDPLWU3Px1EpxpQPt/yc+f 1Z4hHogo8iPVQBbxt9IkaNvkleu5UVb72ifKrNiOVomTpyT2sk0c99Hjk8w2RGkrGn+q +GRk/0rBqb5qBitLE8cxbkvKdzoydo3su2yiErm6d+NOVnWec3dBqcsuMsVb+UboMqv6 dfF7j3u/odjF+nuOO2zeZUDb0+sJjYLrGY7SXV1uIp25aqnWyrE8f4vQQGImZD+agzIo TfBg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=6rsdWrOQEu5DA9icbqeKHZVhT7pOiFjvnQjJDFTZo0Q=; fh=zO8DaL91w4oVkr7TTOSjG4wVES7bHsJ6WEQfQtyqnjo=; b=oS3o4uyByf+iJk/LPexCeDe21OV13VTysUMSfL62xr8FzW2ih+A3Gnd48y3riBudg5 CjjAYNInJ7Nv0DgkgpxSJ7I0K/iQHybn6p7FQhCux9f5AIn8azYuPmKbTNFLUSEUzMxg EtErxqMsnRrRT8k/0bJE4MnWfYzyCl7I6phkCNTcRQzEz1q8wpdf+0W3TcRpPKxtKjDy Z/C5MVM833S9V/SCKwjTu9thLftdhKNOTPqDXtwHm9PFjsBwqES0ER/0NAodi5n81m3m FkVBNz82Wc2IeS3CjpLs0pgSX8M4bJcB/mA7nuqhh1geM9ys4LbEgRnOkk9r1f8jbaAN lW8A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=FOAOy004; arc=pass (i=1 spf=pass spfdomain=linux.microsoft.com dkim=pass dkdomain=linux.microsoft.com dmarc=pass fromdomain=linux.microsoft.com); spf=pass (google.com: domain of linux-kernel+bounces-68712-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68712-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id g2-20020a05620a40c200b00786fe4117fcsi4303410qko.388.2024.02.16.06.10.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 06:10:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68712-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=FOAOy004; arc=pass (i=1 spf=pass spfdomain=linux.microsoft.com dkim=pass dkdomain=linux.microsoft.com dmarc=pass fromdomain=linux.microsoft.com); spf=pass (google.com: domain of linux-kernel+bounces-68712-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68712-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 2BC041C20283 for ; Fri, 16 Feb 2024 14:10:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A0D8212C816; Fri, 16 Feb 2024 14:10:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b="FOAOy004" Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7127012C804; Fri, 16 Feb 2024 14:10:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=13.77.154.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708092614; cv=none; b=nNukKsAAS6TGUCmBVy8iu/iJxCLeM+Yn7J92uinhKe+fCvepyLlR1efuYgHaXXbcAkApxIa6BYfbf21QGdgn+ljluM8TyhY57F3j21N+h7zzLk6qKrLriPDoi563hhOcjooddIjgNBFAMG9pZ0BDNfxZylT56eigBcjGR1rvTGw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708092614; c=relaxed/simple; bh=AXKxcLqkqUbREUhKhjXJPqaX/qrI1VmYgEN0lW7ndqY=; h=From:To:Cc:Subject:Date:Message-Id; b=S1VVTua2myDUyxTE4ZC3RUQ5riR2H8ZdfPe9sZ3aSJQrpzY4Pp5pRo4l4BmJIgfeYbItZ4YiMfLXV42eYFZ1L47Dd5d+pyJFqJsCbWNQyV5+/7vFG9YtDK+OmYV3WP1Ao+U39w6bDki2QZz8FKDnLjPjG6ZdrtP63bfQi2aqync= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com; spf=pass smtp.mailfrom=linux.microsoft.com; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b=FOAOy004; arc=none smtp.client-ip=13.77.154.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.microsoft.com Received: from linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net (linux.microsoft.com [13.77.154.182]) by linux.microsoft.com (Postfix) with ESMTPSA id 78FF6207FD20; Fri, 16 Feb 2024 06:10:07 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 78FF6207FD20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1708092607; bh=6rsdWrOQEu5DA9icbqeKHZVhT7pOiFjvnQjJDFTZo0Q=; h=From:To:Cc:Subject:Date:From; b=FOAOy004sRjynlkJXyFzMeBRzs8ykw3cFaOgzn/JpyDWVFtd7KK4Ah+Pp5d2Zt3yo 1MLKJ5lj6kKVIMQPVBkN0CqaGCSGxs6OfhUN0J516difF6/OXtPuhNysIzjSEtoo84 iUJb43BnlYXakK0KX2yNR6b34M/+oH3nBjaqyRuw= From: Saurabh Sengar To: kys@microsoft.com, haiyangz@microsoft.com, wei.liu@kernel.org, decui@microsoft.com, linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org Cc: ssengar@microsoft.com Subject: [PATCH] Drivers: hv: Kconfig: select CPUMASK_OFFSTACK for Hyper-V Date: Fri, 16 Feb 2024 06:10:03 -0800 Message-Id: <1708092603-14504-1-git-send-email-ssengar@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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 --- 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