From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 8FE07AC1127 for ; Thu, 14 Mar 2024 10:43:42 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=m0tAnSsy2Y/TvcfDnPPGQhhoHeYUCOryLsfuLvcqN7I=; c=relaxed/simple; d=groups.io; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:In-Reply-To:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Resent-Date:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Type:Content-Disposition; s=20240206; t=1710413021; v=1; b=LfgO+BCLVkox10If5S9U5fsqV1uLY5thbisoPmO97S5EnmPZB1J+BFWgPjraudllGkhhnu+d EVKm5WHJjxz2UTVSZCODLBp1hnm5cS8/e/gW4WdH7pgileZw3vSM+vJB514zoV1gelhnrOoo/lr +RwK0cig9PlUeGXCu4lNJ4bD0K3ZCFXDqBvbZNROw6omZIJ6mOyUJPQKpmQJjQahjiDEs58fOam V57KF33fG6hmGnj3pdrOLiyUvdKYtr6pon/f3jzIt5enJ+kht7HtYpt0VAY+TjCL4nvzVXRM76a 3/6OyMFsHcg7uWMXMhmKhek5rlbacixA2FFBg4L9qPFtA== X-Received: by 127.0.0.2 with SMTP id SJkCYY7687511x4gOVV459Qv; Thu, 14 Mar 2024 03:43:41 -0700 X-Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.groups.io with SMTP id smtpd.web11.9530.1710413020598821363 for ; Thu, 14 Mar 2024 03:43:40 -0700 X-Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-637-csTGcH-1Pl2oRpr5n6MPRA-1; Thu, 14 Mar 2024 06:43:36 -0400 X-MC-Unique: csTGcH-1Pl2oRpr5n6MPRA-1 X-Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 0867D185A78E; Thu, 14 Mar 2024 10:43:36 +0000 (UTC) X-Received: from sirius.home.kraxel.org (unknown [10.39.192.3]) by smtp.corp.redhat.com (Postfix) with ESMTPS id D5691492BD1; Thu, 14 Mar 2024 10:43:35 +0000 (UTC) X-Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id D93A21800629; Thu, 14 Mar 2024 11:43:34 +0100 (CET) Date: Thu, 14 Mar 2024 11:43:34 +0100 From: "Gerd Hoffmann" To: devel@edk2.groups.io, thomas.lendacky@amd.com Cc: Ard Biesheuvel , Erdem Aktas , Jiewen Yao , Laszlo Ersek , Liming Gao , Michael D Kinney , Min Xu , Zhiguang Liu , Rahul Kumar , Ray Ni , Michael Roth Subject: Re: [edk2-devel] [PATCH v3 08/24] OvmfPkg/BaseMemEncryptSevLib: Re-organize page state change support Message-ID: References: <6ecd85bbef9aad99f719ed45e22deaba6bd35bf0.1709911792.git.thomas.lendacky@amd.com> MIME-Version: 1.0 In-Reply-To: <6ecd85bbef9aad99f719ed45e22deaba6bd35bf0.1709911792.git.thomas.lendacky@amd.com> X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.10 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Resent-Date: Thu, 14 Mar 2024 03:43:40 -0700 Reply-To: devel@edk2.groups.io,kraxel@redhat.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: Xo2qlZKwJ3NG5C20UL9l6eyxx7686176AA= Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b=LfgO+BCL; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=redhat.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io On Fri, Mar 08, 2024 at 07:31:11AM -0800, Lendacky, Thomas via groups.io wrote: > BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4654 > > In preparation for running under an SVSM at VMPL1 or higher (higher > numerically, lower privilege), re-organize the way a page state change > is performed in order to free up the GHCB for use by the SVSM support. > > Currently, the page state change logic directly uses the GHCB shared > buffer to build the page state change structures. However, this will be > in conflict with the use of the GHCB should an SVSM call be required. > > Instead, use a separate buffer (an area in the workarea during SEC and > an allocated page during PEI/DXE) to hold the page state change request > and only update the GHCB shared buffer as needed. > > Since the information is copied to, and operated on, in the GHCB shared > buffer this has the added benefit of not requiring to save the start and > end entries for use when validating the memory during the page state > change sequence. > > Cc: Ard Biesheuvel > Cc: Erdem Aktas > Cc: Gerd Hoffmann > Cc: Jiewen Yao > Cc: Laszlo Ersek > Cc: Michael Roth > Cc: Min Xu > Signed-off-by: Tom Lendacky Acked-by: Gerd Hoffmann -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#116741): https://edk2.groups.io/g/devel/message/116741 Mute This Topic: https://groups.io/mt/104810704/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-