Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1831339pxb; Wed, 2 Feb 2022 13:33:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJx5r9qRfihslOIUijn2DO/2GnkQYmjxcypeVWatahDuuqLRiR9TnXJlJV7AOw2JuMxXBiFd X-Received: by 2002:a17:90a:b90b:: with SMTP id p11mr10318077pjr.189.1643837594036; Wed, 02 Feb 2022 13:33:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643837594; cv=none; d=google.com; s=arc-20160816; b=SLG9zWnwwqqFWq6MUzYyqkYuK9jnIOl62riCQHXXRjR+pKIJMCdHDI2rZ43+ss0HZk 9sdQ+uCsHELNFWFQXBPTG5bbuS2/dP629h9sYNNa/ps9klFJIo03T3hQoSxIT56qEgGu 86Xj2ddKftVq6Rp9G6CHl9yHxH3lzDmk5hrCnfEWsUUd4z+fxqoNeQWxE1oUQgHOA6/a R7EDRZThRdoPP+rbaMcK0tXAN9NnhnQTyawHM6LGecCtP6W10B1zv9ITUcGsTjq9XkFT 0fg2AgdZ1fRt3je9RJja24JC757KVMrXtv2umD9dMxu5RrLy5k1m3O9YgNNuVSmmH0Qn ZBxA== 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=3U8ZC9BzawtxrXmVgjq+VFamXu78o7dgi9QKX8beiZs=; b=y6CiabgEO3JflMdcL2nTvfw7PxtixT8auMUi1r06VnaIOyakcAWlpl9lhpuNQH1zt7 m5/kO73iRDH4Qgae+AKvO18A1Z+UjYJOQb5KzF1iltVVwcIQ2mKS74N+EfC41yOTjCmP CfhLtW/6w9wci+zZ4mpbUOlDB5/08s2ZOjOpgJUyb4xLwn0O4cuWZCorI0JxLMTE9mY8 NakDC0MIWetUbki1mt+nMgTdL4GxXK7z4QKooI8mu/j63XxKu7cB1nQ6L/XJk2PDLpVy 89F04UpJWpQ1gili+gIs6bH6Og135pYzAKBb4GBLOKK0GB7EquFFWVjUJBPDXqjJzJzI gsjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=MDv7m46t; 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=alien8.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m7si5618321pgv.17.2022.02.02.13.33.00; Wed, 02 Feb 2022 13:33:14 -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=@alien8.de header.s=dkim header.b=MDv7m46t; 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=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346811AbiBBS5t (ORCPT + 99 others); Wed, 2 Feb 2022 13:57:49 -0500 Received: from mail.skyhub.de ([5.9.137.197]:45602 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232525AbiBBS5s (ORCPT ); Wed, 2 Feb 2022 13:57:48 -0500 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 609371EC04E2; Wed, 2 Feb 2022 19:57:42 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1643828262; 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=3U8ZC9BzawtxrXmVgjq+VFamXu78o7dgi9QKX8beiZs=; b=MDv7m46t4sdlGD3qdQjScPzNa+EG0UH+UnAFyVxGzAhV3Yw72N/tVvr+2NA3yYhGoDTbJu PE6ls7I9F+5AMJEBl0qU/58v49+c2NkvUKY0vgpJUixC5teLwmC0vBKwC3DIWDQG9Ieuj6 xKWLIOdRG/BdhXkeqLw2mxTSMaVUgJk= Date: Wed, 2 Feb 2022 19:57:37 +0100 From: Borislav Petkov To: Michael Roth Cc: 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 , 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 , Vlastimil Babka , "Kirill A . Shutemov" , Andi Kleen , "Dr . David Alan Gilbert" , brijesh.ksingh@gmail.com, tony.luck@intel.com, marcorr@google.com, sathyanarayanan.kuppuswamy@linux.intel.com Subject: Re: [PATCH v9 05/43] x86/compressed/64: Detect/setup SEV/SME features earlier in boot Message-ID: References: <20220128171804.569796-1-brijesh.singh@amd.com> <20220128171804.569796-6-brijesh.singh@amd.com> <20220201203507.goibbaln6dxyoogv@amd.com> <20220202005212.a3fnn6i76ko6u6t5@amd.com> <20220202172801.4plsgy5ispu2bi7c@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220202172801.4plsgy5ispu2bi7c@amd.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 02, 2022 at 11:28:01AM -0600, Michael Roth wrote: > Indeed... it looks like linux/{elf,io,efi,acpi}.h all end up pulling in > kernel proper's rdmsr()/wrmsr() definitions, and pulling them out ends up > breaking a bunch of other stuff, It's a nightmare - just gave it a try. No wonder they call it include hell. > so I think we might be stuck using a different name like > rd_msr()/wr_msr() in the meantime. Ok, but then pls call them boot_rdmsr() and boot_wrmsr() so that there's a clear distinction from all the other msr helpers. And put a comment above them in arch/x86/boot/msr.h explaining why they're called this way. One fine day I'll have this mess untangled and clean... Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette