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 2AD719417D8 for ; Mon, 22 Apr 2024 12:17:40 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=hNB7qujbdyL8m8A46tqJTivUiUdwGG5Jk5TzIsDFOsA=; 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=1713788258; v=1; b=gQlF6HDC8KQCn0ApmEd+hpdW4/a5iM1sziRBmhiGDDbS010IeDbH73K8+cKGNZhpLChHBEra cUGB1jSLCvuMUPny48dPGSHf6sA/rcAqWPF9yh5E+b7l8VqSVXGEfLdLVxMkcVk1hHWMIxFm4SH oqBAxZcPtuT3i+1PYGVh7wmnX35YzdlK5vSiEIMdwnh4vUsBmfmMprQq6uMRsjwQxyJEwE/6mFn jcm+09/RgN4+il/BiXCTX8XBJJcXCD5SZmOrXpW/rsI2uO/PNnrDs5LgQsIQWNPJu6gtujBH75d sFWoZ/3YkmUcEIPJusns2whWjGNJ5+dEnTtNlnfiVtyEw== X-Received: by 127.0.0.2 with SMTP id OxNAYY7687511xoKAXcOeyV4; Mon, 22 Apr 2024 05:17:38 -0700 X-Received: from NAM12-DM6-obe.outbound.protection.outlook.com (NAM12-DM6-obe.outbound.protection.outlook.com [40.107.243.53]) by mx.groups.io with SMTP id smtpd.web10.16943.1713788257553807208 for ; Mon, 22 Apr 2024 05:17:37 -0700 X-Received: from PA7P264CA0162.FRAP264.PROD.OUTLOOK.COM (2603:10a6:102:36c::16) by SJ0PR12MB7459.namprd12.prod.outlook.com (2603:10b6:a03:48d::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.44; Mon, 22 Apr 2024 12:17:31 +0000 X-Received: from SN1PEPF0002BA52.namprd03.prod.outlook.com (2603:10a6:102:36c:cafe::15) by PA7P264CA0162.outlook.office365.com (2603:10a6:102:36c::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7495.33 via Frontend Transport; Mon, 22 Apr 2024 12:17:28 +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 SN1PEPF0002BA52.mail.protection.outlook.com (10.167.242.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7519.19 via Frontend Transport; Mon, 22 Apr 2024 12:17:28 +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; Mon, 22 Apr 2024 07:17:26 -0500 From: "Alexey Kardashevskiy via groups.io" To: CC: Gerd Hoffmann , Tom Lendacky , Alexey Kardashevskiy Subject: [edk2-devel] [PATCH ovmf v2 0/5] Enable AMD SEV-ES DebugSwap Date: Mon, 22 Apr 2024 22:16:59 +1000 Message-ID: <20240422121704.200856-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: SN1PEPF0002BA52:EE_|SJ0PR12MB7459:EE_ X-MS-Office365-Filtering-Correlation-Id: c368c629-7298-4d22-dd93-08dc62c62d47 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?BSVn8o7zMyfAP7lPWf+4qh4mvecz2emLAv2oMQkJX0eFIXFgmON8fobEzj3i?= =?us-ascii?Q?M9XSaHzdsG5Qz4m7eMMVSGs8ND8POnm+Tq7LPaql3QVwgvjo/NakGgYOvcxA?= =?us-ascii?Q?u6Uu9Ez9Z9pnNdhV4QPuV5/eDM1s+ugTDm1KErm3SKsvnJzYomC4MlxQqbAL?= =?us-ascii?Q?f+0r+/Q51AzfTPli84NIlQaauUAi4hVeDIp8A6ycbXDAaKohj2D8timnRXpQ?= =?us-ascii?Q?7LBhCLHuuKBEd1kZDs96Q1Ua2w/2zYI9WNrR15O7Zyjjv2J0iXZmiEGcbWs0?= =?us-ascii?Q?Qx8wWlRwZ4popcc4uQDqwo1JF3g8L8WQ4QtUgNQjSSh1cX3OI29EjtFkmfXD?= =?us-ascii?Q?SGrxgFnwPhMkeilPjTZLitbcq+gsbOXQ/ys/7FvL3SBlIhjUAzO1ZbzXHutZ?= =?us-ascii?Q?50QwYMt1zPoqdHAorT3ErZ8ivvznUhyJfTtpthKu1CedjgoChbXkDxA/A/sN?= =?us-ascii?Q?6IPs5ql2A9HUrlurCia7vXeRIKTaP99HE2IAKso8PzPi5qEiR3WtlhXLi1/P?= =?us-ascii?Q?YoNCo6GaxESMpLUkClDm8DiA+Q60RowdGSinxEAdb3v7bp1fJVZQWss5ImC3?= =?us-ascii?Q?zfogpV5Hg5dUSdFwEwmxP88xmUwvEMZl63UwcXRhJvT3lhViqkFezo5UKRx2?= =?us-ascii?Q?li+nPbH5vKXlyCTpShb79x/gzy2SsSTdbKbXxpNLfwx7QibwJ4XYVsHLrvMw?= =?us-ascii?Q?bbrwtPRv2uUihnFO3k6KmRAXOK7lb5iv1Tk8mkYP4z58XYUZJk0wo5iNi++m?= =?us-ascii?Q?4wlE1b4EfluvQcdBtnpNlYHbFau/cZCh/QT5QJsv+TsWpBgY5G3g0b0HX2j5?= =?us-ascii?Q?LgI4TcFNnfoi3XVyStcbqBXyhqbGaBIdggfu8OUWFM7K1LC7W1jw0OR92bb/?= =?us-ascii?Q?mQ7ggN3+V+mZezLx5On31069GFN6+XkrmgBoexrLQ47DhV9SzEIKAvWQvp0y?= =?us-ascii?Q?VHx8vtkpzCz2CEkaRvkFxz1s+m5SOW2X7p5suAL3DD91UKqpi1qLVOLUmTKU?= =?us-ascii?Q?pXt5PcafiOz76YBwSXum4ALKdnfoAmaWGwRRtLDoolwudZZDynjhM+5Vc0ZT?= =?us-ascii?Q?W8oGaRZ2DnCNNX6PxmbukuQClyC7puJGi1uKwT0u/JTusl7m0H7U+62hbnQq?= =?us-ascii?Q?cFGrnyszVb4Rdq3EryS5bDMKHMa0SePQwRBHBKGTfsNFYYmUpLAAsPAVmkwp?= =?us-ascii?Q?8gyhYzgmVsLTjcxIRtQll1dM83UkPLbbXCeSPhn5Ix5nhlM2W227EScY7GQW?= =?us-ascii?Q?XlBHX5bD+Up0Qaw5ok8nz9RT8Xlb4OLveNtlEmmmHbAEeJosi4xqWH++T7oe?= =?us-ascii?Q?yICpn0vJ1ZTuNam23rmjenfnKsTu27+kYSdxx3SCNwoyJaUUtoa8vmrBu2AV?= =?us-ascii?Q?bR7T3rcP8h1H82oGn6U30ZThna4N?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Apr 2024 12:17:28.1873 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c368c629-7298-4d22-dd93-08dc62c62d47 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: SN1PEPF0002BA52.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR12MB7459 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: Mon, 22 Apr 2024 05:17:37 -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: 9CIAl2aayhwO0NZeLdSYJrszx7686176AA= 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=gQlF6HDC; 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 DebugSwap feature, more details in 3/5. The corresponding Linux change (HV and VM) went upstream long time ago: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?= id=3De221804dad4e https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?= id=3Dd1f85fbe836e And then I dropped the ball, sorry. The previous conversation (more than a year ago) is here: https://edk2.groups.io/g/devel/message/96808 This failed CI though (figuring out this not-that-trivial Uncrustify guy no= w): https://dev.azure.com/tianocore/edk2-ci/_build/results?buildId=3D123642&vie= w=3Dlogs&j=3Dec42d809-3c3b-54a9-276c-e54a8b9aaee9&t=3Dbd91c6c3-6d75-5ede-7b= 63-5767cf827334 This is based on sha1 6780b3aba086 Abner Chang "Maintainers: AMD as SPI driver stack maintainer". 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 DebugSwap feature support UefiCpuPkg: Add AMD SEV-ES features support OvmfPkf: Enable AMD SEV-ES DebugSwap for DXE MdePkg/Include/ConfidentialComputingGuestAttr.h | 16 ++= +++- MdePkg/Include/Register/Amd/Fam17Msr.h | 57 ++= +++++++++++++++++- OvmfPkg/Include/Library/MemEncryptSevLib.h | 12 ++= +++ OvmfPkg/Library/BaseMemEncryptSevLib/DxeMemEncryptSevLibInternal.c | 25 ++= +++++-- OvmfPkg/Library/BaseMemEncryptSevLib/PeiMemEncryptSevLibInternal.c | 19 ++= +++++ OvmfPkg/Library/BaseMemEncryptSevLib/SecMemEncryptSevLibInternal.c | 20 ++= +++++ OvmfPkg/Library/CcExitLib/CcExitVcHandler.c | 8 ++= + OvmfPkg/PlatformPei/AmdSev.c | 13 ++= +-- UefiCpuPkg/Library/MpInitLib/MpLib.c | 10 ++= -- 9 files changed, 168 insertions(+), 12 deletions(-) --=20 2.41.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 (#118088): https://edk2.groups.io/g/devel/message/118088 Mute This Topic: https://groups.io/mt/105668050/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-