Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp691791pxb; Wed, 16 Feb 2022 02:10:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJyWgr7jTlZ1fKZ3FJqmQTnnuE9QAx9kpUsmB6WiNmnZqEZ2DbXYzJ8CgpUBrx2wnA1suDio X-Received: by 2002:a63:fb46:0:b0:372:a1d6:45ea with SMTP id w6-20020a63fb46000000b00372a1d645eamr1653577pgj.549.1645006205976; Wed, 16 Feb 2022 02:10:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645006205; cv=none; d=google.com; s=arc-20160816; b=YVo4H1aRpx493IWMlwL1o+TItcj0DI4tww6PZefjUKF4+sCBHPEWuyArjRNf08x2CV XfCceTOw9BCvMv7DquHVwCX2UmUD+xiEdRDh8Ctenly9uyDxZSDUIk9jByvYwDPYU2nT nRdXLp/DHGv55hhE5ZmTbrfcXvyEHHBTi8a0LkOfpHjwNcHV5z2hYl7dyGtTA5pIGVRZ IIAjhf/x1uihJRJl7340VmwPoDt06+A7BnYvPPo2rVcNkUM1gHOreHwbE+WnFZPdS1qA VVCjV1OKNhUsMN8B4tP4rZrbQ8wHHXrW8glrsK/M1+7Cko9IYLZOv8Coi7MUBZijfaV1 l63w== 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=Mc1byk01SMNlUFOzzBp9ZSJPPb31u5PB8VWGi7eix5E=; b=jjqMW9Og6zVW73XVsbc5Rr0ihTvi3nMTs94+umC0B8GcZr4FLeB3ljz/VQSVN2aF30 /3wSBnf2pqn9QbJb4iY9Er38p6RaFUjOfAIWQDKcSY9x03/fSrpY5FOqAOlcXt/d/0bp rd9jgJNTlvwYV+fWw87/U1cRpaOiK63u+gdjtscrmda3/hdnKGRXGcf5E5Kd2TdMiDcW Ix8EaJYeAFnTrWOcv+RalYnrdM/ACnEfR7bf/BvM8oIIgnxNYEvjYxPQicTaZpteLE9k jnfigyBVNfhdHLtHO40vV99Smqd3MMoFrpO99Qbs3Wqajyv+rNye4jclCSqTZrzNZvfl Ixvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=Z0zaQ3nb; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id k24si30980764pfi.65.2022.02.16.02.10.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Feb 2022 02:10:05 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=Z0zaQ3nb; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C86CF1C00C9; Wed, 16 Feb 2022 02:07:30 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232689AbiBPKH1 (ORCPT + 99 others); Wed, 16 Feb 2022 05:07:27 -0500 Received: from gmail-smtp-in.l.google.com ([23.128.96.19]:46498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232660AbiBPKH0 (ORCPT ); Wed, 16 Feb 2022 05:07:26 -0500 Received: from mail.skyhub.de (mail.skyhub.de [5.9.137.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E41CA1B85A3 for ; Wed, 16 Feb 2022 02:07:13 -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 614A41EC04C1; Wed, 16 Feb 2022 11:07:08 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1645006028; 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:in-reply-to:in-reply-to: references:references; bh=Mc1byk01SMNlUFOzzBp9ZSJPPb31u5PB8VWGi7eix5E=; b=Z0zaQ3nbJ1YzlRMd4uKT4BEkM8VbIWo5VeAxr/dS5ZVBnKq+WYSOCRgQEtRseB00CnpPFV TBXzGqsZfLiTVfCAVPNivNdefp+hgFsC4WoR7Ch0iJ827aTBCrMSiGVwAk+3Nzr+SRseCb 3EBUIDPrq8bvl9zxAQF5XDkq2fK5yhQ= Date: Wed, 16 Feb 2022 11:07:15 +0100 From: Borislav Petkov To: "Kirill A. Shutemov" 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: 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=utf-8 Content-Disposition: inline In-Reply-To: <20220215213624.tzdahmbhucupwtqe@black.fi.intel.com> X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 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. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette