public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH 0/2] two sev build fixes
@ 2021-12-13  7:30 Gerd Hoffmann
  2021-12-13  7:30 ` [PATCH 1/2] OvmfPkg/Microvm: add PcdConfidentialComputingGuestAttr Gerd Hoffmann
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Gerd Hoffmann @ 2021-12-13  7:30 UTC (permalink / raw)
  To: devel
  Cc: Jiewen Yao, Peter Grehan, Pawel Polawski, Jordan Justen,
	Philippe Mathieu-Daudé, Ard Biesheuvel, Rebecca Cran,
	Gerd Hoffmann



Gerd Hoffmann (2):
  OvmfPkg/Microvm: add PcdConfidentialComputingGuestAttr
  OvmfPkg/Bhyve: add MemEncryptSevLib

 OvmfPkg/Bhyve/BhyveX64.dsc     | 1 +
 OvmfPkg/Microvm/MicrovmX64.dsc | 3 +++
 2 files changed, 4 insertions(+)

-- 
2.33.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/2] OvmfPkg/Microvm: add PcdConfidentialComputingGuestAttr
  2021-12-13  7:30 [PATCH 0/2] two sev build fixes Gerd Hoffmann
@ 2021-12-13  7:30 ` Gerd Hoffmann
  2021-12-13  7:30 ` [PATCH 2/2] OvmfPkg/Bhyve: add MemEncryptSevLib Gerd Hoffmann
  2021-12-13  9:39 ` [edk2-devel] [PATCH 0/2] two sev build fixes Ard Biesheuvel
  2 siblings, 0 replies; 4+ messages in thread
From: Gerd Hoffmann @ 2021-12-13  7:30 UTC (permalink / raw)
  To: devel
  Cc: Jiewen Yao, Peter Grehan, Pawel Polawski, Jordan Justen,
	Philippe Mathieu-Daudé, Ard Biesheuvel, Rebecca Cran,
	Gerd Hoffmann

Fixes build failure:

/home/kraxel/projects/edk2/OvmfPkg/PlatformPei/AmdSev.c: In function ‘AmdSevInitialize’:
/home/kraxel/projects/edk2/MdePkg/Include/Library/PcdLib.h:511:38: error: implicit declaration of function ‘_PCD_SET_MODE_64_S_PcdConfidentialComputingGuestAttr’ [-Werror=implicit-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 expansion of macro ‘PcdSet64S’
  410 |     PcdStatus = PcdSet64S (PcdConfidentialComputingGuestAttr, CCAttrAmdSevSnp);
      |                 ^~~~~~~~~
cc1: all warnings being treated as errors

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 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
 
+  # Set ConfidentialComputing defaults
+  gEfiMdePkgTokenSpaceGuid.PcdConfidentialComputingGuestAttr|0
+
 ################################################################################
 #
 # Components Section - list of all EDK II Modules needed by this Platform.
-- 
2.33.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] OvmfPkg/Bhyve: add MemEncryptSevLib
  2021-12-13  7:30 [PATCH 0/2] two sev build fixes Gerd Hoffmann
  2021-12-13  7:30 ` [PATCH 1/2] OvmfPkg/Microvm: add PcdConfidentialComputingGuestAttr Gerd Hoffmann
@ 2021-12-13  7:30 ` Gerd Hoffmann
  2021-12-13  9:39 ` [edk2-devel] [PATCH 0/2] two sev build fixes Ard Biesheuvel
  2 siblings, 0 replies; 4+ messages in thread
From: Gerd Hoffmann @ 2021-12-13  7:30 UTC (permalink / raw)
  To: devel
  Cc: Jiewen Yao, Peter Grehan, Pawel Polawski, Jordan Justen,
	Philippe Mathieu-Daudé, Ard Biesheuvel, Rebecca Cran,
	Gerd Hoffmann

Fixes build failure:

build.py...
/home/kraxel/projects/edk2/OvmfPkg/Bhyve/BhyveX64.dsc(...): error 1001: Module 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 <kraxel@redhat.com>
---
 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/PeiMemoryAllocationLib.inf
   CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuExceptionHandlerLib.inf
+  MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/SecMemEncryptSevLib.inf
 
 [LibraryClasses.common.PEI_CORE]
   HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
-- 
2.33.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [edk2-devel] [PATCH 0/2] two sev build fixes
  2021-12-13  7:30 [PATCH 0/2] two sev build fixes Gerd Hoffmann
  2021-12-13  7:30 ` [PATCH 1/2] OvmfPkg/Microvm: add PcdConfidentialComputingGuestAttr Gerd Hoffmann
  2021-12-13  7:30 ` [PATCH 2/2] OvmfPkg/Bhyve: add MemEncryptSevLib Gerd Hoffmann
@ 2021-12-13  9:39 ` Ard Biesheuvel
  2 siblings, 0 replies; 4+ messages in thread
From: Ard Biesheuvel @ 2021-12-13  9:39 UTC (permalink / raw)
  To: edk2-devel-groups-io, Gerd Hoffmann
  Cc: Jiewen Yao, Peter Grehan, Pawel Polawski, Jordan Justen,
	Philippe Mathieu-Daudé, Ard Biesheuvel, Rebecca Cran

On Mon, 13 Dec 2021 at 08:31, Gerd Hoffmann <kraxel@redhat.com> wrote:
>
>
>
> Gerd Hoffmann (2):
>   OvmfPkg/Microvm: add PcdConfidentialComputingGuestAttr
>   OvmfPkg/Bhyve: add MemEncryptSevLib
>

Merged as #2293

Thanks,

>  OvmfPkg/Bhyve/BhyveX64.dsc     | 1 +
>  OvmfPkg/Microvm/MicrovmX64.dsc | 3 +++
>  2 files changed, 4 insertions(+)
>
> --
> 2.33.1
>
>
>
> 
>
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-12-13  9:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-13  7:30 [PATCH 0/2] two sev build fixes Gerd Hoffmann
2021-12-13  7:30 ` [PATCH 1/2] OvmfPkg/Microvm: add PcdConfidentialComputingGuestAttr Gerd Hoffmann
2021-12-13  7:30 ` [PATCH 2/2] OvmfPkg/Bhyve: add MemEncryptSevLib Gerd Hoffmann
2021-12-13  9:39 ` [edk2-devel] [PATCH 0/2] two sev build fixes Ard Biesheuvel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox