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 DE0007803CC for ; Wed, 5 Jun 2024 02:10:52 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=+hQWdwqq7JZV1JHhQEsr2N1lWj1i8jbTrbMe2GGy/mk=; 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=1717553452; v=1; b=xw7Nq1q5TLcjcwEl096ijM/Z3q+tJhpl25c89Ht053n7FmFlTQz/nf14TESmHLPsAyRe1Zda isjR3HyqIXCIwcDRercYyKa74+iFKQTBL0aGNHxHTGogQMyNTKUzZ4u0HlP3yWZ/MtCd1vrsCfn oC5PH3fnGnrfQYu+sTE8o8b7caFlyeAeYzzFu76hLgd1VE3CkXDiZzs0l2GYqGC5OL8NtyZWYKi 3g2aaqaFqPZeYBnka8KyP/+jFfnYldrfO8TdABXQvFZh1CRDhWu0B4b49fWSJzMK2a2wiGt5yd1 tLCkTQCXrmQJoM0XDE6Ghpo9ylMgFxSAepkjQbaEAVhnQ== X-Received: by 127.0.0.2 with SMTP id X9c4YY7687511xjtMBFMFjcc; Tue, 04 Jun 2024 19:10:51 -0700 X-Received: from NAM12-MW2-obe.outbound.protection.outlook.com (NAM12-MW2-obe.outbound.protection.outlook.com [40.107.244.71]) by mx.groups.io with SMTP id smtpd.web11.5255.1717553450934532336 for ; Tue, 04 Jun 2024 19:10:51 -0700 X-Received: from BN9PR03CA0141.namprd03.prod.outlook.com (2603:10b6:408:fe::26) by CY8PR12MB8412.namprd12.prod.outlook.com (2603:10b6:930:6f::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.25; Wed, 5 Jun 2024 02:10:48 +0000 X-Received: from BL6PEPF00020E60.namprd04.prod.outlook.com (2603:10b6:408:fe:cafe::4d) by BN9PR03CA0141.outlook.office365.com (2603:10b6:408:fe::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7587.37 via Frontend Transport; Wed, 5 Jun 2024 02:10:48 +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 BL6PEPF00020E60.mail.protection.outlook.com (10.167.249.21) 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:10:48 +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:10:11 -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 1/5] MdePkg/Register/Amd: Define all bits from MSR_SEV_STATUS_REGISTER Date: Wed, 5 Jun 2024 12:09:42 +1000 Message-ID: <20240605020946.1224515-2-aik@amd.com> In-Reply-To: <20240605020946.1224515-1-aik@amd.com> References: <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: BL6PEPF00020E60:EE_|CY8PR12MB8412:EE_ X-MS-Office365-Filtering-Correlation-Id: 2c2dc5ea-062f-41fb-38a0-08dc8504b75a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?O5dGQcAIzGC9PrpuIQ7LoLVTsH94nf8rFxjbrojQIIHaV4bzDEyVnRzFi5+U?= =?us-ascii?Q?sUr7QgVYR6exZGdoVNDhSLte2OU/ePPk+dENZkKDWNw+7YPhvwamgFwgXLhx?= =?us-ascii?Q?WwOpaUvLvRswsDKDVWtzBG9oWo8tRWGgm+pifvgeddOJBbFLWlpuz09E/JQ6?= =?us-ascii?Q?8W44X2zzBvSeRQbBSty7XR46curbcFZ65nyhJy//aQURiNYp4k70wGJlTypZ?= =?us-ascii?Q?CfPXx7EQG1vMeCUDWL6YC4RvFruUgIgu1nGTiwlE42cRobYe/CXa/89+VAD5?= =?us-ascii?Q?POm3KTv0y2oEuVYwJFP6PdUvps6bjHJgfDhYG8RytYHRhLAdgOpjjwCZTk+r?= =?us-ascii?Q?VrRdgZnkWkD6KWYDO7J8W2gf47xgEJd0gPS2uLgvOW3N9uSAfWw/e0gEkz99?= =?us-ascii?Q?zkQA2mEbQMQVG9RDaX1livT9ujwv+54Pimxr2V/ICKoWoGzAWcZlukpcDHoj?= =?us-ascii?Q?m8wFu8xASClknM5DafEJrqMAimcNW3zWlijY8vPw7FGXH4iDMrT4R9roTPsQ?= =?us-ascii?Q?+ztv9F3oISSFwmUjonGWUlXMqrhMBoAUxSIv7aGFOLTZTDSRmljSgw0dbpxP?= =?us-ascii?Q?VOHd3jvbG1Jv3xoElzjSPunTVN7HoNtgOp27sB74ZHhWAQr4bb98PLwceefk?= =?us-ascii?Q?+DaQH0fz+ITsvs6kKsq20BICyuhdKHGogYkQHfPxmDI3ntsfd2KhWKPIS5bS?= =?us-ascii?Q?q9UwdPDV7tvs8kiDfqyDsmUI6C5TBxRL9N7J5oW1dKhEQureIIWpUM2TaXBp?= =?us-ascii?Q?5cCk7bt28ElYGLeiNqQnF8WpmNAGgGJ45QHbhEUl7CvTVZTCVMvaLXTtUmRN?= =?us-ascii?Q?0ch/N2ig8+OCj/t7ov12A57rH+YVDrco+QfOHb2c12v0/WI+8zLbP3zuj8e8?= =?us-ascii?Q?lPnzVdfJeYN5d3OzKUkA9essoy4fTNo+Iy7go+0HD0mu8ioc010dPvDRYSO3?= =?us-ascii?Q?6r5kC+ZxJY0sI6ZIOGKmL9Li5ic3Bm98ShPI1IR7Celqt7JkE7J/gHLw72Hz?= =?us-ascii?Q?DgUYqRsUCxgqWqY6P/ciGMkdLM+AZYfdiKu39+85TIjmR+jrPxBKzOpQ2722?= =?us-ascii?Q?TuaHHEk3pSsKtjEGIUl0NvjhovknEZb7GZxhTCHV1koDZVWdmOvQ34nBr+pQ?= =?us-ascii?Q?Fuo20jp5tURFXbXdZkkFNfSOfxwKVE7nTUbjeXMNI/nGyzdSoixjuUbR9JYR?= =?us-ascii?Q?798xPkLQ2vqEkXQJDG4jOXR+LpaBrnRTjeTBt1bd1GhnONYu8qq29yx13MYt?= =?us-ascii?Q?+r5o/VxEZVXgD2J7UktzXXHulDJqE0+shrmdedPSgpk1XLH/qeZMT9mrrSLY?= =?us-ascii?Q?rmVvcQDfK7Hnb7LvZ8Vew3D8VOIvdFcBrvliNp4CVOQIWRoWQOOy+Dwz60nj?= =?us-ascii?Q?2Q3QbmSJneJ6f3r8ap0r+F/BeREw?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jun 2024 02:10:48.1649 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2c2dc5ea-062f-41fb-38a0-08dc8504b75a 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: BL6PEPF00020E60.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR12MB8412 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:51 -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: FC1KlInjuRvy3Eg8SMBmsfX6x7686176AA= 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=xw7Nq1q5; 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 --- Changes: v4: * added more from April/2024 APM --- MdePkg/Include/Register/Amd/Fam17Msr.h | 95 +++++++++++++++++++- 1 file changed, 91 insertions(+), 4 deletions(-) diff --git a/MdePkg/Include/Register/Amd/Fam17Msr.h b/MdePkg/Include/Regist= er/Amd/Fam17Msr.h index f2d5ccb39dc7..286b337f70fa 100644 --- a/MdePkg/Include/Register/Amd/Fam17Msr.h +++ b/MdePkg/Include/Register/Amd/Fam17Msr.h @@ -126,19 +126,106 @@ 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] Virtual TOM feature is enabled in SEV_FEATURES[1] + /// + UINT32 vTOM : 1; + + /// + /// [Bit 4] ReflectVC feature is enabled in SEV_FEATURES[2] + /// + UINT32 ReflectVC : 1; + + /// + /// [Bit 5] Restricted Injection feature is enabled in SEV_FEATURES[3] + /// + UINT32 RestrictedInjection : 1; + + /// + /// [Bit 6] Alternate Injection feature is enabled in SEV_FEATURES[4] + /// + UINT32 AlternateInjection : 1; + + /// + /// [Bit 7] Debug Virtualization feature is enabled in SEV_FEATURES[5] + /// + UINT32 DebugVirtualization : 1; + + /// + /// [Bit 8] PreventHostIBS feature is enabled in SEV_FEATURES[6] + /// + UINT32 PreventHostIBS : 1; + + /// + /// [Bit 9] BTB isolation feature is enabled in SEV_FEATURES[7] + /// + UINT32 SNPBTBIsolation : 1; + + /// + /// [Bit 10] VMPL SSS feature is enabled in SEV_FEATURES[8] + /// + UINT32 VmplSSS : 1; + + /// + /// [Bit 11] Secure TSC feature is enabled in SEV_FEATURES[9] + /// + UINT32 SecureTsc : 1; + + /// + /// [Bit 12] VMGEXIT Parameter feature is enabled in SEV_FEATURES[10] + /// + UINT32 VmgexitParameter : 1; + + /// + /// [Bit 13] PMC Virtualization feature is enabled in SEV_FEATURES[11] + /// + UINT32 PmcVirtualization : 1; + + /// + /// [Bit 14] IBS Virtualization feature is enabled in SEV_FEATURES[12] + /// + UINT32 IbsVirtualization : 1; + + /// + /// [Bit 15] + /// + UINT32 Reserved1 : 1; + + /// + /// [Bit 16] VMSA Register Protection feature is enabled in SEV_FEATUR= ES[14] + /// + UINT32 VmsaRegProt : 1; + + /// + /// [Bit 17] SMT Protection feature is enabled in SEV_FEATURES[15] + /// + UINT32 SmtProtection : 1; + /// + /// + /// [Bit 18] Secure AVIC feature is enabled in SEV_FEATURES[16] + /// + UINT32 SecureAVIC : 1; + + UINT32 Reserved2 : 4; + + /// + /// [Bit 23] IBPB on Entry feature is enabled in SEV_FEATURES[21] + /// + UINT32 IbpbOnEntry : 1; + + UINT32 Reserved3 : 8; } 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 (#119459): https://edk2.groups.io/g/devel/message/119459 Mute This Topic: https://groups.io/mt/106496074/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-