From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (NAM11-CO1-obe.outbound.protection.outlook.com []) by mx.groups.io with SMTP id smtpd.web12.25.1616599950939575559 for ; Wed, 24 Mar 2021 08:32:32 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@amd.com header.s=selector1 header.b=gIWS+8eJ; spf=permerror, err=parse error for token &{10 18 %{i}._ip.%{h}._ehlo.%{d}._spf.vali.email}: invalid domain name (domain: amd.com, ip: , mailfrom: brijesh.singh@amd.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=msxwFv87ZUeUTnCw/yD3OfQ86wJdfzLNXtR6J2r2APGyNEIxsZ9WN79d3SCyRYkKa7Pq69tZoSeF88m+T2TecbxIQKEOsN80gPVCzYs5oLfW6i78VwQ1muoQrXoaY/xX8t1UkrJWkvJ7p2dhNy69TAIC79tTVZ4YjMU4VwnqeQE2SihEa6r29988chKypXlgYUE8CXjqtK7idarGQymh99Crt1+e8hgTtaVsdLLM+GYRlYNExN2nODoG9CiBvHYC3DMORp0R4oPaVpwf/kqSaHrU4ytxJzF3uQMIFB5ghMIEyGfMzywAuoJAaE2c/PcBn5UoP4o8ut6KSAzFpOin4g== 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-SenderADCheck; bh=cVJv453nPhhBfYczlrDPwxdNl+T+17TTiNPp4xaunxs=; b=SkH8jH6BlH78VL/Sglt0A89VU0K8H0D8oTk4wmKINSCd5rJ0hOk55BlMuzw2hA8ADPVDem11TbYNy/1yz3I3sOqPtzUDf99IJfIDWQLS1gcPbvgvo9flCh2iSGWYZSiKSw1pzGD8x+TragKtkRJjMZ1uHBhvH4x/1IlAD6XTuujs9PAlZ6jPhq941jMeVP2bqUZqLrpg8AkXhCqHrTZ8RnaD8B/LV1tcSJLNJd7ueIA2cUV2EdbObPk7ur1t1ppvX3pd+pfzYtG6P/oDmfglkQapCzNksZRew3LmHdGZGxuqPOblduT0eHqcBGYZ1gTPjqvEdXRji7TKwnhY8OW7Yg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; 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=cVJv453nPhhBfYczlrDPwxdNl+T+17TTiNPp4xaunxs=; b=gIWS+8eJx9gjm0o9c7eVQmytP+qrloAZcnbZS8DtwQUCmHvN9bSXjrdYs5Pg+dwNdaz0Mc5IGV0lzCrmpAwa46eIU7LS5ggkqwZOoV3cAHYRCxYo0PKJ4JgCMeSo00EVwnRmM3HyP0nci+ufzh4dmT1KT3ugkCbAmzwyYvaH/lI= Authentication-Results: edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=none action=none header.from=amd.com; Received: from SN6PR12MB2718.namprd12.prod.outlook.com (2603:10b6:805:6f::22) by SN1PR12MB2541.namprd12.prod.outlook.com (2603:10b6:802:24::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3955.18; Wed, 24 Mar 2021 15:32:30 +0000 Received: from SN6PR12MB2718.namprd12.prod.outlook.com ([fe80::30fb:2d6c:a0bf:2f1d]) by SN6PR12MB2718.namprd12.prod.outlook.com ([fe80::30fb:2d6c:a0bf:2f1d%3]) with mapi id 15.20.3955.027; Wed, 24 Mar 2021 15:32:30 +0000 From: "Brijesh Singh" To: devel@edk2.groups.io Cc: Brijesh Singh , James Bottomley , Min Xu , Jiewen Yao , Tom Lendacky , Jordan Justen , Ard Biesheuvel , Laszlo Ersek Subject: [RFC PATCH 03/19] MdePkg: Expand the SEV MSR to include the SNP definition Date: Wed, 24 Mar 2021 10:31:59 -0500 Message-Id: <20210324153215.17971-4-brijesh.singh@amd.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210324153215.17971-1-brijesh.singh@amd.com> References: <20210324153215.17971-1-brijesh.singh@amd.com> X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: SA9PR11CA0006.namprd11.prod.outlook.com (2603:10b6:806:6e::11) To SN6PR12MB2718.namprd12.prod.outlook.com (2603:10b6:805:6f::22) Return-Path: brijesh.singh@amd.com MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from sbrijesh-desktop.amd.com (165.204.77.1) by SA9PR11CA0006.namprd11.prod.outlook.com (2603:10b6:806:6e::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3955.18 via Frontend Transport; Wed, 24 Mar 2021 15:32:29 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: ef79643d-25a1-4d10-8ad3-08d8eeda096e X-MS-TrafficTypeDiagnostic: SN1PR12MB2541: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:813; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: z4rKdpBrvIo+5DmDFV2IqAYkgOcYa98rJ+JlUMWBdjhWv166oRjP3FJohZjhS+Szfr6OzHwTOtvOXEIJXmP9CAQX50f+mD/ZK5Gn3e67/EdFS3K7UfN6BEG/3LqKSxQIxgln/hL/saQzABmqITSQfYeYbeZQG92nF2Fe/zZXVvFlYYPq19VCkcOb2NhghXPCrsZb1Dd3lyxTioxT5Ts+xXBEKMzvl4PfVFh3/4YziPV9MBpjQIXhIizyMZqPqWqmURGrm0Gb/3yK/r8b42iZE+96w4dSt9kajystqRCRiuRhF5PV6FjOAZRM9qdcKWeSWlRVKxDoHVbUaaXr1iYomlxFzAJs84jZQMxKhlW4sYv2W90yaBk2Bmu0/kfbqKZmaXWnouNH5R5nr0l4nDQzRd+4Nl2vTXxdeke75oruEOkUnXM/ruaY83zCFH2iokMJBy8tdqZfflj+DCPXT5BXdKUGBiC3K7v1Ecwy82Il/DjuRL7lL8DvMf/78hwm/QTQuUOqRm6t+VTQlox2TJ1OoKQMo7F5qIcCvF91fM1R5ICwAU1ZbdV4XzwNDhxyzo0pclqHZNPBaS8UGD5TZxjke8l4P+0Hb6DVfFMv8iiQJU/8e+rJDOzAsmT5vP4LmTdwZpB6u/CNPEHyv5+dkAJPX9enit6ZNpADTvkkFQANq3Q7x/xy29wQalexKgxDw6lN2+/JcBoJw0/otfTmkz3Q0zAeO9rvg6jZ+iCcVX4bWN2cCPM53CfABlGY5L0ELvNR X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN6PR12MB2718.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(366004)(136003)(376002)(396003)(39860400002)(346002)(4744005)(36756003)(8676002)(316002)(52116002)(54906003)(7696005)(5660300002)(1076003)(66946007)(6916009)(8936002)(83380400001)(2906002)(86362001)(6666004)(6486002)(38100700001)(26005)(66556008)(478600001)(956004)(66476007)(2616005)(966005)(19627235002)(4326008)(44832011)(186003)(16526019);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?us-ascii?Q?Ot+Bx0/WFQH8Utqmxb7qQcYA8x6MbFZ7TEuu/OaTZ3UxEc7uEp79OF3c/Hll?= =?us-ascii?Q?R8zQtKKfD23lxI23PxHDzjlAHZeJpNOEkqQhBgf0iBFFWlI5xGmITguac2oC?= =?us-ascii?Q?0hsliyrR7ZLkMmu6+BvTyvZXJu2NLnCttjsBKHEgX47gqfwXc/rnKqzCKMjg?= =?us-ascii?Q?PCc8tzAnhwpSrdnWPW02SAoyNaZpJ7zTAdn9XfeKkQWsXLtlO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Z/5v9jHpaXBVxtrDp2vMhBXiRDLaEELrdmTC81vhbTclZ2?= =?us-ascii?Q?DCY1yB7b8AMMSVQj1dvDB28xvzpOnh8Z/Ji98+TWytEHfsJ2rog/c+vhGOJU?= =?us-ascii?Q?qLM2sPCDq5GSFTeV9McnSD1npZpI+Blkx0p8eXcWaAcoCOjer42QUDMHsc5l?= =?us-ascii?Q?bU+V5dBMAxsZL7/Fw3k8wUOddDqvoz3h7X5vtkQf+cy277ZMlRcqhaYpe1zN?= =?us-ascii?Q?B1l227ky2NyH8ju0dCb+ibkj?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: ef79643d-25a1-4d10-8ad3-08d8eeda096e X-MS-Exchange-CrossTenant-AuthSource: SN6PR12MB2718.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Mar 2021 15:32:30.3244 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 5YMHR3A7kvIDfjUq2/WsSiPzweR3YBxbEndg4wpVZvISjnP2CT9eVYrAoA/UiVPgPnod3x/lUl2QoRaMdqDshw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR12MB2541 Content-Type: text/plain BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3275 Define the SEV-SNP MSR bits. Cc: James Bottomley Cc: Min Xu Cc: Jiewen Yao Cc: Tom Lendacky Cc: Jordan Justen Cc: Ard Biesheuvel Cc: Laszlo Ersek Signed-off-by: Brijesh Singh --- MdePkg/Include/Register/Amd/Fam17Msr.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/MdePkg/Include/Register/Amd/Fam17Msr.h b/MdePkg/Include/Register/Amd/Fam17Msr.h index e4db09c518..4d33bef220 100644 --- a/MdePkg/Include/Register/Amd/Fam17Msr.h +++ b/MdePkg/Include/Register/Amd/Fam17Msr.h @@ -87,7 +87,12 @@ typedef union { /// UINT32 SevEsBit:1; - UINT32 Reserved:30; + /// + /// [Bit 2] Secure Nested Paging (SevSnp) is enabled + /// + UINT32 SevSnpBit:1; + + UINT32 Reserved:29; } Bits; /// /// All bit fields as a 32-bit value -- 2.17.1