Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp177171lqg; Fri, 1 Mar 2024 01:37:18 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUay0to85Et2JNMDF9oO5WzHb2O2a3WodG/Lke8M2fQmPURyfsE4CJ3nDj7Qsy4bH/019KT2uthRzveUk5vDrSdIpeUZxX20RieR643iw== X-Google-Smtp-Source: AGHT+IE/lYs6sR7QYc3ftuHa0JVqfHVQlzMne3ngL2puHjpcec9XiFeZi08fGs46qdZVb8AkdfOo X-Received: by 2002:a17:906:394b:b0:a43:6146:a4df with SMTP id g11-20020a170906394b00b00a436146a4dfmr736084eje.21.1709285838310; Fri, 01 Mar 2024 01:37:18 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709285838; cv=pass; d=google.com; s=arc-20160816; b=OktMKt+NQAk21QQSNvi3SBpKjXR9b0Vgv792JLVo2Hgi6hifxxYzpTEb4dr3Cikik2 Ltq9QOqBhZJv/+jBr/H2bfOBxtCE8xrzym+kwg8+defvNIDm+g3gYFu0DTv+ES5Cy7Xz uNoOXCchi7XFAOb4vd8kPGzGHCTdFLRfO+2cJU/xrLWgop9Gk59sG1K9ThZ0LxyD7ckU TQnI38hPMmos15O+5RKsijqfp8QrgK1GQp09IUDZKuv2KfeyiWAnjg+lUMzQXsjhCh7K C9j4EH8QnglfxflGPN0A6LEQbZ6UQ6VTEQaI/wYRaGLk8PnMUD0PFI4c+FPEaqm/1Dt5 JrMg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=jOC4MpU8JxvSsXcHy/X9vFap4LA8nkNPH//pLx9vSds=; fh=Wv5uaipk2ehSamysmHjwSlq8tuXMEo9OHyOZ4jLn2Uo=; b=RDrvXA7j0VakDPuxgoZ7ToN5gVnE7O3epJdN9c8fBDAu1GuYfi3/C6WyhoEV723Hl8 /FKgMnGpN5RcO6FTz0C9PcIxpfuiHP+/748a6x5sOaD+3kB9SiGrpQwRe/n3+kSdW+Yr GobNCQTvxqUgLKxLkWl5z7+XnBQfIhFOWIrZqH8CPK0MCAsa+M9PHRDxT9JeZfBWvQYr rxELCu1kH9RL28i8MYjWhW2PZ9OqjiDxZNit7agv2k4QDiTkFqISu/dUz4P+6bwtHlBd Z+JTr2XZ8lPIKFip1LCguPrPKRzLOW6yTw717ezDX0ER15u5mvAl75lFo5k/CXwAuGH7 ld8A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-88179-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88179-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id k8-20020a170906054800b00a446d966c32si647391eja.74.2024.03.01.01.37.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 01:37:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-88179-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-88179-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88179-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 26EE41F268C5 for ; Fri, 1 Mar 2024 09:26:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1F6D16A35E; Fri, 1 Mar 2024 09:26:29 +0000 (UTC) Received: from mail-pg1-f179.google.com (mail-pg1-f179.google.com [209.85.215.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 563C36A8A3; Fri, 1 Mar 2024 09:26:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709285188; cv=none; b=Ep4inf0HrElhvK0K4nkMA6SoNzQECquHN82hod9KSsjCyCKmM53BQzEmBMTzi6L5WZnr0uKjW/SGcbaNVUbdlJ+X3SPRrQviYuzwCJyfY0I9aQAu9vp615U889yIPsQxX1MU/HLE//GDBSu88RF7PQvnKQMaR92kxcFAAdZS1b4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709285188; c=relaxed/simple; bh=bXQ6OcUOFcMZUMvTAvT1Ypfk3fSOlZaxPyc7KHUWF1Y=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=GXyxl3YKbgbiGBaiGIRhLW6aXkMOLReFbVYSHSLunDzODKSBRTOKKZQSkjUK7HQAQWxvKzK91HzgV3WThjjrFQVN3T96mILUMB7y8nMGhr129p2U+JIHXxywRdwx6rXD2WLnwfI9UZ1IRe0CvGEF302Dm7x7gn2JgUtNeOyisBY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.215.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pg1-f179.google.com with SMTP id 41be03b00d2f7-5ce07cf1e5dso1717004a12.2; Fri, 01 Mar 2024 01:26:27 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709285186; x=1709889986; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=jOC4MpU8JxvSsXcHy/X9vFap4LA8nkNPH//pLx9vSds=; b=LNlFBOjvk5AyOg97oZ5pjIbW8nEKJ7rvJohfYd8Wciz6fGHgGVSnkeEEAbU1JNroMu prv7NB6dt2tE5tQ3IyNnhNELsipu/gg0zP/yAbDmwJvk8ANTxwopFH9TfbN/5qL2GBua CGZeej7zh+6dKDjAnvrN8BvgjQPzqLD9EBTgzv/S7e4ohqCaJmD2OwT0V/cwNDqvLOiZ UbPUEeXCrzJM+YHSmJqCJgtE6EWdjV0prvqpQWDqGmhCAf/mqttGP0/OZtVKhME7Wgz+ Stgh8WqdLvhdYqrvRj4D6Z7RuDONybqsRjXi6xd87Ve8jNIv0pfsNabfDLBQJy8GDxg5 VZRg== X-Forwarded-Encrypted: i=1; AJvYcCU+ppJ3WR4hgDe1uoiJR4wTG1YMkZbcy0u1Ke2+nzAu5c8XKKS8NpfqiipJF9MZFTbEDXGwys+F+rtwnhmuUvm+Uv0JyoccuLH1DYyw3X+NfNv8RM+VRZhVc40875h1e/h8PY8LCS6RuBDl X-Gm-Message-State: AOJu0YzymvDt0iV+xLdRex0SViwCNZIsTXjVDNJUQpLaZPYH3blNmn/y mz8cFRTQkTcNzBlxCDghWyGRCFL1FgfueoS3R+KfAKWpe7Ils35w X-Received: by 2002:a05:6a21:199:b0:1a0:cd54:6d9f with SMTP id le25-20020a056a21019900b001a0cd546d9fmr958464pzb.23.1709285186662; Fri, 01 Mar 2024 01:26:26 -0800 (PST) Received: from liuwe-devbox-debian-v2 ([20.69.120.36]) by smtp.gmail.com with ESMTPSA id mq12-20020a170902fd4c00b001dc8f1e06eesm2951441plb.291.2024.03.01.01.26.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 01:26:26 -0800 (PST) Date: Fri, 1 Mar 2024 09:26:24 +0000 From: Wei Liu To: Michael Kelley Cc: Saurabh Sengar , "kys@microsoft.com" , "haiyangz@microsoft.com" , "wei.liu@kernel.org" , "decui@microsoft.com" , "tglx@linutronix.de" , "mingo@redhat.com" , "bp@alien8.de" , "dave.hansen@linux.intel.com" , "x86@kernel.org" , "hpa@zytor.com" , "linux-hyperv@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "ssengar@microsoft.com" Subject: Re: [PATCH v2] x86/hyperv: Allow 15-bit APIC IDs for VTL platforms Message-ID: References: <1705341460-18394-1-git-send-email-ssengar@linux.microsoft.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Tue, Jan 16, 2024 at 03:25:47PM +0000, Michael Kelley wrote: > From: Saurabh Sengar Sent: Monday, January 15, 2024 9:58 AM > > > > The current method for signaling the compatibility of a Hyper-V host > > with MSIs featuring 15-bit APIC IDs relies on a synthetic cpuid leaf. > > However, for higher VTLs, this leaf is not reported, due to the absence > > of an IO-APIC. > > > > As an alternative, assume that when running at a high VTL, the host > > supports 15-bit APIC IDs. This assumption is safe, as Hyper-V does not > > employ any architectural MSIs at higher VTLs > > > > This unblocks startup of VTL2 environments with more than 256 CPUs. > > > > Signed-off-by: Saurabh Sengar [...] > > Reviewed-by: Michael Kelley Applied. Thanks.