From mboxrd@z Thu Jan 1 00:00:00 1970 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 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@amd.com header.s=selector1 header.b=mMtTjfku; spf=permerror, err=parse error for token &{10 18 %{i}._ip.%{h}._ehlo.%{d}._spf.vali.email}: invalid domain name (domain: amd.com, ip: 40.107.93.75, mailfrom: alexey.kardashevskiy@amd.com) 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=E/g/a6mMLdnllXLJRI+HfDyfSh6Ljg14ne3AxMudDsA=; b=mMtTjfku16p6D3DG7oE34wClZ+VwlgQ9BXLmUpEl+mR8QsQ3QIIux/WFQ0/wdS1CE6g0VHzCIuN97x2PDZONCKLiFE6JWh6lwgAihVGI6sd1/MPRx23+jEU1gWpNE1LJjW+8KxVk+8P276wU17Y60+wk9brJFv+Q7aFn7ezpxZc= 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 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 (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 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 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" To: CC: Ard Biesheuvel , Jiewen Yao , Jordan Justen , "Gerd Hoffmann" , Brijesh Singh , "Erdem Aktas" , James Bottomley , Min Xu , Tom Lendacky , "Alexey Kardashevskiy" Subject: [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> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221201023521.10028-1-aik@amd.com> References: <20221201023521.10028-1-aik@amd.com> MIME-Version: 1.0 Return-Path: Alexey.Kardashevskiy@amd.com 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: BCL:0; X-Microsoft-Antispam-Message-Info: b5ixKp/LXElvOhHIAL1HlsE4nGgWMUfilD0pnYRPFqOAq0KZg1jYhHZ+/Q1akLdZd6ZmNJSu/oqifIG2hnFnNs2QJ/P2nl4BSwXxWuAOZPOsnopGaIDQ6+efehUOVkeTrxGqM5ByA0MJVtR6edpQ1ccWi0f7Wq3x3tIFgRUekUcaHT7qd8U+s5aR/3As03ouBuiVX2zvxW3jNBMdBMahYAU6ujW4huSQDBHUNslOVd5P7QUKUD8ANLhz/UBN06JOSjl0O5r5mYTvqez2nckjhViINYiUWelPuqN5r9XmxqSy67ePNHFsRQRdpiuSmttt46tC/CU4brpCEyJL31otNK9OL8H0B1zvNzO2jjux2wkUUzUk67zZKVMINgo64Jiev2Kpmdb1KAKhJR08jIXADMjjXIE9N0exaMoeMYDyWyaxOOCBPJ1VQcvNR5HZivTMmmtqf69aHIAlo43f5W8ts+U9wzFgUK+POYS1BfPOk1setlTDlgqLjDOF1SPAf0LuXeJL3qRPv64b23tD1YLh8Zlh7ZHMDYa3c0l3N9lC79bzSZqtKqRBZQmYgKOmEMe8Q7bWE3ivz5sOv2RtsPo7nsnMR3BStAu5AwDXiCtFRRJftWKl3fZmhyP158fbrOL/Qaua/88N5CSqxfgOQDTTX1efn+ezF8OJ6rGpNTdwtKgNdMj+brycCoCSe1lPknhSc6ZurTGWTK7kOCeyOh/ovp6USgRlB0iH3txbdmU9ZS8= X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230022)(4636009)(346002)(376002)(39860400002)(136003)(396003)(451199015)(36840700001)(46966006)(40470700004)(2906002)(70586007)(41300700001)(36756003)(316002)(4326008)(36860700001)(8676002)(8936002)(5660300002)(19627235002)(54906003)(70206006)(82310400005)(336012)(478600001)(16526019)(6916009)(1076003)(2616005)(81166007)(40460700003)(82740400003)(356005)(83380400001)(426003)(26005)(40480700001)(186003)(47076005)(36900700001);DIR:OUT;SFP:1101; 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 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain 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