From nobody Mon Feb 9 02:27:20 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+96809+1787277+3901457@groups.io; arc=fail (BodyHash is different from the expected one) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1669872367660456.5397669738876; Wed, 30 Nov 2022 21:26:07 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id FZTxYY1788612x9NGRzzOe2h; Wed, 30 Nov 2022 21:26:07 -0800 X-Received: from NAM10-DM6-obe.outbound.protection.outlook.com (NAM10-DM6-obe.outbound.protection.outlook.com [40.107.93.75]) by mx.groups.io with SMTP id smtpd.web11.32941.1669862179932178542 for ; Wed, 30 Nov 2022 18:36:20 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Pp3cUE2IopEspWwod+oaP4r6Qvn6AFY4wnDd9vlny/5f/bURVpIaLk+WiBViqZ1fS3aY/qGF2DQJjPSyvpDrmEvE8qvDNYTHUK3rheHk1rINPVMK//aHH4simQXCgmTbc1Cv7QWy7Zst2+lf2E+m4EUWqyP28wKvOIlcUwC+gNWQCR4tuMrDgN511bSWId3p8ArD6ebIC3EMGZZmaZ2D06oYguCH/AxR10ah2fMBVJ9MWM3bi+VXqap54qJbgfXSncnQ4XCU82tJS5wWKJrs4Jadh6rLUmz7LS7yLvXxO4Kzb1IwnW/UhMAIies5d4S7KRxzUNuBm3xLbOXFgBBApA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=E/g/a6mMLdnllXLJRI+HfDyfSh6Ljg14ne3AxMudDsA=; b=Y9uISvYF++I/FzcRJscSGOO/oXBSJFKRDZ5RKJxU4vu/pKDbF4szhZ9WkHo89Gjai6IRQPjLRteuF6VYwHYFg/L18pjox8C/GhlhDk9Iu5qDrPLnYnwsf+VDbIACAHwvlRTEjBB66NDnlCPP8i7XTOMwBJHCnWCQ5ZDWjlCNFng4CwM/jl9Onu0GOXjWnctB71CrmrdWrJZ8zZiRBSuCgV+HSOcUM35qT3qZGL6oyqZ2YTzIHzmDX4rrl4qRk1ezkzF+w0Ob4vOiikRWGNcJBT1idqZNy1dvzpZaPr2N4ByWAqDvcgDf06YF/FaxZ5AEq+YxPKbtYmul5aPvyi2qRg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none X-Received: from DS7PR03CA0293.namprd03.prod.outlook.com (2603:10b6:5:3ad::28) by DS0PR12MB7851.namprd12.prod.outlook.com (2603:10b6:8:14a::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5857.23; Thu, 1 Dec 2022 02:36:18 +0000 X-Received: from DS1PEPF0000E62F.namprd02.prod.outlook.com (2603:10b6:5:3ad:cafe::6) by DS7PR03CA0293.outlook.office365.com (2603:10b6:5:3ad::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5857.23 via Frontend Transport; Thu, 1 Dec 2022 02:36:18 +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 (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+96809+1787277+3901457@groups.io; helo=mail02.groups.io; 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 DS1PEPF0000E62F.mail.protection.outlook.com (10.167.17.133) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5857.17 via Frontend Transport; Thu, 1 Dec 2022 02:36:18 +0000 X-Received: from aiemdeew.1.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.2375.34; Wed, 30 Nov 2022 20:36:12 -0600 From: "Alexey Kardashevskiy via groups.io" To: CC: Ard Biesheuvel , Jiewen Yao , Jordan Justen , "Gerd Hoffmann" , Brijesh Singh , "Erdem Aktas" , James Bottomley , Min Xu , Tom Lendacky , "Alexey Kardashevskiy" Subject: [edk2-devel] [PATCH ovmf 1/5] MdePkg/Register/Amd: Define all bits from MSR_SEV_STATUS_REGISTER Date: Thu, 1 Dec 2022 13:35:17 +1100 Message-ID: <20221201023521.10028-2-aik@amd.com> In-Reply-To: <20221201023521.10028-1-aik@amd.com> References: <20221201023521.10028-1-aik@amd.com> MIME-Version: 1.0 X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB04.amd.com (10.181.40.145) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS1PEPF0000E62F:EE_|DS0PR12MB7851:EE_ X-MS-Office365-Filtering-Correlation-Id: 92f92064-e6b6-427d-1cd1-08dad344d35d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Message-Info: b5ixKp/LXElvOhHIAL1HlsE4nGgWMUfilD0pnYRPFqOAq0KZg1jYhHZ+/Q1akLdZd6ZmNJSu/oqifIG2hnFnNs2QJ/P2nl4BSwXxWuAOZPOsnopGaIDQ6+efehUOVkeTrxGqM5ByA0MJVtR6edpQ1ccWi0f7Wq3x3tIFgRUekUcaHT7qd8U+s5aR/3As03ouBuiVX2zvxW3jNBMdBMahYAU6ujW4huSQDBHUNslOVd5P7QUKUD8ANLhz/UBN06JOSjl0O5r5mYTvqez2nckjhViINYiUWelPuqN5r9XmxqSy67ePNHFsRQRdpiuSmttt46tC/CU4brpCEyJL31otNK9OL8H0B1zvNzO2jjux2wkUUzUk67zZKVMINgo64Jiev2Kpmdb1KAKhJR08jIXADMjjXIE9N0exaMoeMYDyWyaxOOCBPJ1VQcvNR5HZivTMmmtqf69aHIAlo43f5W8ts+U9wzFgUK+POYS1BfPOk1setlTDlgqLjDOF1SPAf0LuXeJL3qRPv64b23tD1YLh8Zlh7ZHMDYa3c0l3N9lC79bzSZqtKqRBZQmYgKOmEMe8Q7bWE3ivz5sOv2RtsPo7nsnMR3BStAu5AwDXiCtFRRJftWKl3fZmhyP158fbrOL/Qaua/88N5CSqxfgOQDTTX1efn+ezF8OJ6rGpNTdwtKgNdMj+brycCoCSe1lPknhSc6ZurTGWTK7kOCeyOh/ovp6USgRlB0iH3txbdmU9ZS8= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Dec 2022 02:36:18.2740 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 92f92064-e6b6-427d-1cd1-08dad344d35d 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: DS1PEPF0000E62F.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR12MB7851 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,aik@amd.com X-Gm-Message-State: KZT0HgPWzhfnAvJM8KZ0W8xEx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1669872367; bh=7AxrJ6sFv2V0rwq1CJN1HUGcmOafIQ5hl4vXKo9EzEc=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=DKHO4bKspmPSMKZ2EPHU0+r7afR9+LEngZ30dwTnjfRrmeoK+IojHko8G7Z5a+q3aXL tJ1+lRXPYQtxlEeu414zUWqz5a1FxozS+h6onW0DmYQBwvR6Yf1IABtVKlHRZBwv2LVKK tha98It9v/8sGhIpKMLNNgUy/Qd1V8YhaBg= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1669872369775100017 Content-Type: text/plain; charset="utf-8" We will need soon DebugSwap but others likely 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 bb4e143e2456..f9474e6776f2 100644 --- a/MdePkg/Include/Register/Amd/Fam17Msr.h +++ b/MdePkg/Include/Register/Amd/Fam17Msr.h @@ -121,7 +121,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.38.1 -=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 (#96809): https://edk2.groups.io/g/devel/message/96809 Mute This Topic: https://groups.io/mt/95376259/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-