From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.groups.io with SMTP id smtpd.web10.8216.1631781042792604908 for ; Thu, 16 Sep 2021 01:30:43 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=jGoGtrz9; spf=pass (domain: redhat.com, ip: 170.10.133.124, mailfrom: kraxel@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1631781042; 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: in-reply-to:in-reply-to:references:references; bh=/Fq8ikdIB7KV4ej6cHrvl5YJhMHbtE3nR1pV4SJJ8rY=; b=jGoGtrz9oPMu14AeqJWbb678AREibdPRyCRFghrWzwwSFo153sLU/50H8IRs5WBWB7eMXF lkhwlB7QemFhX4+L5n4G+jitqgPobsTdZzQtArpIyoC+7y6mEFy2jbty/g3JSuCqfYEd61 PgYHQKgSA2nZR4rBHOe8TwJY8mnKwVc= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-572-NG0i_UNmNFu0LrSvQM80pg-1; Thu, 16 Sep 2021 04:30:40 -0400 X-MC-Unique: NG0i_UNmNFu0LrSvQM80pg-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id E09E41006AAF; Thu, 16 Sep 2021 08:30:38 +0000 (UTC) Received: from sirius.home.kraxel.org (unknown [10.39.192.91]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 929F36D982; Thu, 16 Sep 2021 08:30:38 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 1EF6518000A9; Thu, 16 Sep 2021 10:30:37 +0200 (CEST) Date: Thu, 16 Sep 2021 10:30:37 +0200 From: "Gerd Hoffmann" To: Brijesh Singh Cc: Erdem Aktas , edk2-devel-groups-io , James Bottomley , Min Xu , Jiewen Yao , Tom Lendacky , Jordan Justen , Ard Biesheuvel , Michael Roth Subject: Re: [PATCH v7 09/31] OvmfPkg/SecMain: register GHCB gpa for the SEV-SNP guest Message-ID: <20210916083037.cpkr2xo6ukpokfun@sirius.home.kraxel.org> References: <20210913181941.23405-1-brijesh.singh@amd.com> <20210913181941.23405-10-brijesh.singh@amd.com> <700b230a-88d0-2174-7235-6c633f2affac@amd.com> MIME-Version: 1.0 In-Reply-To: <700b230a-88d0-2174-7235-6c633f2affac@amd.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=kraxel@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, > Good point, there is no reason to read and restore the old GHCB, I will > remove it in next version. The function does not set this as a GHCB address, > it send request to hypervisor saying that it would like to use this address. > If hypervisor is not okay with the address then it may recommend something > else. We don't support working with the hypervisor preferred address. > Setting the GHCB address code is common between Snp and Es but checking with > hypervisor whether its okay to use is new in the GHCBv2 and is SNP specific. A comment explaining those GHCBv1 vs. GHCBv2 differences would be great. thanks, Gerd