From patchwork Tue Aug 9 07:18:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khalid Elmously X-Patchwork-Id: 1664779 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=canonical.com header.i=@canonical.com header.a=rsa-sha256 header.s=20210705 header.b=K5hwjHyQ; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4M24DD3V9lz9sB4 for ; Tue, 9 Aug 2022 17:18:20 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1oLJVE-0001ZM-Eg; Tue, 09 Aug 2022 07:18:12 +0000 Received: from smtp-relay-internal-1.internal ([10.131.114.114] helo=smtp-relay-internal-1.canonical.com) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1oLJVC-0001Y0-Pn for kernel-team@lists.ubuntu.com; Tue, 09 Aug 2022 07:18:10 +0000 Received: from mail-qk1-f197.google.com (mail-qk1-f197.google.com [209.85.222.197]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 880AE3F135 for ; Tue, 9 Aug 2022 07:18:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1660029490; bh=2hFh/9BfM4DRs3svYk3FjVqLHuW93pTT0Tpzu+LPbmo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=K5hwjHyQxX9SxGe4ikjoRtZzk89hAIiY1FPme/gPcFGB86Bz9oldIX4rdkJQPnRbf IhUcjWRZhKgvqzYcaYDpeaLCekNne0pENJqb2O56gDh6LSlbwpq5Ilnu232wrBDFBe /GYXHsd6wEa6lGHr4vkLOGos2WS/u6oz4c94YO/ew0HCpu101fqNVuwtIli+niDh2a vute5WY4pCtIbytton80vSG+MRAqFNmUHuakZXqpGhOeHawEmJxiYW48UnM/2HWBh2 iffP1yYSdDU8zD5TBp+0rdEl0hK4sA3rck9PFy5lR2IeFzcFcYvpjNTxoWjuQYgc86 hUEpggi1yC3og== Received: by mail-qk1-f197.google.com with SMTP id bk21-20020a05620a1a1500b006b5c24695a4so9642136qkb.15 for ; Tue, 09 Aug 2022 00:18:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=2hFh/9BfM4DRs3svYk3FjVqLHuW93pTT0Tpzu+LPbmo=; b=EFdrAM37P8LD3GYQ8wo28gQmKQFHREUridE8YU6guEXPlV9UxezLJRYb4VNgFg+DH0 WCHB9FFnAIWj6ousIwapO2RARE3kZ7nBCdnXEaF6BqPjUiYhVZHHsz1NYEUkC2GFBaT3 zi/wWLKT4MzVRxNe1XKFpOODt4hWvoGlf9OVvRxlCdytixKMC4gVG8QZkjXy2TJ04zju TU+Lgnro1zcNsNSTzjQXBicReMrJci2tCShNd8LHdKstL2hGc5kFoHqOR2AMywkdtOtB B2n8ji+mqjOb3ijRY7npQrpvsSJY61hG1uDbjbXH3NEd2i30+I93wA1bIzxFUedppNeC lPGQ== X-Gm-Message-State: ACgBeo3gIciziOAUoB2uZCkqp8ws57PNuFjxYbH9P1kSJpY3OdIm71/b o1/ate374B6IR9gqpx5JI1Sxmxy4xy7lOUADmlOipiqzerAX4Ahc33oQAs7rd5U92KlNjv4yRSV HmXs7kiCKN3cJD4q8ba8KVmDMVABxEoL+HIpmcNC+GA== X-Received: by 2002:a05:622a:1051:b0:342:f6e9:227a with SMTP id f17-20020a05622a105100b00342f6e9227amr8254556qte.315.1660029489593; Tue, 09 Aug 2022 00:18:09 -0700 (PDT) X-Google-Smtp-Source: AA6agR6XHq61pPtKD++TFNvdVxmfDb6zzUljNzokesvCDlGFHUOvHnICYJgxQmfyd4F+FX5nUVrGdQ== X-Received: by 2002:a05:622a:1051:b0:342:f6e9:227a with SMTP id f17-20020a05622a105100b00342f6e9227amr8254543qte.315.1660029489303; Tue, 09 Aug 2022 00:18:09 -0700 (PDT) Received: from k2.fuzzbuzz.org ([38.147.253.164]) by smtp.gmail.com with ESMTPSA id u10-20020a05620a430a00b006af0ce13499sm11281003qko.115.2022.08.09.00.18.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Aug 2022 00:18:08 -0700 (PDT) From: Khalid Elmously To: kernel-team@lists.ubuntu.com Subject: [SRU][F][PATCH 4/6] EFI: Introduce the new AMD Memory Encryption GUID. Date: Tue, 9 Aug 2022 03:18:01 -0400 Message-Id: <20220809071803.124319-5-khalid.elmously@canonical.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220809071803.124319-1-khalid.elmously@canonical.com> References: <20220809071803.124319-1-khalid.elmously@canonical.com> MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" From: Ashish Kalra 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 feature. Signed-off-by: Ashish Kalra Acked-by: Ard Biesheuvel Message-Id: <1cea22976d2208f34d47e0c1ce0ecac816c13111.1629726117.git.ashish.kalra@amd.com> Signed-off-by: Paolo Bonzini (cherry picked from commit 2f70ddb1f71814aae525c58086fcb2f6974e6591) Signed-off-by: Khalid Elmously --- 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;