From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 544DFC43217 for ; Wed, 15 Dec 2021 20:39:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236215AbhLOUjA (ORCPT ); Wed, 15 Dec 2021 15:39:00 -0500 Received: from mail.skyhub.de ([5.9.137.197]:60292 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236138AbhLOUi7 (ORCPT ); Wed, 15 Dec 2021 15:38:59 -0500 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 ECE161EC0521; Wed, 15 Dec 2021 21:38:53 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1639600734; 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=38LOASUbOxitabwqSnlHmtZ4CPFEE2iObHtY//Knd18=; b=mA+UjtaxSHPgzi76OhlpEPn2l9W7pmBEEhSJhJPcBMs+30+5XZKiSotujmWQlxjQw/Agry VbfCf0I6JSgAFL3mrz1F7Z1bjgaoUCdVETfXmR29d/yHvSzF4QSJZSTsyoiEKoNUj5SnmX HxyqHwCnm3uX6+RUzcIy+cKr16Vfdys= Date: Wed, 15 Dec 2021 21:38:55 +0100 From: Borislav Petkov To: Michael Roth Cc: Venu Busireddy , Tom Lendacky , 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, Thomas Gleixner , Ingo Molnar , Joerg Roedel , "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 , 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 01/40] x86/compressed/64: detect/setup SEV/SME features earlier in boot Message-ID: References: <20211215174934.tgn3c7c4s3toelbq@amd.com> <20211215201734.glq5gsle6crj25sf@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20211215201734.glq5gsle6crj25sf@amd.com> Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org On Wed, Dec 15, 2021 at 02:17:34PM -0600, Michael Roth wrote: > and if fields are added in the future: > > sev_parse_cpuid(AMD_SEV_BIT, &me_bit_pos, &vte_enabled, &new_feature_enabled, etc..) And that will end up being a vararg function because of who knows what other feature bits will have to get passed in? You have even added the ellipsis in there. Nope. Definitely not. > or if that eventually becomes unwieldly The above example is already unwieldy. > it could later be changed to return a feature mask. Yes, that. Clean and simple. But it is hard to discuss anything without patches so we can continue the topic with concrete patches. But this unification is not super-pressing so it can go ontop of the SNP pile. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette