Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1165474pxb; Fri, 21 Jan 2022 11:14:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJzT3d8ZWoLKMpqjjsssceNe8AkAsH7K6YloppKc841GF842rQdrYiKMnqnJb9D8Lh9bd7+W X-Received: by 2002:a17:90a:8808:: with SMTP id s8mr2103221pjn.9.1642792463961; Fri, 21 Jan 2022 11:14:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642792463; cv=none; d=google.com; s=arc-20160816; b=Vnuf6RjfAH7TeJxjUj55aCb/wlAEGlYzG+xK0qfFHoJm5lGE9gM9G/Mz07w018uFDQ P3UeT1uy1oPxiDk1FIBuxRc94j5y7AEgcyYMeZCKhSn0Puf3gayW/A33S3xglJ7a/fIu Ow1ayNUg3H770Rokv+pAuHJf7kVF/dTJfLXxJ87t9nKL0tOnDAkf2oU0mLxiwouDpAua 4Ffy1fAJQj3rdPL8vndYF5qEF17isD3eOFvVTliAk9uZI6j+KeSCv0L9/KZASy0DIABw prz2NdHLFQr0tKaWCUq0riWNjAuTjwJkDyXUH2YbVsHu1KepOcaaPQok3YXFMHcpjDR1 +lzQ== 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=9NkeC38NDHwqMNmxnwshSdaG9bUxrwB91bS9TAMfKIo=; b=aj1W9XxOU4RwUSe0XWkoqRVKxOOI2yapMBxFwMC8nVtFGRWpBlhHUCJv3P05F88srP 77QTjbL173Y715X0gVtzhYFM4QPmlaa2235BB/u/mUoZ4xoL6y51SuViX4nRd9w8+ZrW UdSYhm8ZMpj7X/VSr38lLlVufxwL0jFogVl2eYbo+M1NLPxS4oSNQKa7A0bSo8EOKjcx njK0YSLeMaJo1kLzCq/HgHnmFrKA/jAbx6bLTQbzDDgQ5svCnjkR5SLu2vwEAh2VAwho v84cx7aM1FLm89aj4Dfj58mcEU6dM1NQk7hulixengzD2+peEMEggT72w6Xenm8jULmB LS2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=mvKNWpbj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k20si5727556pll.387.2022.01.21.11.14.11; Fri, 21 Jan 2022 11:14:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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=mvKNWpbj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1349563AbiASMz6 (ORCPT + 99 others); Wed, 19 Jan 2022 07:55:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232897AbiASMz4 (ORCPT ); Wed, 19 Jan 2022 07:55:56 -0500 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB4E5C061574; Wed, 19 Jan 2022 04:55:55 -0800 (PST) Received: from zn.tnic (dslb-088-067-202-008.088.067.pools.vodafone-ip.de [88.67.202.8]) (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 D72F91EC0373; Wed, 19 Jan 2022 13:55:49 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1642596950; 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=9NkeC38NDHwqMNmxnwshSdaG9bUxrwB91bS9TAMfKIo=; b=mvKNWpbjdzVyfWHExAFnc1xVkLATCq/T1K8CYTEeU6EwlfTl9kSRmHZYPFhwrMLQttQYgY 6rwufaIxMOl+zcMlA5jrKc8lXE6+rzNAwnTFN8xA2JqegyVg3ba9ZHrP6RrFQxQTGUxiDg kgxZ7yzL+s2twDYiUNBTluU/8XLV2mA= Date: Wed, 19 Jan 2022 13:55:43 +0100 From: Borislav Petkov To: Brijesh Singh Cc: 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, Thomas Gleixner , Ingo Molnar , Joerg Roedel , Tom Lendacky , "H. Peter Anvin" , Ard Biesheuvel , Paolo Bonzini , Sean Christopherson , Vitaly Kuznetsov , Jim Mattson , Andy Lutomirski , Dave Hansen , Sergio Lopez , Peter Gonda , Peter Zijlstra , Srinivas Pandruvada , David Rientjes , Dov Murik , Tobin Feldman-Fitzthum , Michael Roth , Vlastimil Babka , "Kirill A . Shutemov" , Andi Kleen , "Dr . David Alan Gilbert" , tony.luck@intel.com, marcorr@google.com, sathyanarayanan.kuppuswamy@linux.intel.com Subject: Re: [PATCH v8 31/40] x86/compressed: add SEV-SNP feature detection/setup Message-ID: References: <20211210154332.11526-1-brijesh.singh@amd.com> <20211210154332.11526-32-brijesh.singh@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20211210154332.11526-32-brijesh.singh@amd.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 10, 2021 at 09:43:23AM -0600, Brijesh Singh wrote: > +/* > + * TODO: These are exported only temporarily while boot/compressed/sev.c is > + * the only user. This is to avoid unused function warnings for kernel/sev.c > + * during the build of kernel proper. > + * > + * Once the code is added to consume these in kernel proper these functions > + * can be moved back to being statically-scoped to units that pull in > + * sev-shared.c via #include and these declarations can be dropped. > + */ > +struct cc_blob_sev_info *snp_find_cc_blob_setup_data(struct boot_params *bp); You don't need any of that - just add the function with the patch which uses it. > +/* > + * Search for a Confidential Computing blob passed in as a setup_data entry > + * via the Linux Boot Protocol. > + */ > +struct cc_blob_sev_info * > +snp_find_cc_blob_setup_data(struct boot_params *bp) Please break lines like that only if absolutely necessary. Which doesn't look like it here. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette