Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp172626lqg; Fri, 1 Mar 2024 01:28:02 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCURA9vZsCK3XSPap6d/TVkJpp8jhSOaaIILMRZrWaXO5NhJdgzfTn6/sueMTfi2S1Hzxd0DmP2S6iJ/DnOfZ9g9ErYVMpJEr88EXxGlYA== X-Google-Smtp-Source: AGHT+IGo2PezlBnJ8fMn6JcHgL7XD7CZNmSdeiajWQcUto5Xm+GGwx8xkUiGHcoMEbVxjWPFzRa7 X-Received: by 2002:a05:6a20:42a9:b0:1a0:e819:877b with SMTP id o41-20020a056a2042a900b001a0e819877bmr1240083pzj.9.1709285282430; Fri, 01 Mar 2024 01:28:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709285282; cv=pass; d=google.com; s=arc-20160816; b=CNfORUrmQpyahuvxInaYeAeyRZTAlTvobp549Re4ysQH3UGkCb2fTmlyY9MBiomXKd j9rchh8xipJ3emaIOdPhJAhwnyBaoMokuOhPtnxT/Jf+YcmCmjDl3pyO0eq+2qI/s+MC 4LFFZeNQLwglfVQKHF4KkijfFj7Vamr6FxQI73Z1WzUb9LWZ9HJFyKz1xI8ZN+2U2WLf 0DX2Ux6PduumhCs2qDckc4u76r6ul800OGABWi1FQJaYnvNb2q/aTpPluezs2PX62K0i +WnTVlxJtFm0DPios9ppqnHrKVofO2QWJ4L7p2dcmcQtY0dCIcc9e6pAxJ+7O7PT1T1z lo4A== 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=Atg8XT2thBQelSWMcmnAukIU+3jojj3IidCei6SFnPc=; fh=diIJ4RFm/mgtil588eXcOBsTnbseK5Wl7tEI1krfhSU=; b=mu499e2TmdY6v3GQphy/2M4JA4sjPUBaXWUAvDkR0utj2HCgqyF4cAWGrr3u/BK5Lo gwvBXlr7UBOZqpuJqKp76JVzaed1NGsP+iA2mENueaBTeU2zopR4j0NBegJjGs7wW/mC R4AWWSEVfNHQKoSI5bZGtw4yibWCL/uCZ01H3lAf4x1Wfi8trCCaW5yV9y0DaBFW0Qzx 4fjso7NNoiEAJZGe3O7POX4rJ8RN8RmEiCritwJ+HW6vxC0jgnrzTuJFJfkwS+geYFqD SsKVoxSCF48xsph4J9VMCM0aL3RIdmmemjIwEYlI3kBFYffDKOMbh1PG3j/gCnqKe8in 4p+g==; 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-88180-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88180-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id m9-20020a170902768900b001d8a813bb9asi3045571pll.160.2024.03.01.01.28.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 01:28:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-88180-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-88180-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88180-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 8C97F28B61C for ; Fri, 1 Mar 2024 09:27:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C358A6A8AA; Fri, 1 Mar 2024 09:26:35 +0000 (UTC) Received: from mail-pf1-f170.google.com (mail-pf1-f170.google.com [209.85.210.170]) (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 EEABE6A01C; Fri, 1 Mar 2024 09:26:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709285195; cv=none; b=IQD0pL+w5NsLdzEW4vkfNK8zospXoc6g4ORu7FLmzqPA+P1u194IQqeCZ8+okrFaOohDP/CXJatQ6Xh503aDGEYG2V7AvTSxi1gFYZgA5jvi1GRe3NkC7ktttNFucDq9S+LOfjPFF01dETLMvIDYurczmxXM60w37gHseJHA2gU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709285195; c=relaxed/simple; bh=7WKGJxmg2PdKUzwkB6QsWrot1mBSztJEZ+7xY8SWtF4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=qk7ZOEzNt0DtIIQ1UCcV/EgKO6qFbm4KlgJpRvQA1Ub9RmiXChbpoDeDeVB4VgyZxf8FVPfVC4VhEmVw+UlnGRkzBMGfnH8kTP/9FuGV37RzXUgOFgpCRmJ3v+iJYObhJgZKI+2dcpMTZxOvOouB/uay3liWAKkuK3H7XMxFju0= 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.210.170 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-pf1-f170.google.com with SMTP id d2e1a72fcca58-6d9f94b9186so1750360b3a.0; Fri, 01 Mar 2024 01:26:33 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709285193; x=1709889993; 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=Atg8XT2thBQelSWMcmnAukIU+3jojj3IidCei6SFnPc=; b=T17mYnuoSrCizlHSU+JSRgpxwnxJIpTz3G1JomMqnJI6sL2pZyJJK11UDn+44AogPz wj89DumnVhIzwUClyWhvb5GSGkBWnZTDhSnWNQbBmM0870tpFwzIKowaMKycMo8CILdc iLMYKZvJU6V8N5W67DwjPdLungVs0k3pnPIdXF5z026zZiiNmKEFXNnvD/P1a0Tot2Kk lOT2nUNb5cukF4Qao9xsqc5rp0bI0UZZ+fhJXjNi4A3S3AL0eEEIkezhRz4vEcTA6z8u 4MYk/np1g6l62JcE3YWzlGzvg1pZBRGlKkmXYFqDomoWqfpSOogxqc573Df8j3Dg3gxw aCAA== X-Forwarded-Encrypted: i=1; AJvYcCUwnuW0lRHzWKAI9lswn1R82MKyDdDQoicqbrYonAvYCvQC5aCs6ObTfjoqw/0qD471TsKUB+NsMNcrxl9ZKmi9Mo7eo4oinSAX7WLG/pKURGnWhhXHp/qsvPFdDP3OHtVg6nQ8kqNuKXn8 X-Gm-Message-State: AOJu0YxPZ3orxaqm4W0Jwc3mtI8YdScwQfa+niSvs0E9RGo27TBI9zTy MVuZ64Ej5aK6jli2UcYh3nCJPdCnV9qlQUydNO30TpOyNcxpNlIwwErZWJPe X-Received: by 2002:a05:6a00:14cc:b0:6e4:fc2b:5f6c with SMTP id w12-20020a056a0014cc00b006e4fc2b5f6cmr1723654pfu.9.1709285193244; Fri, 01 Mar 2024 01:26:33 -0800 (PST) Received: from liuwe-devbox-debian-v2 ([20.69.120.36]) by smtp.gmail.com with ESMTPSA id p20-20020a62ab14000000b006e47e57d976sm2533856pff.166.2024.03.01.01.26.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 01:26:32 -0800 (PST) Date: Fri, 1 Mar 2024 09:26:31 +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" , "dwmw@amazon.co.uk" , "peterz@infradead.org" , "linux-hyperv@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "ssengar@microsoft.com" Subject: Re: [PATCH v2] x86/hyperv: Use per cpu initial stack for vtl context Message-ID: References: <1706857957-13857-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 Mon, Feb 05, 2024 at 04:36:42PM +0000, Michael Kelley wrote: > From: Saurabh Sengar Sent: Thursday, February 1, 2024 11:13 PM > > > > Currently, the secondary CPUs in Hyper-V VTL context lack support for > > parallel startup. Therefore, relying on the single initial_stack fetched > > from the current task structure suffices for all vCPUs. > > > > However, common initial_stack risks stack corruption when parallel startup > > is enabled. In order to facilitate parallel startup, use the initial_stack > > from the per CPU idle thread instead of the current task. > > > > Fixes: 18415f33e2ac ("cpu/hotplug: Allow "parallel" bringup up to CPUHP_BP_KICK_AP_STATE") > > Signed-off-by: Saurabh Sengar > > --- [...] > > Reviewed-by: Michael Kelley Applied. Thanks.