Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp279945pxb; Thu, 2 Sep 2021 04:07:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw2evtinGLEi9wrLXv0iw1NXNnWDsW6tldY2T7G1Y1qyYFXd6lg4SNNVsmV+3XHaJtcOvio X-Received: by 2002:a92:c144:: with SMTP id b4mr1848863ilh.67.1630580849280; Thu, 02 Sep 2021 04:07:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630580849; cv=none; d=google.com; s=arc-20160816; b=kPvKxX+5UyNK+DBlF94q/1xr0jG3xFDDnssLl+1Pb+NFzyQURa1oHqT+5V8HBmCOzC q3vVzawt+Q4hpJ1ziFIVLieofOzn0QjdOprXvsIxCXvB7MmzhrM3sCCE+qZlecZNpz4q iwngEyJJWyl9kWATweOcj2mNs7rVPPiA3UAZMRDEmDPKqu77UwTb1CM/sHi2U4o9iP1R MqDzB4Dt9Cujhu6U7H2j5xiUAtgLMWG/nq9HktFdhAi6B9lv2Z2LeTfbS/8W/8yoOcZA b22c7glssRTXoJNuYnCA253+bPQOFX147UZwZgg46+9YmitVIRiC0U1SdoWv+T2q415J uk4g== 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=qrih5nOxCt8KX8+xxQwcW009cmgk6NbkNVdkRjjSG0s=; b=Z7BFEXT3pUSmv+vny8uuT1uF2XkEFlTjQLsJEyqAGc8ZNaeoyM/K+8cpP5oXql2D6Y DsDno4CZdfgk2GBB8qlL0SH+d4NhCi2JKOGVA8+kkjT71AfZu0+MRgsgz/Tso/LexTN/ 8argY2ZZjwjpSGnU6/1/3vrXjEaB1jpfmxvPJGTj1/PhHirPv5YHMafR7YSUb5b74q7V lVNEdZY+nXcVMBhYsI1eGw1UQbBD9ktOJo2vTLgHIoprecOj0SGMIM9Imbjul1rGJnJi 1NCA8hSGnJSD15VYoRGPKvEghIfbPvCCOi8Ibaz3cTzSVMvEWRducWXIm/Os94lrJrDD 8x/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b="Uo+t/oIf"; 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 w3si1723889jaf.102.2021.09.02.04.07.17; Thu, 02 Sep 2021 04:07:29 -0700 (PDT) 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="Uo+t/oIf"; 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 S234105AbhIBLGS (ORCPT + 99 others); Thu, 2 Sep 2021 07:06:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230256AbhIBLGP (ORCPT ); Thu, 2 Sep 2021 07:06:15 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C74F2C061575; Thu, 2 Sep 2021 04:05:16 -0700 (PDT) Received: from zn.tnic (p200300ec2f0ed100d115725f57e7001c.dip0.t-ipconnect.de [IPv6:2003:ec:2f0e:d100:d115:725f:57e7:1c]) (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 400421EC0528; Thu, 2 Sep 2021 13:05:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1630580711; 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=qrih5nOxCt8KX8+xxQwcW009cmgk6NbkNVdkRjjSG0s=; b=Uo+t/oIfbI8rJlB3MWNOvzZBGwQz2x6Er54vJvC277hf/75pt4jxpEm/nVpzSFsIiiCVRj X+1ltV5NAxwh0jq60Oy/XIYQGVQJUYNxs/WGRGxHh4CvYPmfUojTxRx0jeCLu0+AMj3jyX TFzVyb8+6qw4WI6Pkct1YFlXl2Gfz4w= Date: Thu, 2 Sep 2021 13:05:45 +0200 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 , Wanpeng Li , 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 , tony.luck@intel.com, marcorr@google.com, sathyanarayanan.kuppuswamy@linux.intel.com Subject: Re: [PATCH Part1 v5 32/38] x86/sev: enable SEV-SNP-validated CPUID in #VC handlers Message-ID: References: <20210820151933.22401-1-brijesh.singh@amd.com> <20210820151933.22401-33-brijesh.singh@amd.com> <20210827183240.f7zvo3ujkeohmlrt@amd.com> <20210901011658.s4hgmvbptgseqcm3@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210901011658.s4hgmvbptgseqcm3@amd.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 31, 2021 at 08:16:58PM -0500, Michael Roth wrote: > What did you think of the suggestion of defining it in sev-shared.c > as a static buffer/struct as __ro_after_init? It would be nice to > declare/reserve the memory in one place. Another benefit is it doesn't > need to be exported, and could just be local with all the other > snp_cpuid* helpers that access it in sev-shared.c Yap. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette