From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM04-DM6-obe.outbound.protection.outlook.com (NAM04-DM6-obe.outbound.protection.outlook.com []) by mx.groups.io with SMTP id smtpd.web09.6108.1620863205852451842 for ; Wed, 12 May 2021 16:46:46 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@amd.com header.s=selector1 header.b=zHGf1NCQ; 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=mfRIIKMsfmNvzBjnIguUkl3R6rk5BPcMYwU8+n4bKs2CBWELaNnotsYGpiPol90lLnNfETWhRfIkKIZHzPsztgRHSSbhri3PTYLCyXjgAcXrmnkn8laVKkZHXeF4oNmOGsFgU0grgqX1PUzEiWuujUsKVFkcu9lspMYfuNFqf73OLHpNGxyoyhw6ZZSi+Gz5d+dLKSsSqwaYd1PyAJuU3SHJ6ZXHNOST3R7blik2/gp72FWyxrtyHiuSYUz8p53gcoTVE+mh41eC/2rPqGGGF9BC4S6tHaSGdhK4YowYx4rLGOXw4xCifxlJ090LdslxYgEfqix0i+aQRqecHZz4Xg== 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=/iWLAyzv1rDMl7eS3XN1gv1kWhC/MgUk8otFi7ogzgQ=; b=Y0CLbO6mtzZuWlEPA39WnaLfmTVPIsfDIAj3zWIpWVmOG1xbf4XOD3mSHRIqR+9tIncd3vk0ivcH8M1Zlmt2WC6yVgScYAc+a3CWgDf1jVFKyt97LfzytwfRHiS5xPD2lyKE50VCUzkDRunp8FT6WETb+EzqJhF/iJLBxnHdOz60e+12RsnoYhzAn5CzeYaN89XbZfiyZTYYHYLBYYiAS39VlVrCeqO50zDBqCSWWcVqyX9Q6G9lmWQbhgnGpHzDThz+0FmxhJKrekB3w4Y5bJsM3Fwhc/W48ufGiWd2H/09fESJAWQnDKQdBPMx2mRmYMeGzHHYIpacEPywFmHY3g== 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=/iWLAyzv1rDMl7eS3XN1gv1kWhC/MgUk8otFi7ogzgQ=; b=zHGf1NCQCZM6JE9pVdyTuIt18Slu9yocBCPoyWpNWVPQomQM60VU7XR+JmM2hvkD9sAMALjsAy9dXDSSUmPqQglgnOuVjMJFuzfI3Y3hvIJz4O/wJp70NfX43MJ0spo7HlK4dqaqYKTScYuAzD8Co40xVzKEYFSAvb1zw6rzBug= 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 SN6PR12MB2781.namprd12.prod.outlook.com (2603:10b6:805:67::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4108.26; Wed, 12 May 2021 23:46:40 +0000 Received: from SN6PR12MB2718.namprd12.prod.outlook.com ([fe80::9898:5b48:a062:db94]) by SN6PR12MB2718.namprd12.prod.outlook.com ([fe80::9898:5b48:a062:db94%6]) with mapi id 15.20.4129.025; Wed, 12 May 2021 23:46:40 +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 , Erdem Aktas , Michael D Kinney , Liming Gao , Zhiguang Liu Subject: [PATCH v2 01/13] MdePkg/Register/Amd: expand the SEV MSR to include the SNP definition Date: Wed, 12 May 2021 18:46:03 -0500 Message-ID: <20210512234615.1726-2-brijesh.singh@amd.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210512234615.1726-1-brijesh.singh@amd.com> References: <20210512234615.1726-1-brijesh.singh@amd.com> X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: SA0PR13CA0003.namprd13.prod.outlook.com (2603:10b6:806:130::8) 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 SA0PR13CA0003.namprd13.prod.outlook.com (2603:10b6:806:130::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4150.11 via Frontend Transport; Wed, 12 May 2021 23:46:39 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d3463e0f-1f09-4343-1dcc-08d915a0306a X-MS-TrafficTypeDiagnostic: SN6PR12MB2781: 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: pnY0vo5J1Crp0LLWEPBYos3IBQoKLRz+GZEDYko/B6sXxLAMBb3kJ6mRjLJlLoxk71Cu0Uk24myzxZX1y6lIt0J4zX7aw5c5BNeHlqa8lcNu3M6RNbd5ZicA/VAqpg8UF68YhqvB1oJvN93rQly5cCQhzAd4jRlb8g1wlhj8XiluFGqCwBD3MDGNNdcC2ckNfXNvDAtLcX8J/Uz/XA4ARNgwn3+l8naJxDiX2jnHjAgWcHfFu+y9kC6Y9uBKi53P0WYLOkV7MOqpjqO+F/ezRd5HAIwuQniqOitKU/rFfmc/41lYot6Pc9OlBykyISqhGlZMzTNZNAWFqzwiX3qyKNnY/RLl0nE9xmRm2QeuIgGGkbqxw0cmpMOglBd6GufkBgMo7JO2/tQU3/WV5GzGJXn8CYyX8pJFtI6SjwEGNC1wpZn6sXs9hoPNeI8zaMaVo9IHe54WCeHutgy2VxbFvTDZyXSYMD34Z8R4KA2RVwJ/RkU+7aw8KUJjps48wuZIQWbX9k7api3GBsiSvnTVr8sIAS2waHGUHViLTv2VphbMO2LHhwqUHuorjNZd3ZTed2JYxocVE6Js71ZhgTbSikHEAwZOHtTz+w/9by5ZOXKeAGjQuB9raRaFBVTZzpf5syZvLu73LUmO9lTLT5DB+polAJ6HHsUbMTjgAZyDNMFZjluP80nSKrKHjP3MRhNw6gartdQaCL0+oTn0ArdPxXO+lpOGgxwWv7tsVHHEGLEifH4FYhLHLR7XR4A2zYYM 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)(136003)(39850400004)(366004)(376002)(396003)(346002)(66946007)(36756003)(19627235002)(7416002)(66556008)(8676002)(956004)(8936002)(6486002)(6916009)(44832011)(7696005)(316002)(5660300002)(1076003)(52116002)(66476007)(6666004)(38350700002)(38100700002)(4326008)(2906002)(186003)(16526019)(26005)(83380400001)(478600001)(966005)(2616005)(86362001)(54906003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?us-ascii?Q?UZm2QcXzdlfhu96B8/dhQCe0kRPQvTByN3n7Bu5OO7YfuTNJEtT59P6kS+Wx?= =?us-ascii?Q?EObaFeS+s9k9RzUHF0L0AvvsN7xnRMvnm5Z+m9pBg+SC4NsuGHZvjf4r/sro?= =?us-ascii?Q?n93gD+2YMmTRIWmYbTffBbWCwN45wvdOox13bdpcjjS8ea57BNc9Q6iuMOJA?= =?us-ascii?Q?DUooOIjiOyukiGnY3lG10724673Is1ecd/HeLY7r8YG0AL9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jY/AHVTJkD0WnEpbjxRC+IumDtgh5FftqaC+/FBmfouUkKY7CJVm7Pk/t?= =?us-ascii?Q?Tbrz8vSzC26YTm/LTDUnRCj/LfzL9rDridDotLmEhfQ0T4TDgiVxDLywHAjg?= =?us-ascii?Q?Xipky6KDimQHJXH1xgDi7ntz8u1+eL88nIdRG8EoMkO3rpQA/I0MFAmux8NR?= =?us-ascii?Q?q1ktDetwxbvQw+TXx2BH8goUErJe9Erd/HDPCAIZNUn/ZkiGG7Aun9R7y63Y?= =?us-ascii?Q?7bJ0WVyi9h9oUiFt9JIZFGAv?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: d3463e0f-1f09-4343-1dcc-08d915a0306a X-MS-Exchange-CrossTenant-AuthSource: SN6PR12MB2718.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 May 2021 23:46:40.2926 (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: q++4xCxpaflOr3AAvCbEBqy/ZY610Fq181TDfGvFwCPF/FO9aQBPFm6VsftJJm8AehyZJBl9lhYoIhhHsBJW/w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR12MB2781 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3275 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 Cc: Erdem Aktas Cc: Michael D Kinney Cc: Liming Gao Cc: Zhiguang Liu Reviewed-by: Laszlo Ersek Reviewed-by: Liming Gao 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/Regist= er/Amd/Fam17Msr.h index e4db09c5184c..716d52fd508d 100644 --- a/MdePkg/Include/Register/Amd/Fam17Msr.h +++ b/MdePkg/Include/Register/Amd/Fam17Msr.h @@ -87,7 +87,12 @@ typedef union { /// UINT32 SevEsBit:1; =20 - UINT32 Reserved:30; + /// + /// [Bit 2] Secure Nested Paging (SevSnp) is enabled + /// + UINT32 SevSnpBit:1; + + UINT32 Reserved2:29; } Bits; /// /// All bit fields as a 32-bit value --=20 2.17.1