Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp202402pxb; Mon, 7 Feb 2022 09:18:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJxmbsT7FCSzWW+MfhUZEdLQNGNMaGbZdF17eIJ5oVxXknyL+0z8z3VCnUKhf4yJn/4UEqb3 X-Received: by 2002:a17:90a:fc6:: with SMTP id 64mr657049pjz.36.1644254322907; Mon, 07 Feb 2022 09:18:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644254322; cv=none; d=google.com; s=arc-20160816; b=XxOuCaQVGdVEWx3IlxMAI3LLdMm1ZJpVNZ+PEzMtNdy68PfFtg7pN9WAbFoqLlLiVT Hq1gXhevStfzjDD7q8/aZVvZsnClfaHo67+Z9zr2WieZV4b9CjwmCJcNRPCxXVmrlXd0 L471B9+n765KyEkrEJNg311KuDeeLst0to2lmkypoJ28O51uGpPOPeo8w7tre4EPnaW3 ZmGVMb9Ft4wiXRYDJ+UHW8FmmwDHKBOT95S9u2m3gB+ysj5hGbiVOj2k1ravDPggVvZL xeL8A+aUYVxLmGEdrizd+6oip002ao/uWIgqgOcb2tY0SX9YxRGaH8TyU+4XV00GFQpy n3VA== 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=oG61hjWt/E+i7OIsspn7nAQezVhhbhg1afVFCFPtmnY=; b=agJ+l7zgTQR+uMGtcUNJeIzCw1lusYgRfb8l6VcmaL1a+0AnQ/Kyho502GbHX5nitn 4R2CScysMzM1FW7/33eNdsFaFbSaSFjnsOTt4iaf+IKIuUy4HPyDNaCGP4x7LDMyz9la Iv0sT95Acy/e95BCSoshcNgYZSwGvbznNmtIdlPJAbeI2Pho+YCP4+BWkDuafiiSSq9+ f0q4FSwz4+OczUp8p8mwOeHQEH/efAYxcZl5pVCtnVqC7MLi0uUsU7g2XDLhy40qMQzS LGxiHqwguQZ35UIDiwfJf2fmal1nB626lzFNYcwFx254yoXG1b7WKbwL9lmwr3Y08MUQ ECyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=BwEGcIFs; 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 rm9si17367454pjb.133.2022.02.07.09.18.30; Mon, 07 Feb 2022 09:18:42 -0800 (PST) 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=BwEGcIFs; 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 S1359011AbiBDNuN (ORCPT + 99 others); Fri, 4 Feb 2022 08:50:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235063AbiBDNuK (ORCPT ); Fri, 4 Feb 2022 08:50:10 -0500 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 58746C061714 for ; Fri, 4 Feb 2022 05:50:10 -0800 (PST) Received: from zn.tnic (dslb-088-067-221-104.088.067.pools.vodafone-ip.de [88.67.221.104]) (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 A37441EC0662; Fri, 4 Feb 2022 14:50:04 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1643982604; 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=oG61hjWt/E+i7OIsspn7nAQezVhhbhg1afVFCFPtmnY=; b=BwEGcIFsfk/C6URpiZbEOrg/423xa+mNsp/WlrmAWys7gk8NAsmAeiz8r1J+zZQBQFd+1B WBtUDGgQitOc7wb/hEgKWJpEroBPOFPDICxYU1AxbZiVOBYUZGW3fmIAV4dDkqHdm2Ra+G qKuGks9dWSWuwo0KgyduwDbT80kcNl4= Date: Fri, 4 Feb 2022 14:49:59 +0100 From: Borislav Petkov To: "Kuppuswamy, Sathyanarayanan" Cc: "Kirill A. Shutemov" , Sean Christopherson , tglx@linutronix.de, mingo@redhat.com, dave.hansen@intel.com, luto@kernel.org, peterz@infradead.org, aarcange@redhat.com, ak@linux.intel.com, dan.j.williams@intel.com, david@redhat.com, hpa@zytor.com, jgross@suse.com, jmattson@google.com, joro@8bytes.org, jpoimboe@redhat.com, knsathya@kernel.org, pbonzini@redhat.com, sdeep@vmware.com, seanjc@google.com, tony.luck@intel.com, vkuznets@redhat.com, wanpengli@tencent.com, x86@kernel.org, linux-kernel@vger.kernel.org, Kai Huang Subject: Re: [PATCHv2 16/29] x86/boot: Add a trampoline for booting APs via firmware handoff Message-ID: References: <20220124150215.36893-1-kirill.shutemov@linux.intel.com> <20220124150215.36893-17-kirill.shutemov@linux.intel.com> <25fec256-7feb-e94d-5e37-3a174b6c6a66@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <25fec256-7feb-e94d-5e37-3a174b6c6a66@linux.intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 04, 2022 at 03:27:19AM -0800, Kuppuswamy, Sathyanarayanan wrote: > trampoline_start and sev_es_trampoline_start are not mutually exclusive. > Both are > used in arch/x86/kernel/sev.c. I know - I've asked Jörg to have a look here. > But trampoline_start64 can be removed and replaced with trampoline_start. > But using > _*64 suffix makes it clear that is used for 64 bit(CONFIG_X86_64). > > Adding it for clarity seems to be fine to me. Does it matter if the start IP is the same for all APs? Or do will there be a case where you have some APs starting from the 32-bit trampoline and some from the 64-bit one, on the same system? (that would be weird but what do I know...) -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette