From nobody Fri Mar 29 07:35:44 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+80693+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+80693+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1631698070; cv=none; d=zohomail.com; s=zohoarc; b=f0V/wuN3yfKo1inQof3K9SpdrQX2OkbSjGhWHlUtS942F2EYIpTlgh4e8O5UJliooONOnuNm4qAMN+C5FEjCvtMgQEwOfu//S2M46DpR8WfwOGpA/8dAGNNsPwUsIrWou9s4HVIg1T9ZlZt2T6JgCBlUzbUmEe5K8pGeAqNSJ3U= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1631698070; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To; bh=wvirFEAp0YvGr8x2viK1Ds6iJmuf7ypQXl4IEoj6F8E=; b=KRL8Dl0gyENaz37grP2sL/2FPKbchYtmycZRffeYOd7icigdE19C09nhirhKB9zBE2dGRCPQa2cT7HD1WkHqR0oqiSJmp0Q2BqFC8JJnBEB2W3wUQFgrK0C23EwRZ3kqX36p7+dtaLNa8/NK2x4I93OvCnuy+3RJET2kDM5emNw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+80693+1787277+3901457@groups.io Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1631698070336280.79010871292473; Wed, 15 Sep 2021 02:27:50 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id PhbhYY1788612xgvNsCDC22z; Wed, 15 Sep 2021 02:27:50 -0700 X-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 X-Received: from 172.17.5.170 by netsrv01.beckhoff.com (Tls12, Aes256, Sha384, DiffieHellmanEllipticKey256); Wed, 15 Sep 2021 09:27:47 GMT X-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: [edk2-devel] [PATCH] OvmfPkg/BhyvePkg: add WorkAreaHeader PCD Date: Wed, 15 Sep 2021 11:27:15 +0200 Message-ID: <20210915092715.441-1-c.koehne@beckhoff.com> MIME-Version: 1.0 X-Originating-IP: [172.17.62.165] X-ClientProxiedBy: ex05.beckhoff.com (172.17.2.171) To ex04.beckhoff.com (172.17.5.170) Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,c.koehne@beckhoff.com X-Gm-Message-State: ojwXtLCSXBWWfP6LakK2Ewfax1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1631698070; bh=wvirFEAp0YvGr8x2viK1Ds6iJmuf7ypQXl4IEoj6F8E=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=klgUBQDp4l0jBHSVQuADUKlT8auoF0ni+htDowy6ahvCIex9KP5RSh0cOyuefxFHW8L UdJMQMexPbRKg8jbC/Sm1F6KY4BoFeixTT7yJt0C8eVIGQn6gIn0mJ/+r05UpHRNcixdo i8CExkKJIyfpv3Gnn81CF/zGU0WGd7rboqk= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1631698071912100001 Content-Type: text/plain; charset="utf-8" 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 7075 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#80693): https://edk2.groups.io/g/devel/message/80693 Mute This Topic: https://groups.io/mt/85623294/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-