From nobody Mon May 6 03:26:17 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+84672+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+84672+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1639380656; cv=none; d=zohomail.com; s=zohoarc; b=BEfGNlsAWVy1FlnQxhIVPSyyPVFntKt8qRq9ag7wAE+qD2iTcZsfNYkHDY+0A7YSmkN11xhMbBDzd7FomF4v0c6FDdh01BhyKzeHI1/bvfT5zZOIcH8yJAxkV0OfC1h6MrTq/+y0WOnaMZWbJxRQbkUPS7reVAznSH3r79SYdL4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1639380656; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=qbUjuKveq+U/q+VHvVOdCzAZJGD+dSo+1OE6yNnNang=; b=HukADg3qbGycC0M4J1q/xlIklRN6wMRfbCP+LNvdqmCouv60W255yRTOsKqzuc/SdqezzxvcthenJktL0n+jl95bKopOy05WrZX0ehea8zl0P/PkFyA0XmSCzkvTxrikpHZoSWKFTx+yQJNP1lV4tKg93+Dv/8gnP9485Pim4Y0= 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+84672+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1639380656051187.90774742836413; Sun, 12 Dec 2021 23:30:56 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id xyETYY1788612xy4vjfW05eJ; Sun, 12 Dec 2021 23:30:55 -0800 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.web12.8552.1639380654552006465 for ; Sun, 12 Dec 2021 23:30:54 -0800 X-Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-519-nGgKe389MbmJlJILamxDhA-1; Mon, 13 Dec 2021 02:30:52 -0500 X-MC-Unique: nGgKe389MbmJlJILamxDhA-1 X-Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 535E2184608A; Mon, 13 Dec 2021 07:30:51 +0000 (UTC) X-Received: from sirius.home.kraxel.org (unknown [10.39.192.14]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C3A4A5BE01; Mon, 13 Dec 2021 07:30:50 +0000 (UTC) X-Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 875021800609; Mon, 13 Dec 2021 08:30:48 +0100 (CET) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: Jiewen Yao , Peter Grehan , Pawel Polawski , Jordan Justen , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Ard Biesheuvel , Rebecca Cran , Gerd Hoffmann Subject: [edk2-devel] [PATCH 1/2] OvmfPkg/Microvm: add PcdConfidentialComputingGuestAttr Date: Mon, 13 Dec 2021 08:30:47 +0100 Message-Id: <20211213073048.3437320-2-kraxel@redhat.com> In-Reply-To: <20211213073048.3437320-1-kraxel@redhat.com> References: <20211213073048.3437320-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com 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,kraxel@redhat.com X-Gm-Message-State: sVzW3fou5P7yUqTthrXYLrG9x1787277AA= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1639380655; bh=y4VqLT22T4VeYCjzcwFqhI4qA/M5b4gt6TyCRLhOh98=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=lxBIveSjeZJtdap9XFZo+cH/lw0fr9UXr864i7r1AR0J7bjgQjMU/AziFHQzfIXHNVO Am4UjMtL8WaJ+TzrsUH2u8ZJA6GW/Kw0opctyVWbuYGkMrd0PoFNblKAkvgz3sUl2eRIb BIlCQE63w/EAXIlmMVDiLDpKoTc9C4Z2d+g= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1639380656480100002 Fixes build failure: /home/kraxel/projects/edk2/OvmfPkg/PlatformPei/AmdSev.c: In function =E2=80= =98AmdSevInitialize=E2=80=99: /home/kraxel/projects/edk2/MdePkg/Include/Library/PcdLib.h:511:38: error: i= mplicit declaration of function =E2=80=98_PCD_SET_MODE_64_S_PcdConfidential= ComputingGuestAttr=E2=80=99 [-Werror=3Dimplicit-function-declaration] 511 | #define PcdSet64S(TokenName, Value) _PCD_SET_MODE_64_S_##TokenName= ((Value)) | ^~~~~~~~~~~~~~~~~~~ /home/kraxel/projects/edk2/OvmfPkg/PlatformPei/AmdSev.c:410:17: note: in ex= pansion of macro =E2=80=98PcdSet64S=E2=80=99 410 | PcdStatus =3D PcdSet64S (PcdConfidentialComputingGuestAttr, CCA= ttrAmdSevSnp); | ^~~~~~~~~ cc1: all warnings being treated as errors Signed-off-by: Gerd Hoffmann --- OvmfPkg/Microvm/MicrovmX64.dsc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OvmfPkg/Microvm/MicrovmX64.dsc b/OvmfPkg/Microvm/MicrovmX64.dsc index 5f4d9226791b..e5a2844472b8 100644 --- a/OvmfPkg/Microvm/MicrovmX64.dsc +++ b/OvmfPkg/Microvm/MicrovmX64.dsc @@ -600,6 +600,9 @@ [PcdsDynamicDefault] gEfiNetworkPkgTokenSpaceGuid.PcdIPv4PXESupport|0x01 gEfiNetworkPkgTokenSpaceGuid.PcdIPv6PXESupport|0x01 =20 + # Set ConfidentialComputing defaults + gEfiMdePkgTokenSpaceGuid.PcdConfidentialComputingGuestAttr|0 + ##########################################################################= ###### # # Components Section - list of all EDK II Modules needed by this Platform. --=20 2.33.1 -=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 (#84672): https://edk2.groups.io/g/devel/message/84672 Mute This Topic: https://groups.io/mt/87693191/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- From nobody Mon May 6 03:26:17 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+84674+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+84674+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1639380661; cv=none; d=zohomail.com; s=zohoarc; b=ka9FPaZnGACI3yL9pVWkTOaNQwXA3dn2nUUr+5ti5npZ429QjcrKe4ts3Ig/fHin/Ln1K/rz1EeZv4ur3ZvSlQO48t+LTNchHuRUEzo2QVkgU3b3aBHi84zCxvq5F/VWh2D6uP3WXpV4E8SVljTc2KKwCuxw8h8wkbiVyrZxPkE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1639380661; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=RClr4qxhC9qSahBQHoQCWuNwSo1olqTPC4RjcsThxvs=; b=KvzfS3ppN/LypmlSyrJoAPB/i/Tb7mkReJml0KzWnI2W/unlzXfnHEzPqwo/1GwVBBlHq18AVos/vpsnkePrDuw+9CP1QjD9ufGQNP4TFtvxoRBGux6Ou6OxLtUIXchZ7bB3gI/KNH2yXIuzh00lwY85Y9MZJgzePZtYbQpeqNU= 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+84674+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1639380660917298.0178748059035; Sun, 12 Dec 2021 23:31:00 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id RxG4YY1788612xubLVWu8GW9; Sun, 12 Dec 2021 23:31:00 -0800 X-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.web08.8342.1639380659707193449 for ; Sun, 12 Dec 2021 23:30:59 -0800 X-Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-300-iZ3DZOwzNh6ccl8urCvX1Q-1; Mon, 13 Dec 2021 02:30:55 -0500 X-MC-Unique: iZ3DZOwzNh6ccl8urCvX1Q-1 X-Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 597452F48; Mon, 13 Dec 2021 07:30:54 +0000 (UTC) X-Received: from sirius.home.kraxel.org (unknown [10.39.192.14]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 136765D6D7; Mon, 13 Dec 2021 07:30:54 +0000 (UTC) X-Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 8CD44180061A; Mon, 13 Dec 2021 08:30:48 +0100 (CET) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: Jiewen Yao , Peter Grehan , Pawel Polawski , Jordan Justen , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Ard Biesheuvel , Rebecca Cran , Gerd Hoffmann Subject: [edk2-devel] [PATCH 2/2] OvmfPkg/Bhyve: add MemEncryptSevLib Date: Mon, 13 Dec 2021 08:30:48 +0100 Message-Id: <20211213073048.3437320-3-kraxel@redhat.com> In-Reply-To: <20211213073048.3437320-1-kraxel@redhat.com> References: <20211213073048.3437320-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com 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,kraxel@redhat.com X-Gm-Message-State: IvMPw3lPBzwEZvldjwcpnomNx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1639380660; bh=FNbUcJPc3Q5AXXIAngXtLmH0vhKk7sS5s+SSGM8rtJA=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=cUvpVwJWXpGjcE0iIEKJbJrU+J/tv0e26Hqs9fsE3eH+34NB93MBizoxrsX57pK97jm AoD9q4ACs++I3ebH+GwxSDnhGnpyeHrj5F5QLK2v2lmOqWxZavC4Jl/db78qhccrmlG07 Mm9joWAYttfUSLKXyakc1TEPSok8grGEfJI= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1639380661516100001 Content-Type: text/plain; charset="utf-8" Fixes build failure: build.py... /home/kraxel/projects/edk2/OvmfPkg/Bhyve/BhyveX64.dsc(...): error 1001: Mod= ule type [SEC] is not supported by library instance [/home/kraxel/projects/= edk2/OvmfPkg/Library/BaseMemEncryptSevLib/DxeMemEncryptSevLib.inf] consumed by [/home/kraxel/projects/edk2/OvmfPkg/Sec/SecMain.inf] Signed-off-by: Gerd Hoffmann --- OvmfPkg/Bhyve/BhyveX64.dsc | 1 + 1 file changed, 1 insertion(+) diff --git a/OvmfPkg/Bhyve/BhyveX64.dsc b/OvmfPkg/Bhyve/BhyveX64.dsc index e833fc716b07..40c5b7b1610e 100644 --- a/OvmfPkg/Bhyve/BhyveX64.dsc +++ b/OvmfPkg/Bhyve/BhyveX64.dsc @@ -245,6 +245,7 @@ [LibraryClasses.common.SEC] PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/= PeiServicesTablePointerLibIdt.inf MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAlloc= ationLib.inf CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiC= puExceptionHandlerLib.inf + MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/SecMemEncryptSevLi= b.inf =20 [LibraryClasses.common.PEI_CORE] HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf --=20 2.33.1 -=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 (#84674): https://edk2.groups.io/g/devel/message/84674 Mute This Topic: https://groups.io/mt/87693193/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-