Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp187496pxv; Thu, 24 Jun 2021 05:55:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyoCJ5raVmfz/hdPAAGbNLT6l24nIMWdV0PBYSFrayjjdYmfHke9EgB/xtHLzNe+8Re9yg+ X-Received: by 2002:a92:7d08:: with SMTP id y8mr3243928ilc.43.1624539320648; Thu, 24 Jun 2021 05:55:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624539320; cv=none; d=google.com; s=arc-20160816; b=Ueeo2hS4CB33QxF2sUF33TDqXUqq1krz0MEizVDEnhNR60x1sT5E1ACUmaXPHrf4I+ VwGtMbrIq2Bb0JAl9XyfGwyp6hXK5Bh/7oDQvEH6zYWdpb9irC4TwXk7viB2x/z21NQY SVWLgxPDWxUmfQwNfDwW0M/pkF4nJE12xY8uCsIgaiPLO0ypzxCnc5iwEzvkC+tLEqc1 d3v9++RH/urj7PRCKhd75max/2wPZNFZBEDoOvrSR/6XoP4U8QRryWF25iD3pu82DiXj N8sjIkK/6Rarqkc2oaOtFG2mCOWcwf1LTqGyPtCI0qrVhYj12s4Mix9vh8RpHNO0qbhd Y6kQ== 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=exWGaN5nlDIIfjw6LKdL5i6bEdP3AlfmgKU5Qi35VZs=; b=jEodA3OLgIwEd/699xRQpYnhPYh/C22jEOgYkfkLSKsTg+5fOWFm+WY4PtmsKYASi5 VpHOVZLL6AEX7yjYAxao5GORrkJpu0U0nnzHqIeM/cxBeCX08FlYFEbwLrG9ur8XD5GS LLKvZ80Niq51MEDrGWoOzvBVzkH1KjoUoOnWqul0uWK2dNHGdFVEhIp7dM8BRlNKFD6r vUr9+8xv2g9GzdztuTwh2satbP3vXtnLd2mH7bLPShlQ3xKVV8Tmf5J4rXyrmRXn2Fbm dNd71IuCXw0GoDkpw3abtxCpk07UCntC0QJ3sSjPP/CAcBc5QoANMlnPX5hbLBsdUtrR JIuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=OH1tJ1FW; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p14si2644670iov.42.2021.06.24.05.55.02; Thu, 24 Jun 2021 05:55:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=OH1tJ1FW; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-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 S231426AbhFXM5J (ORCPT + 99 others); Thu, 24 Jun 2021 08:57:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231262AbhFXM5J (ORCPT ); Thu, 24 Jun 2021 08:57:09 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4BC5FC061574; Thu, 24 Jun 2021 05:54:50 -0700 (PDT) Received: from zn.tnic (p200300ec2f0c1e00b0ee742129e64455.dip0.t-ipconnect.de [IPv6:2003:ec:2f0c:1e00:b0ee:7421:29e6:4455]) (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 935E01EC034B; Thu, 24 Jun 2021 14:54:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1624539288; 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=exWGaN5nlDIIfjw6LKdL5i6bEdP3AlfmgKU5Qi35VZs=; b=OH1tJ1FWIwOyqk5pV85F5ISFN32aCDPduQ56E4e2jBVYcAbLhc0k5JTE+UAy+Gb/l4bjer 2TbZqRl2XDUp7GrXFn0hfpBqzyIwDdJKoBHOLDBPQ3gyuslhsDz2N/IZaxZ/JW9Kqam6h6 qOAkZxpCS9rabjOWu5AiS3lx0aUfhL0= Date: Thu, 24 Jun 2021 14:54:44 +0200 From: Borislav Petkov To: Michael Roth Cc: "Kuppuswamy, Sathyanarayanan" , Dave Hansen , Brijesh Singh , x86@kernel.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, linux-efi@vger.kernel.org, platform-driver-x86@vger.kernel.org, linux-coco@lists.linux.dev, linux-mm@kvack.org, linux-crypto@vger.kernel.org, Thomas Gleixner , Ingo Molnar , Joerg Roedel , Tom Lendacky , "H. Peter Anvin" , Ard Biesheuvel , Paolo Bonzini , Sean Christopherson , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Andy Lutomirski , Sergio Lopez , Peter Gonda , Peter Zijlstra , Srinivas Pandruvada , David Rientjes , tony.luck@intel.com, npmccallum@redhat.com Subject: Re: [PATCH Part1 RFC v3 20/22] x86/boot: Add Confidential Computing address to setup_header Message-ID: References: <20210602140416.23573-1-brijesh.singh@amd.com> <20210602140416.23573-21-brijesh.singh@amd.com> <15568c80-c9a9-5602-d940-264af87bed98@amd.com> <162442264313.98837.16983159316116149849@amd.com> <20210624031911.eznpkbgjt4e445xj@amd.com> <20210624123447.zbfkohbtdusey66w@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210624123447.zbfkohbtdusey66w@amd.com> Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Thu, Jun 24, 2021 at 07:34:47AM -0500, Michael Roth wrote: > Well, that's sufficient for the boot/compressed->uncompressed parameter > passing, but wouldn't actual bootloaders still need something in > setup_data/setup_header to pass in the CC blob (for things like non-EFI > environments/containers)? I was under the impression that using > boot_params directly was more of a legacy/ad-hoc thing, is that > accurate? /me goes and rereads your early mail. I'm more confused. You're talking about parsing an EFI table early which contains the ccblob and in it is the CPUID page. Now above you say, "non-EFI environments". I'm guessing you want to support both so you want to either parse an EFI table on EFI environments or pass the blob in a different way in non-EFI envs. Yes, no? Also, you want to pass the previously parsed CPUID page address to kernel proper. For that I suggested to use boot_params. What else? How about you explain in a lot more detail what exactly the requirements and the use cases are so that we can have a common base to discuss it on. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette