Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3341235rwl; Mon, 27 Mar 2023 12:35:35 -0700 (PDT) X-Google-Smtp-Source: AKy350ZchAVIiStwYZCYvJza0FHddY8Ju87fe8T+gbrBvb/XwSJRbdWFk0qRgWu61NRzEEPsRgih X-Received: by 2002:a17:903:244c:b0:19a:9833:6f8 with SMTP id l12-20020a170903244c00b0019a983306f8mr18155204pls.35.1679945734908; Mon, 27 Mar 2023 12:35:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679945734; cv=none; d=google.com; s=arc-20160816; b=WdNRNewkHuwAdfYqFOs0kPniuQDuyt3vFpeezCUny+ZUHFIQE8msz9nwOOvbmvtVHf G2+ABIgKpYjRn9jPOOEPV/COf7mxOyLXpm8klTcBgRQwVTWOnrQTH1D3/t+edCF3jOX5 DAdwjL9dlAdONr2wWAUqefn8kkFaf9xLr/nnT3rMsZEXN/KR6LMlWashzslOwmGobgpM 0Yj9MFDYoeKCuOlyKCC+YFSbujuYkCcw3UpFIuRgGGC/r1SpnfxcVCKwhsIyO+phlT+L aLp51nNFcRAOE7KYigpdvl5WI/23yLvxWMYk7WjK75d3/p34vi/RvKLs0+o41UX2qhYX v/pQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=LLhvGH+bUvhv78NgxBIICIWnnuwm6XkOZBqekmu7i8Q=; b=qNOZTF1wM66ecOw4XJG5+BNiV/9envOlL034CCaCbeRst8tveZsQ39/qqD/PekkBwK P/E6VBprhC2C94ioUbffC2dFFB6SjwUoMrloh33nzdIHKvcV+2PTIGHq81Fh2RIXHOkd pd7bL4ycHGRKxgYmWEOGrSSX8FYJDR7Q7aiJo9ibtb9NQ3fgD+HkiAZpSvr1VESolVKD 8BP73YmfWXCBwvHYWpX5rA0xUcH+kEOQBJ9bj8BBF/BilW/PHr53JyExWohOFMeN9CDp RpB2sQJyJpZNQpO1FkMrGsYSJSLNnIWRtDNn+w00cOWzvmG8RLVFG8rZw1xarmt3bDcA Ybiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b="hbBJWP/Y"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jw12-20020a170903278c00b0019f359c651esi26929388plb.556.2023.03.27.12.35.22; Mon, 27 Mar 2023 12:35:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b="hbBJWP/Y"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229934AbjC0TcX (ORCPT + 99 others); Mon, 27 Mar 2023 15:32:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229479AbjC0TcW (ORCPT ); Mon, 27 Mar 2023 15:32:22 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02BA930C0; Mon, 27 Mar 2023 12:32:16 -0700 (PDT) Received: from zn.tnic (p5de8e687.dip0.t-ipconnect.de [93.232.230.135]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 280CE1EC06BB; Mon, 27 Mar 2023 21:32:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1679945535; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=LLhvGH+bUvhv78NgxBIICIWnnuwm6XkOZBqekmu7i8Q=; b=hbBJWP/YPO2mkYrsiC6Oe3oPjt5w1stXXPOB2ayqmhrMKWOW9o6MMnicDJaYsufX6qlpnx TR+FPtxI+uALQnbnYoHKKfc3sieg0rMMkVjjddO89qMX/Z+3sE9udL7sQTu3c/7guNgeuk R4GBn3fTApmIvFSUVQKmzgUuwPz7/YA= Date: Mon, 27 Mar 2023 21:32:10 +0200 From: Borislav Petkov To: David Woodhouse Cc: Brian Gerst , Usama Arif , tglx@linutronix.de, kim.phillips@amd.com, piotrgorski@cachyos.org, oleksandr@natalenko.name, arjan@linux.intel.com, mingo@redhat.com, dave.hansen@linux.intel.com, hpa@zytor.com, x86@kernel.org, pbonzini@redhat.com, paulmck@kernel.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, rcu@vger.kernel.org, mimoja@mimoja.de, hewenliang4@huawei.com, thomas.lendacky@amd.com, seanjc@google.com, pmenzel@molgen.mpg.de, fam.zheng@bytedance.com, punit.agrawal@bytedance.com, simon.evans@bytedance.com, liangma@liangbit.com, gpiccoli@igalia.com, Sabin Rapan Subject: Re: [PATCH v16 8/8] x86/smpboot: Allow parallel bringup for SEV-ES Message-ID: <20230327193210.GCZCHvOmg0aT+CWorC@fat_crate.local> References: <20230321194008.785922-1-usama.arif@bytedance.com> <20230321194008.785922-9-usama.arif@bytedance.com> <20230322224735.GAZBuFh9ld6FuYEyoH@fat_crate.local> <70628793e6777d07f27f43152df497e780925d18.camel@infradead.org> <20230323085138.GAZBwTGly7iOlvxrD4@fat_crate.local> <4dbdd277c4b26ae4b971a910209a3279f79f6837.camel@infradead.org> <20230327174746.GBZCHWwqIa4+nj1/qR@fat_crate.local> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 27, 2023 at 07:14:27PM +0100, David Woodhouse wrote: > Shouldn't the rest of head64.c have the stack protector disabled, for > similar reasons? Not aware of any reason to that so far... > Hm, doesn't most of that just go away (or at least become "Already > Broken; Someone Else's Problemâ„¢") if you just concede to put your new C > function into head64.c along with a whole bunch of other existing > CONFIG_AMD_MEM_ENCRYPT support? If it were only that, maybe, but we have to do the stack __va() thing as Tom explained. So the jumping-through-hoops just to have a simple function in C is not worth it... IMNSVHO, that is. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette