Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp1131494pxb; Wed, 16 Feb 2022 11:43:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJy1/XDQjY5MNI5ZwRXFn0w7uUYyjMfvoPsygapUOh+0qYXpQEmD6qXqpUH4nDWWm2ADrASC X-Received: by 2002:a17:906:dfd0:b0:6ce:4226:2672 with SMTP id jt16-20020a170906dfd000b006ce42262672mr3620874ejc.141.1645040590840; Wed, 16 Feb 2022 11:43:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645040590; cv=none; d=google.com; s=arc-20160816; b=ZmclhH24YWYb+Nmhk0WsYmqb3MIwHdcrBzgqYGxZ+99QNLrMY2DuPXnAf0f4H5x5HK A1DGFKg/jprCIrjjRUC3MnPpMw3CXwBrFv0MxRzqJTPc1JzDv5A8Bx3a7htDkk6g46o6 a8oS5pS5NDgz0BhYFtaH7AZMpKnaOPBFnK4aEqG2tib1qtd3bCQa2GPXfpaAXKt4udHS 4jFzT9AdB9f5uA2aMVmtlyJoykNQSd2UV7L8jJ/KLSrcHK6CBlFihiQTgCl2Yoo2xNJ5 lePyyOPLEzQzECDJg/YEKkp49sHYt4EzEIdbdCwSdzIruECOR2eg+JfAkRo8kiqMuQQu 3/QQ== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=wyR630RzyNx26/s46JONQMBySMZ5yXkY4j4jnAUgIT8=; b=skSb1RQIp8WUrL/1FIm23kcifIuoMrHFl0b01AZL/9+Pv+y2T2NyQGv7oE++lEV7U+ rxM7Sno7KCl5Og85d5WwS7Mg0MjKFdca2nCjazYk5ic3jc1DQ6cbeqZBHYAs9iJGyuiG 89ihTe5SNKq3vwUzG+VMXk43uLyNO5TH7/FLR1Dr290fMtg0VQQluW+GWQP7/iInjcof 8I4IgfRbH56AGoKUJkTKDW/y69KblE8cys6H5otPZTCG2IAhw/Ke5LRfTTTCeA0EPKR9 1i3B0UdVL0r6Ajak2a+kPVHsuhdwTHS6SJGMvA2n9TECII/cB7X5hmURipFKiVla9zsa DayQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=A5llajUf; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hz4si516173ejc.134.2022.02.16.11.42.48; Wed, 16 Feb 2022 11:43:10 -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=@intel.com header.s=Intel header.b=A5llajUf; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234748AbiBPOKN (ORCPT + 99 others); Wed, 16 Feb 2022 09:10:13 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:60970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232503AbiBPOKM (ORCPT ); Wed, 16 Feb 2022 09:10:12 -0500 Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 38A9224B2A5 for ; Wed, 16 Feb 2022 06:10:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1645020600; x=1676556600; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=JE5rZMM5sajVsKRI8JKQu1RABLxCXwK0RKNEJpXdTE8=; b=A5llajUfm9HHsR0+jQBUftHehyrjPR3h1ii7YmIcwk8B+wPU17trgn/6 1+f6X4/Ke8kkv21lc6u1zoogRv02k6if5JRESUvssFIsrNW4UTYt/FT8u zl0jYsUPaqDgDmWBdTrKVdTX5F9M1L9piYCYbtvcsNA3sWliUnMRbnr9t uAR5h6SygtXFjaZs4q9FOT5ZE7oaiPvleZaX4yji5VCD1n5mbnYw7iXW1 LlbwLJtHwKdywGftrPTZDmn8HPwdMK6tlRssRLz1sepdbWsLEkrhw+2VP 3WLfx7lfTNnrrN/9irwTdJQEksw7/jBzfLIiuMXvwuh0XLaVv4aYXPusr A==; X-IronPort-AV: E=McAfee;i="6200,9189,10259"; a="311347615" X-IronPort-AV: E=Sophos;i="5.88,374,1635231600"; d="scan'208";a="311347615" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Feb 2022 06:09:59 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,374,1635231600"; d="scan'208";a="636503598" Received: from black.fi.intel.com ([10.237.72.28]) by orsmga004.jf.intel.com with ESMTP; 16 Feb 2022 06:09:53 -0800 Received: by black.fi.intel.com (Postfix, from userid 1000) id 5497437E; Wed, 16 Feb 2022 16:10:09 +0200 (EET) Date: Wed, 16 Feb 2022 17:10:09 +0300 From: "Kirill A. Shutemov" To: Borislav Petkov Cc: "Kuppuswamy, Sathyanarayanan" , 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: <20220216141009.ymmjduf5doqnhnqy@black.fi.intel.com> 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> <20220215213624.tzdahmbhucupwtqe@black.fi.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Wed, Feb 16, 2022 at 11:07:15AM +0100, Borislav Petkov wrote: > On Wed, Feb 16, 2022 at 12:36:24AM +0300, Kirill A. Shutemov wrote: > > How can signle trampoline_start cover all cases? > > All I'm saying is that the real mode header should have a single > > u32 trampoline_start; > > instead of: > > u32 trampoline_start; > u32 sev_es_trampoline_start; > u32 trampoline_start64; > > which all are the same thing on a single system. But these are generated at build time, no? As far as I can see it is initialized in arch/x86/realmode/rm/header.S by linker. I'm confused. -- Kirill A. Shutemov