From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail05.groups.io (mail05.groups.io [45.79.224.7]) by spool.mail.gandi.net (Postfix) with ESMTPS id 6033EAC0A62 for ; Wed, 5 Jun 2024 02:10:04 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=XtXk0TFWX3wKi4101yeXIwLqHHMgX5VDCPgiN0KFees=; c=relaxed/simple; d=groups.io; h=Received-SPF:From:To:CC:Subject:Date:Message-ID:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Resent-Date:Resent-From:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding:Content-Type; s=20240206; t=1717553404; v=1; b=TP+MVE5En5VVG/gc9COAkJS8pS3CZVJhKLMFy4AiN8MBZZjm+wpDFSRr4APxwgWBRilIzD4K v5k7v/hR4lH1dV7hIgY7oVqaA/EyHeGXSa8oPR3/ljVhKkThmwIkwg+YFk1HGDCLzxJ3c0VpC49 MipS+VPGcNaD/NXTjghmiaFpc+nKe7ld9BHBSaYMrKo0WGVeOZr2l2Pm0z5mdOWGupROsuQv/uj V94q8UUcP6cQfal5OxiMM4MR9MviVYMkFt+cyOrvx0yANTC+CNKiXWWiG/ZSylQLhTWwHgnIDMy 1Y/2XGXtSZrOfwXY7FiakTrbdwQp40ENqQWS+KiTYK+ZQ== X-Received: by 127.0.0.2 with SMTP id 2vu3YY7687511xI6G9S2fWpT; Tue, 04 Jun 2024 19:10:02 -0700 X-Received: from NAM04-BN8-obe.outbound.protection.outlook.com (NAM04-BN8-obe.outbound.protection.outlook.com [40.107.100.79]) by mx.groups.io with SMTP id smtpd.web10.5255.1717553402031893390 for ; Tue, 04 Jun 2024 19:10:02 -0700 X-Received: from BLAPR03CA0068.namprd03.prod.outlook.com (2603:10b6:208:329::13) by MN0PR12MB6342.namprd12.prod.outlook.com (2603:10b6:208:3c1::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.21; Wed, 5 Jun 2024 02:09:59 +0000 X-Received: from BL6PEPF00020E63.namprd04.prod.outlook.com (2603:10b6:208:329:cafe::4e) by BLAPR03CA0068.outlook.office365.com (2603:10b6:208:329::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.29 via Frontend Transport; Wed, 5 Jun 2024 02:09:59 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C X-Received: from SATLEXMB04.amd.com (165.204.84.17) by BL6PEPF00020E63.mail.protection.outlook.com (10.167.249.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7633.15 via Frontend Transport; Wed, 5 Jun 2024 02:09:59 +0000 X-Received: from aiemdee.2.ozlabs.ru (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Tue, 4 Jun 2024 21:09:55 -0500 From: "Alexey Kardashevskiy via groups.io" To: CC: Tom Lendacky , Liming Gao , Michael D Kinney , Zhiguang Liu , Ard Biesheuvel , Erdem Aktas , "Gerd Hoffmann" , Jiewen Yao , Michael Roth , Min Xu , Alexey Kardashevskiy Subject: [edk2-devel] [PATCH ovmf v4 0/5] Enable AMD SEV-ES DebugVirtualization Date: Wed, 5 Jun 2024 12:09:41 +1000 Message-ID: <20240605020946.1224515-1-aik@amd.com> MIME-Version: 1.0 X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB03.amd.com (10.181.40.144) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL6PEPF00020E63:EE_|MN0PR12MB6342:EE_ X-MS-Office365-Filtering-Correlation-Id: 979114ce-c3f8-4cae-9ebd-08dc85049a16 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?KaVKr4ytVLv8DEWivzrNkW94p1gBnF6hDXHn59ULKmxfwOziL/x2df2cy+zo?= =?us-ascii?Q?jcD4gvzscMsiLTGvxUIdw9RI7mtACQy9Kc4/MEi1MYGUIEO0/83IDLCjvKyy?= =?us-ascii?Q?HZMkKY2ybDjHVIOmfvEUdhp2CP7An8ntOmFWlmzu7AfIdhUvhBvTo6zmkG6E?= =?us-ascii?Q?zRgOlEVZj0G7yiNRXQUKg8xqTEb2MTzdhZ2lvyzRtJJ/B+GOo2yuq80b2W1u?= =?us-ascii?Q?QaTzQ2XNSpDA1ccEuNwfySXWj+usY5AQQCuE9nDFZhJAbF+n2+LOCwAmByya?= =?us-ascii?Q?kCT2wBMC7PLT17tL3I4euyNH8zSd0Wcm2T+Oq7JPgc4iSm0ipG3QzCBmL018?= =?us-ascii?Q?4H1BRusUoDrQMqeaaw2AnOPixnl9vLmW+0ri+/1F7MDyWMDpNmtc9GBvzvFc?= =?us-ascii?Q?b5P0TtfkhYHbHMX2e01ba8avvrRquJqQrLCj57RPqCFmpC/kuhbJ67FOTgry?= =?us-ascii?Q?I/uvl626zGyxETMjO/XYdLJ81WqQxOL/U9rzMlgyOr0ZU+nP+Ioqi1QS2vee?= =?us-ascii?Q?M3/yhxRobvOTL5OGYKI2kBCBGsKIo7fgeMurHdtsk3rTO0QRweBSFa0B1rri?= =?us-ascii?Q?+thjgNdnBzp7RqHcTwytSFooKgYZtwbbfHbBo3+DDy1e31maOFEJYqtLsJOF?= =?us-ascii?Q?Q8g25uPtYlSIP8S9Bgd8B/p9g4FfRbAKXiXluY95/XNZPvl6cH0CB5vcaKnX?= =?us-ascii?Q?n5LOcKB5HnoHRqBiI5VTlIJKW2caxTm2UPzd85MrwLOYBqlHkSfx6jGVYi6r?= =?us-ascii?Q?Nf69s6bi6X4yeiU4NtJeHL9i/MjznNAnK7EDrBpvQWa0NLZbppimx16/2w9Z?= =?us-ascii?Q?ZZjNN/Zhlb+vca9JQOA/tySAXXS6bo40KlcjPNEq3NSB1ndtHuRLHZvWn5LV?= =?us-ascii?Q?3p4KYDitJ4G8vseB5J7ZOv3yhdYx0zY+/sMNPolaHsnSCI+j2MkdCIahkcIO?= =?us-ascii?Q?kTQjDK3WFMZFbSTY4GWE2gnn832gOFK6VxHfww/eFkBcJcDKAaYQdRMWF/w4?= =?us-ascii?Q?Wq6qHl82NUj251olcQ/NqHRAnIArXHmGQl3iIm9wz9pUNd5LOT1uZ3j7zFiG?= =?us-ascii?Q?a5lYhMyRt/fSk7b2i+/PP513PTlP3Z1J2wPBvPLsFR3FYzT7XWWnwoL8G4vR?= =?us-ascii?Q?AU9bhvApT0FxDpexww4t/XjHa71oibnaX5oqN9WO462kClUIknMe9SFhJs7j?= =?us-ascii?Q?l79BC7NJEwg8+AKNq7gj7v5wTl4Gi2b67gZtLdaQY6+fBTInSgNAWN5RbGwO?= =?us-ascii?Q?6HQIiP/yR/f+DYJIlxMq2Nu+ASJ/fBkYHhSRs3tPThVHZPhpezb6xa21Ya1g?= =?us-ascii?Q?i+eozgm+IW0celbKiTGFwJigVLLgYfedQgoJREsB2ANAmHluUvRHQdEvnQMp?= =?us-ascii?Q?tpArRiE=3D?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jun 2024 02:09:59.0679 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 979114ce-c3f8-4cae-9ebd-08dc85049a16 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: BL6PEPF00020E63.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN0PR12MB6342 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Resent-Date: Tue, 04 Jun 2024 19:10:02 -0700 Resent-From: aik@amd.com Reply-To: devel@edk2.groups.io,aik@amd.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: auzRMC3yDXZE130LzbvZedCwx7686176AA= Content-Transfer-Encoding: quoted-printable Content-Type: text/plain X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b=TP+MVE5E; dmarc=pass (policy=none) header.from=groups.io; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.7 as permitted sender) smtp.mailfrom=bounce@groups.io This is to prevent #DB interception on SEV-ES VM with enabled DebugVirtualization feature. The previous conversation is here: https://edk2.groups.io/g/devel/topic/patch_ovmf_v3_0_5_enable/105863808 This is based on sha1 7772e339bdbb Chao Li "ArmVirtPkg: Enable the non-hardcode version FdtNorFla= shQemuLib". Please comment. Thanks. Alexey Kardashevskiy (5): MdePkg/Register/Amd: Define all bits from MSR_SEV_STATUS_REGISTER MdePkg: Add AMD SEV features to PcdConfidentialComputingGuestAttr OvmfPkg: Add AMD SEV-ES DebugVirtualization feature support UefiCpuPkg: Add AMD SEV-ES features support OvmfPkf: Enable AMD SEV-ES DebugVirtualization MdePkg/Include/ConfidentialComputingGuestAttr.h | 15 ++= +- MdePkg/Include/Register/Amd/Fam17Msr.h | 95 ++= +++++++++++++++++- OvmfPkg/Include/Library/MemEncryptSevLib.h | 12 ++= + OvmfPkg/Library/BaseMemEncryptSevLib/DxeMemEncryptSevLibInternal.c | 27 ++= +++- OvmfPkg/Library/BaseMemEncryptSevLib/PeiMemEncryptSevLibInternal.c | 19 ++= ++ OvmfPkg/Library/BaseMemEncryptSevLib/SecMemEncryptSevLibInternal.c | 19 ++= ++ OvmfPkg/Library/CcExitLib/CcExitVcHandler.c | 8 ++ OvmfPkg/PlatformPei/AmdSev.c | 13 ++= - UefiCpuPkg/Library/MpInitLib/MpLib.c | 12 ++= - 9 files changed, 205 insertions(+), 15 deletions(-) --=20 2.44.0 -=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 (#119458): https://edk2.groups.io/g/devel/message/119458 Mute This Topic: https://groups.io/mt/106496065/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-