From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from netsrv01.beckhoff.com (netsrv01.beckhoff.com [62.159.14.10]) by mx.groups.io with SMTP id smtpd.web08.5127.1631698068597531727 for ; Wed, 15 Sep 2021 02:27:49 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: beckhoff.com, ip: 62.159.14.10, mailfrom: c.koehne@beckhoff.com) Received: from 172.17.5.170 by netsrv01.beckhoff.com (Tls12, Aes256, Sha384, DiffieHellmanEllipticKey256); Wed, 15 Sep 2021 09:27:47 GMT Received: from CorvinK-NB03.beckhoff.com (172.17.62.165) by ex04.beckhoff.com (172.17.5.170) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.14; Wed, 15 Sep 2021 11:27:46 +0200 From: =?UTF-8?B?Q29ydmluIEvDtmhuZQ==?= To: CC: , , , , , , =?UTF-8?q?Corvin=20K=C3=B6hne?= Subject: [PATCH] OvmfPkg/BhyvePkg: add WorkAreaHeader PCD Date: Wed, 15 Sep 2021 11:27:15 +0200 Message-ID: <20210915092715.441-1-c.koehne@beckhoff.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Return-Path: c.koehne@beckhoff.com X-Originating-IP: [172.17.62.165] X-ClientProxiedBy: ex05.beckhoff.com (172.17.2.171) To ex04.beckhoff.com (172.17.5.170) Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable SEC phase will throw an assertion in IsSevGuest if PcdOvmfConfidentialComputingWorkAreaHeader doesn't match the sizeof CONFIDENTIAL_COMPUTING_WORK_AREA_HEADER. Signed-off-by: Corvin K=C3=B6hne --- OvmfPkg/Bhyve/BhyveDefines.fdf.inc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/OvmfPkg/Bhyve/BhyveDefines.fdf.inc b/OvmfPkg/Bhyve/BhyveDefine= s.fdf.inc index 66e0e4d270..9f01ef797c 100644 --- a/OvmfPkg/Bhyve/BhyveDefines.fdf.inc +++ b/OvmfPkg/Bhyve/BhyveDefines.fdf.inc @@ -82,4 +82,10 @@ SET gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwW= orkingSize =3D $(BLOCK_SIZ SET gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashNvStorageFtwSpareBase =3D gUefi= OvmfPkgTokenSpaceGuid.PcdOvmfFlashNvStorageFtwWorkingBase + gEfiMdeModulePk= gTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize SET gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize =3D $(VAR= S_SPARE_SIZE) +# The OVMF WorkArea contains a fixed size header followed by the actual da= ta. +# The size of header is accessed through a fixed PCD in the reset vector c= ode. +# The value need to be kept in sync with the any changes to the Confidenti= al +# Computing Work Area header defined in the Include/WorkArea.h +SET gUefiOvmfPkgTokenSpaceGuid.PcdOvmfConfidentialComputingWorkAreaHeader = =3D 4 + DEFINE MEMFD_BASE_ADDRESS =3D 0x800000 -- 2.11.0 Beckhoff Automation GmbH & Co. KG | Managing Director: Dipl. Phys. Hans Bec= khoff Registered office: Verl, Germany | Register court: Guetersloh HRA 707= 5