[SRU][F][PATCH 4/6] EFI: Introduce the new AMD Memory Encryption GUID.

Khalid Elmously khalid.elmously at canonical.com
Tue Aug 9 07:18:01 UTC 2022

From: Ashish Kalra <ashish.kalra at amd.com>

BugLink: https://launchpad.net/bugs/1984034

Introduce a new AMD Memory Encryption GUID which is currently
used for defining a new UEFI environment variable which indicates
UEFI/OVMF support for the SEV live migration feature. This variable
is setup when UEFI/OVMF detects host/hypervisor support for SEV
live migration and later this variable is read by the kernel using
EFI runtime services to verify if OVMF supports the live migration

Signed-off-by: Ashish Kalra <ashish.kalra at amd.com>
Acked-by: Ard Biesheuvel <ardb at kernel.org>
Message-Id: <1cea22976d2208f34d47e0c1ce0ecac816c13111.1629726117.git.ashish.kalra at amd.com>
Signed-off-by: Paolo Bonzini <pbonzini at redhat.com>
(cherry picked from commit 2f70ddb1f71814aae525c58086fcb2f6974e6591)
Signed-off-by: Khalid Elmously <khalid.elmously at canonical.com>
 include/linux/efi.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/linux/efi.h b/include/linux/efi.h
index 70e89aeea99cb..77827bba76721 100644
--- a/include/linux/efi.h
+++ b/include/linux/efi.h
@@ -699,6 +699,7 @@ void efi_native_runtime_setup(void);
 /* OEM GUIDs */
 #define DELLEMC_EFI_RCI2_TABLE_GUID		EFI_GUID(0x2d9f28a2, 0xa886, 0x456a,  0x97, 0xa8, 0xf1, 0x1e, 0xf2, 0x4f, 0xf4, 0x55)
+#define AMD_SEV_MEM_ENCRYPT_GUID		EFI_GUID(0x0cf29b71, 0x9e51, 0x433a,  0xa3, 0xb7, 0x81, 0xf3, 0xab, 0x16, 0xb8, 0x75)
 typedef struct {
 	efi_guid_t guid;

More information about the kernel-team mailing list