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 B005A9410A1 for ; Mon, 22 Apr 2024 12:17:47 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=ExLHXX9TVFtvbvMUKZHp23M5fJKhAvQeAqFu5Mf588w=; 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=1713788266; v=1; b=uRzeKl2+gPIC+Vtd27tAveS2kFsjTLcOLqRxx8mjeUOHmRDkX6g9QR7E6P+nO+pA7MBHWfM5 hPJXPNa7refZ7/qfzVceO29jjD2QxTIFBXDmorpW7PNVkh5wYb1dGgf8S6MIUZfsLLQiyHUgIIs 96AN9mhw7qkGAZaMy8KQLKZMW99UnEZkReaHQXYVLJyC4Nwc9SVqvevEc3iZt76C0IcYXnJtMsb Kk6E27nTQBLNSCXfEg9iZy7oiCcfnSTT5C138cRrgA/VXAeB+Y8Dk8LBx08E3NpxSyxxJx2QqMY OVBd6Pipb1Q0nF3YcLeXWPqyX+AKlZBQztXYkSrTyRdvg== X-Received: by 127.0.0.2 with SMTP id WSubYY7687511xwlK1BqJOu5; Mon, 22 Apr 2024 05:17:46 -0700 X-Received: from NAM12-DM6-obe.outbound.protection.outlook.com (NAM12-DM6-obe.outbound.protection.outlook.com [40.107.243.40]) by mx.groups.io with SMTP id smtpd.web10.16945.1713788265576087942 for ; Mon, 22 Apr 2024 05:17:45 -0700 X-Received: from PH7P220CA0100.NAMP220.PROD.OUTLOOK.COM (2603:10b6:510:32d::14) by DS7PR12MB8324.namprd12.prod.outlook.com (2603:10b6:8:ec::9) 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:43 +0000 X-Received: from SN1PEPF0002BA4D.namprd03.prod.outlook.com (2603:10b6:510:32d:cafe::ef) by PH7P220CA0100.outlook.office365.com (2603:10b6:510:32d::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7495.34 via Frontend Transport; Mon, 22 Apr 2024 12:17:43 +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 SN1PEPF0002BA4D.mail.protection.outlook.com (10.167.242.70) 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:42 +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:40 -0500 From: "Alexey Kardashevskiy via groups.io" To: CC: Gerd Hoffmann , Tom Lendacky , Alexey Kardashevskiy Subject: [edk2-devel] [PATCH ovmf v2 1/5] MdePkg/Register/Amd: Define all bits from MSR_SEV_STATUS_REGISTER Date: Mon, 22 Apr 2024 22:17:00 +1000 Message-ID: <20240422121704.200856-2-aik@amd.com> In-Reply-To: <20240422121704.200856-1-aik@amd.com> References: <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: SN1PEPF0002BA4D:EE_|DS7PR12MB8324:EE_ X-MS-Office365-Filtering-Correlation-Id: ec010598-7f93-4585-da6b-08dc62c63612 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?ncyBkejQBXBzwobQbBEXKnFeH8mtmN1GMASGkNdINejoo1sJFAaE2jLGua/m?= =?us-ascii?Q?TBJnjtqrPGTACnIK2/4gl8TFJWLaqhDIsnttbfkPwRWPY6Z/Zs/o7bnFwglK?= =?us-ascii?Q?nQ2s89LvZMkM/dwVR5xLumMXELZVKPimi7j6LQPY1qJ/5t9cvCaZDMmz19bz?= =?us-ascii?Q?h6eM5b/YxYELrUzQqJKXNvJYVd6TER8pL3sqE5w2UVG9ZlEnG4rFbPLs1rh1?= =?us-ascii?Q?zkJ/BXWOKXt/PyThn402gnj+Rgnt2atqmyFEIOWzZyK/sBJFoOnUwP82yFzF?= =?us-ascii?Q?exTl4vZF5aWU9XbEGfZIHHvwa3BA5BDyQCSa/v78eNnP4dqSGNiC00b8oNBo?= =?us-ascii?Q?TuAGsGAnBB/zN6lXIF/FcnOsFCJ33+ixTTBhMFtLvb8VvFfVnkax9KxajHgZ?= =?us-ascii?Q?8WsTRebnmxJYAwWA1ae1Z7jxLUUdCGG9FFr+KOUNaN+7qKHBBvd3XTVI32vh?= =?us-ascii?Q?tFomyQkhWckgWfUstsFN0uAGGAX+U3kygotqAYsFgcxWInhgdlIFnjtN8QXL?= =?us-ascii?Q?ao+fCtaT2+Kuiudbpk+yjpAw1HNhJxbnLvwrEgtLY0vcsWLlxTDXAbvRfX9y?= =?us-ascii?Q?Jwugp8yAOch5l3xSObFK22MxvmFBwjDL5M/TkWIvyeLx3Bii3451q8Vcq+CS?= =?us-ascii?Q?2nEb8Ggf77qTtbiNxrOAHyWwYFSZTTd658N77huXI2UDH63u6RSHk08AgpYt?= =?us-ascii?Q?8V72CexDFpshlmXX0kNiyWIB0Brrqkody1iciI7ERRzxpKPxfR0sg1WJX/m4?= =?us-ascii?Q?rQPmySMtejvNLsraYCO/IHDCsiNpLFSIQ0bKav4FVWSLV/MKfE7rnpkefwFl?= =?us-ascii?Q?6OzFSgG5YuuwT+4jdjSKyb5USY041+aPlJSo5kgjCG9VrrDAYAK4lGv6VhD7?= =?us-ascii?Q?ShCfh97taQ4/urDFQv7iiPtl5QXNaHL9M0e58XBCWRtqjj1TmLMJnWLLIY6t?= =?us-ascii?Q?VZTsKh28TJmm91GewLYlIATbpIuxzyEpRTD4VTwyveHpiU5HYZ0Cyvg2JDbf?= =?us-ascii?Q?pgyM+6msooetK6Giby/9mulWYxBTTK6jmWZ8uRFVTKBXb2y2t+7dGBqeuynm?= =?us-ascii?Q?Koct4f3Jmarsj7rik/EMTh/miY/qwxEJqLwrg1Ev4y554AXAOsR+7DjY1BXH?= =?us-ascii?Q?mdeDgDXtzJg7L+5ZZyGi5D2t8R4kHhc+5aEHNU8qKnGZNk3WXzGuhTVC1O27?= =?us-ascii?Q?va4ZIX2z18GrufWfqGGdR72TAOhq05IzEs0w7O8PNh2On0Re3DgCmZQu0793?= =?us-ascii?Q?aLCQc4FHSghflxJRZ3DwzK4UrG9+i9uwJbiVoiCo3ayW9e/12k6IzMGhD88L?= =?us-ascii?Q?IK+YfqQssTdI0ergIqlMSxiJPmSTCrO3tXWrMAiC+irKvTCNZaWsdvUW8ubT?= =?us-ascii?Q?uOxIbBY=3D?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Apr 2024 12:17:42.9238 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ec010598-7f93-4585-da6b-08dc62c63612 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: SN1PEPF0002BA4D.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR12MB8324 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:45 -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: mDNU23RniuXUxjL1FwTuIXE0x7686176AA= 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=uRzeKl2+; 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 We need DebugSwap for now but others likely to be needed too. Signed-off-by: Alexey Kardashevskiy --- MdePkg/Include/Register/Amd/Fam17Msr.h | 57 +++++++++++++++++++- 1 file changed, 56 insertions(+), 1 deletion(-) diff --git a/MdePkg/Include/Register/Amd/Fam17Msr.h b/MdePkg/Include/Regist= er/Amd/Fam17Msr.h index f2d5ccb39dc7..943329ea7688 100644 --- a/MdePkg/Include/Register/Amd/Fam17Msr.h +++ b/MdePkg/Include/Register/Amd/Fam17Msr.h @@ -138,7 +138,62 @@ typedef union { /// 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.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 (#118089): https://edk2.groups.io/g/devel/message/118089 Mute This Topic: https://groups.io/mt/105668051/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-