Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4433004pxb; Tue, 2 Nov 2021 09:38:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyiVAMAPLN0EGq/8VqBNFjxn36TXRYVYr7ZXPAZNWdENKKVEZ5YXKSXoEp8q3RJkflQ2oZK X-Received: by 2002:a02:ca4e:: with SMTP id i14mr16963870jal.140.1635871090809; Tue, 02 Nov 2021 09:38:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635871090; cv=none; d=google.com; s=arc-20160816; b=hu/F0JcekhzNaGYhJlaTHtIEuXTYeZjXP6V1ZsWTLGK+WJ5hTUJRlou7UJQnYNp44/ mSF2kbDa0a4WW4zYWmTFuj+qjQdHSVRCia4n+T+QbOwDi4DLdv58rJHee5kjOAFhIoy1 9VuuhmNRY1sWhsdFqtL/Zcw9XsVEvo13Xmzdmlmt6UNl2jzui9lWdTY0NnBgzMHuWDMJ xqKlKQefG03O7bgrJU3dQTkxoNYKVquYQklXcdCO3195PbTqnkrmvE60R+JpjQaRZvIB YkxmynrXMY2WpE/IPM8IiCTZ4Bt+N4KUEypwnIuvg67f6rW2XVct/CeMq0CzgvoXtTTP pW9w== 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=LgqrmB8sgbt0GGy55Ij0lvUle6j2/wn+2sw2xrp27AY=; b=blZCHBHeVCo+ZIcjjE6bPGDkTERukryWE2InNLpD+6tuldpeO5+zl+llAjZyPw1sK4 TdCkhXkCcN/mbYzvqeIJouXcjLw1GoOdKLSN2J7URtsucfMrTEB5WxqcE7P6n7eoGMNN 90jzMH3ptpONRUAd6Vjqb5qAUx/uv8fyC0S6ib5L0HlJS7igevf9jScOURAolrv8E2c1 yGFpJP5G8dnPB5mx0IGim0iMQ+9CXDk/lwzRPzP7TACNBESIk7t1QvGvaR7FCKWPeBDr Uu/iojlDG96wsWgv707ArzM4XAPtay6dDGjZ6xoicyV879xXFU/n6WRf0W5dozmOLWIl PO8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=j3LUENcq; 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 a7si10507554iod.51.2021.11.02.09.37.58; Tue, 02 Nov 2021 09:38:10 -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=j3LUENcq; 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 S234802AbhKBQjR (ORCPT + 99 others); Tue, 2 Nov 2021 12:39:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235056AbhKBQir (ORCPT ); Tue, 2 Nov 2021 12:38:47 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E668C0432EE; Tue, 2 Nov 2021 09:33:55 -0700 (PDT) Received: from zn.tnic (p200300ec2f0f6200599060f0a067c463.dip0.t-ipconnect.de [IPv6:2003:ec:2f0f:6200:5990:60f0:a067:c463]) (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 D3CBB1EC054E; Tue, 2 Nov 2021 17:33:52 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1635870833; 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=LgqrmB8sgbt0GGy55Ij0lvUle6j2/wn+2sw2xrp27AY=; b=j3LUENcqI26r8HYNZ8BSLpWqVpyY8aYCrXHrPKvlogaZlwvSZm2zRXcKwf082+ljUp5vPc Ii8rUxK3c19CcxhFAROclfd+fe0dxmegzWMDzMMuXAbAXoE4wFPchiOd9EwxwJ3FJiy0Nu 2gFxYxzea53lDkOWUG92mFHUqAT+Glg= Date: Tue, 2 Nov 2021 17:33:52 +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 v6 13/42] x86/compressed: Register GHCB memory when SEV-SNP is active Message-ID: References: <20211008180453.462291-1-brijesh.singh@amd.com> <20211008180453.462291-14-brijesh.singh@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20211008180453.462291-14-brijesh.singh@amd.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 08, 2021 at 01:04:24PM -0500, Brijesh Singh wrote: > The SEV-SNP guest is required to perform GHCB GPA registration. This is Let's write that out and make this more readable for outsiders too: "... is required by the GHCB spec to register the GHCB's Guest Physical Address (GPA)." > because the hypervisor may prefer that a guest use a consistent and/or > specific GPA for the GHCB associated with a vCPU. For more information, > see the GHCB specification. Giving a section in that spec would be helpful. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette