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 3DAAA7803DB for ; Thu, 2 May 2024 14:35:31 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=nmIS6z0b3Ib6sEU+o+YdJNDV/8b+bXj7wknh+T+80/8=; c=relaxed/simple; d=groups.io; h=Received-SPF:From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: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=1714660529; v=1; b=Q7XgJ1r95YzaoDquwYonBgAJLef8vUW6AdE1Fwcxd+XXUFPX6WgjMZJjOwfDKNiJdnCzIlPv cWwXg5HW3/30Yl5QtHSqG6dHgBxojoKSAcFnvWyFXpol4yFg2WeQ1uw4fY2g4grO0L2R8utKBi9 70TUCoi0iWDMEkVan3LQ68XzGvDI2pNpJfrLVCFmaEm9NuucKoI53s8aCygQ9waT706SUAU9/Kl f12JiVmxKnifCCn8bbTdFAAsDayxGeg5hwujlp2K68iTpHgwAGDbx7T7y/pf51F2Zz0obZigFz/ mGosYT+2f2nN+YkuKHTgkP8r2ghSM0xagXJMhSQldUaYQ== X-Received: by 127.0.0.2 with SMTP id ea0IYY7687511xZc6lJGWr2y; Thu, 02 May 2024 07:35:29 -0700 X-Received: from NAM10-DM6-obe.outbound.protection.outlook.com (NAM10-DM6-obe.outbound.protection.outlook.com [40.107.93.89]) by mx.groups.io with SMTP id smtpd.web11.15227.1714660529131403895 for ; Thu, 02 May 2024 07:35:29 -0700 X-Received: from MN2PR15CA0052.namprd15.prod.outlook.com (2603:10b6:208:237::21) by LV3PR12MB9119.namprd12.prod.outlook.com (2603:10b6:408:1a2::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7519.35; Thu, 2 May 2024 14:35:26 +0000 X-Received: from MN1PEPF0000F0E5.namprd04.prod.outlook.com (2603:10b6:208:237:cafe::df) by MN2PR15CA0052.outlook.office365.com (2603:10b6:208:237::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.29 via Frontend Transport; Thu, 2 May 2024 14:35:26 +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 MN1PEPF0000F0E5.mail.protection.outlook.com (10.167.242.43) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7544.18 via Frontend Transport; Thu, 2 May 2024 14:35:25 +0000 X-Received: from aiemdee.amd.com (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; Thu, 2 May 2024 09:35:21 -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 v3 1/5] MdePkg/Register/Amd: Define all bits from MSR_SEV_STATUS_REGISTER Date: Fri, 3 May 2024 00:34:41 +1000 Message-ID: <20240502143445.526098-2-aik@amd.com> In-Reply-To: <20240502143445.526098-1-aik@amd.com> References: <20240502143445.526098-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: MN1PEPF0000F0E5:EE_|LV3PR12MB9119:EE_ X-MS-Office365-Filtering-Correlation-Id: 9cbfe5db-d0e2-4905-4bda-08dc6ab51b54 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?PuDa0/D0FObZTOzypUG+ie80gnFvtrqh432Fi9iVcyfMr/5YSikkDnfRob6f?= =?us-ascii?Q?DV8HIGO/SqUL+Wi/3WIoxv25knenT265gkW8lfXttiN0Zycej10WrB7cCV1f?= =?us-ascii?Q?tDzTCnn04wLp7t4umFshQDsiMdUwfj5glHEMhm3wWlFxbkqQmowMFcLeagvJ?= =?us-ascii?Q?yFFLEzfVqqGzihuOOOYAzUyrPyAiRSHZ/YdZo5Zb+jWgiZOsUUEBPhqb84Yp?= =?us-ascii?Q?InVKDQQDDcHoNfl8MyR/3l7sZEYo0X+2bJLPmhQgxqzdoLTM50VmXwYlPUb6?= =?us-ascii?Q?UDYYpO/xQ80XwCgs877uFo/jp7pHybJyo9d1bmk8WHW5lzHKQQ8dm1fzclCb?= =?us-ascii?Q?F0UyZvUYq37DYHxfMQbdIys+X1nh33af7n1plmT91xeRGlv84UJdbuPRwYch?= =?us-ascii?Q?Um5RXRx1NYImX/C4gh7NlIk1qG8LZsEQ0AULy1IsdNFdHi/ORVJYVCrJF2YH?= =?us-ascii?Q?vAxio4Q7kXz7qgQUlUMtgk5ab3sd3pQbEOD40l/slEhwEg8YvVZNZ5yvEGsr?= =?us-ascii?Q?sGGO5MyO9RX5YiuvJ5k7b24RtJLf00HQiS0nXNpOP8M8I6UIF9c8fZhP9QNt?= =?us-ascii?Q?lLyX3Chc7F1Jhc7gJKZ1xTij1UFd+U/GqcpMcxucK4FEltc2FtdUT3ZQTaqi?= =?us-ascii?Q?zD0KgVTPh2G4NI0b+A0gUllxPNmmKDJ18Ede+9N/rpHrOfCGz8h1YrfVloIo?= =?us-ascii?Q?iuI7T/WbqB65tpDF4+bq+X51x5+ZE/8bAS8P4el+6CHE59lJ/Wrxs3YEeuLM?= =?us-ascii?Q?XBZZAhTLtt8apYLbkLnpRLCUJ/0G4deBBGxKaa1RzbDwqcOzOyCMRZ1SDWjU?= =?us-ascii?Q?se5o3xkhy0lrJHEwterivr4l7XEdq8KyW6Iawa/lwKHjOp0eF10IZS2QaS2v?= =?us-ascii?Q?Bn4iQl2rTMzRFFzA/gzIT9tMiyuzaq6F8Tgu+JFIDZAEtS0wYUrd8Ud5kKO1?= =?us-ascii?Q?CLNHUqsndsfRDIJo7Y8mRpZO/UH6y2V5jccBChZ0p52F1GTDyiANzdPTlf2f?= =?us-ascii?Q?ekLFx4Ew9H4JgpAw8RbDQzEBl13YOzdK0MiYWRQSZYcjcBQ76UUmQFHaR4+c?= =?us-ascii?Q?vcFC4zaxMLbNgPyvR1zkRGdxZ2KCP3bxfj8ivqy5+K7rV7S+/ztnuvgrNz1x?= =?us-ascii?Q?/bsRaDuhhnwYDBCyTaiERDEj3CrBh75AfjvkfNU5AStVOxokQIZA3bS8sbOt?= =?us-ascii?Q?g6+SxDi1+ke+l1i39dE0veRzq82ta3HRtn51z+Xxrcdna+m98Bd/YL3OtaQx?= =?us-ascii?Q?h8QyrIPZlDa+rx28dNWPJWNnLAUNXNssEeD1y30cEj817Aod4xA80qJTXAp4?= =?us-ascii?Q?UPrhLtZYL5yc0ixGwrzYmfiJ/a2CIamgyAoVQlo6/uFd/RSzyAYWH4LnN4ji?= =?us-ascii?Q?a+h40X+tZ5nhqtCioAH5ybtumL8n?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 May 2024 14:35:25.8964 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9cbfe5db-d0e2-4905-4bda-08dc6ab51b54 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: MN1PEPF0000F0E5.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV3PR12MB9119 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: Thu, 02 May 2024 07:35:29 -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: EyLvysEVxh1jc0YTsEUW0kpfx7686176AA= 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=Q7XgJ1r9; 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 For now we need DebugSwap but others are likely to be needed too. Cc: Tom Lendacky Cc: Liming Gao Cc: Michael D Kinney Cc: Zhiguang Liu Signed-off-by: Alexey Kardashevskiy --- MdePkg/Include/Register/Amd/Fam17Msr.h | 63 ++++++++++++++++++-- 1 file changed, 59 insertions(+), 4 deletions(-) diff --git a/MdePkg/Include/Register/Amd/Fam17Msr.h b/MdePkg/Include/Regist= er/Amd/Fam17Msr.h index f2d5ccb39dc7..bce51a66517f 100644 --- a/MdePkg/Include/Register/Amd/Fam17Msr.h +++ b/MdePkg/Include/Register/Amd/Fam17Msr.h @@ -126,19 +126,74 @@ typedef union { /// /// [Bit 0] Secure Encrypted Virtualization (Sev) is enabled /// - UINT32 SevBit : 1; + UINT32 SevBit : 1; =20 /// /// [Bit 1] Secure Encrypted Virtualization Encrypted State (SevEs) is= enabled /// - UINT32 SevEsBit : 1; + UINT32 SevEsBit : 1; =20 /// /// [Bit 2] Secure Nested Paging (SevSnp) is enabled /// - UINT32 SevSnpBit : 1; + UINT32 SevSnpBit : 1; =20 - UINT32 Reserved2 : 29; + /// + /// [Bit 3] The guest was run with the Virtual TOM feature enabled in = SEV_FEATURES[1] + /// + UINT32 vTOM_Enabled : 1; + + /// + /// [Bit 4] The guest was run with the ReflectVC feature enabled in SE= V_FEATURES[2] + /// + UINT32 ReflectVC : 1; + + /// + /// [Bit 5] The guest was run with the Restricted Injection feature en= abled in SEV_FEATURES[3] + /// + UINT32 RestrictedInjection : 1; + + /// + /// [Bit 6] The guest was run with the Alternate Injection feature ena= bled in SEV_FEATURES[4] + /// + UINT32 AlternateInjection : 1; + + /// + /// [Bit 7] This guest was run with debug register swapping enabled in= SEV_FEATURES[5] + /// + UINT32 DebugSwap : 1; + + /// + /// [Bit 8] This guest was run with the PreventHostIBS feature enable= d in SEV_FEATURES[6] + /// + UINT32 PreventHostIBS : 1; + + /// + /// [Bit 9] The guest was run with the BTB isolation feature enabled i= n SEV_FEATURES[7] + /// + UINT32 SNPBTBIsolation : 1; + + /// + /// [Bit 10] + /// + UINT32 Reserved0 : 1; + + /// + /// [Bit 11] The guest was run with the Secure TSC feature enabled in = SEV_FEATURES[9] + /// + UINT32 SecureTsc : 1; + + /// + /// [Bits 12 13 14 15] + /// + UINT32 Reserved1 : 4; + + /// + /// [Bit 16] The guest was run with the VMSA Register Protection featu= re enabled in SEV_FEATURES[14] + /// + UINT32 VmsaRegProt_Enabled : 1; + + UINT32 Reserved2 : 15; } Bits; /// /// All bit fields as a 32-bit value --=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 (#118514): https://edk2.groups.io/g/devel/message/118514 Mute This Topic: https://groups.io/mt/105863816/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-