From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (NAM11-DM6-obe.outbound.protection.outlook.com [40.107.223.50]) by mx.groups.io with SMTP id smtpd.web12.10213.1619783537232942099 for ; Fri, 30 Apr 2021 04:52:17 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@amd.com header.s=selector1 header.b=HjPoi4ou; 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.223.50, mailfrom: brijesh.singh@amd.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=T8J+Yohg2UIDQ142nZG9HlIp424T0/Sl+1p/ki9hQF52BMqEfpJlntv6UBTSFAWqbDZXIuaeS82Pc+cA1Mm5NnCb2rZ4TCgNkyYyHmc+Mx6R8jl6YcmRcOLVbTx8V2pAntiU/TAbT9i60NnIVjhDjiM7yNMVW4cCwccNiQ4Rtqzc/qoZn2QZajrazkVONniuYIZ8/RxMRVV2cum97RjTPSAM+YaEXOBnMSHWV44Cwt8tgubk0PBPS/fJKlB/F1RmaGeJRS5mx0rF8bsu20WkNMVYrbdFOntsgABGHaXCfsniyIt+sIYPcwqDrwf4LImly5eR9wrWXHTWwJRsY/XPrw== 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=DhhT3g2/4sTKZ8qZVp3AUW88RerVeo3KeUFdhs5Jpzg=; b=X9zTeltdMuIaNAhh5fjXcPoO2QG+wbW8Mys2qx3GFiahjmkyETn+UVwKRa3U0m4y95ei2B4EX6dtcE+Vl/d5h29dtWrHfUW7Ydf/LNNGR0pFm9YAisMO5tQFnLWsBT4uUY+mfPcToc3jbBqjqFot/NY/qCNlydrN4u9xgQ6XwjtvsbkUoNlfvL/9rFPQriyYhlM6LK96DJL2gWXmX+7IRStEsS/n2OsREt6fFpKxlAT/9molZ8Ixq8e3GPQPkJXGPzLM2mpH1TAm/M/Bm2BxZxFbSe0Ni19XZQyU7upLsFkdxc2Wn0adAenuDJLj8w/twaHIiYdNBgQO05WYYzbcxg== 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=DhhT3g2/4sTKZ8qZVp3AUW88RerVeo3KeUFdhs5Jpzg=; b=HjPoi4ouG+IlQnscaaWO8N0Q3lbonjdV1DemyIfsxkxEl+9rw3op6Ve6+VXhpKlLD/YTU/VxaYE7TD4DPsVw50Ny2QRzFiarmDpDNV43qQ2dBhXsHLU2tk/HOaZuZqX502ugIPhMnOo+ZyvgG0T41Q1keWawFqwk14qiCcF+/jA= 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 SN6PR12MB2783.namprd12.prod.outlook.com (2603:10b6:805:78::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4065.25; Fri, 30 Apr 2021 11:52:15 +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.4065.027; Fri, 30 Apr 2021 11:52:15 +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 Subject: [PATCH RFC v2 01/28] MdePkg: Expand the SEV MSR to include the SNP definition Date: Fri, 30 Apr 2021 06:51:21 -0500 Message-Id: <20210430115148.22267-2-brijesh.singh@amd.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210430115148.22267-1-brijesh.singh@amd.com> References: <20210430115148.22267-1-brijesh.singh@amd.com> X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: SA0PR12CA0006.namprd12.prod.outlook.com (2603:10b6:806:6f::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 SA0PR12CA0006.namprd12.prod.outlook.com (2603:10b6:806:6f::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4087.27 via Frontend Transport; Fri, 30 Apr 2021 11:52:15 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: fa9e6762-7ceb-48e7-b1ee-08d90bce6608 X-MS-TrafficTypeDiagnostic: SN6PR12MB2783: 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: S6FhKRs/b7ra00gideeOE2fa+YeCafqSRbHOTqBH5yVQpX6KyGXqbxKb/1T+q57Qg+f70Ygtt7L6xaMUFdC9z6W7SU6+PgD+APeYLOkl44XHHfhDf+JE40f8f/r/QBfdl3Hkc9k1VofNYM4X5mde8hwVwb7rLVzmGnKNFNZIrdgvPBzyV542smLIY/R19/xbMIFujL/d38oEi43iWueVke0cKnMcx/xZcsnMtTzQIvdMGxvpD8HaAsySwOuTiXMDM8BmdE8RwOBJSfEyqIaP8f4/MOPhgxT+MHGS+gpu2NvkPGxV7VDT7f3kyXP/jIIk8O/W4Nx/JIT6XkiXB7gcVWlpZGMDE2AHTAG5UG36kvFCI/9wkB9QHuCIDNJnaiqttjARRqvK4iTn2QTHWRDNLmiyt053lxrMt/Y+xDnRoIZKKRMA5LvYhJyCYMQDG2JlKvkmoqEKlLYBYgpQFIaRmgCSA3c2pnHlruMUy1+tJuOs/aB2bxf9KpNRaFBRbkmRL8Jvx2IciCAbYuOU6DDr+QPZ5vBGNbjwJg3LzaauR3cX4ah4Zieu429KXfAK+4qLMXwBVfW9kHOwcKJe6b53GMaUt5m/6HdV0IePnR9KLLpSXVHPxuP7DdFMuPSx0NCTe5Do0tuZFrJtQa85WjEJsM85a1iedCR1wc2aJHEwJbXUuCXvh8S8FEdgLhqTVtp7RsVUVCvwJYB41MwL8rLV0uZvbTZdqeTbMLob4pvPWIU= 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)(39860400002)(396003)(136003)(366004)(376002)(346002)(36756003)(44832011)(16526019)(52116002)(2616005)(956004)(66556008)(26005)(38100700002)(54906003)(966005)(1076003)(66476007)(186003)(7696005)(66946007)(5660300002)(6486002)(38350700002)(6916009)(86362001)(19627235002)(316002)(83380400001)(2906002)(6666004)(8936002)(478600001)(8676002)(4326008);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?us-ascii?Q?P/p+dUEe0mVT8p/lvItgSRuT1xz6eCqez+oJTuMYQ6buwrFMO/Yshorq0P8X?= =?us-ascii?Q?0JNFtd6QZYJXm2RUxJ7BIjPbwtzB0QO98O5BqMoZfJQU/GKG0zM7McXsgq5k?= =?us-ascii?Q?AYW3UnwzjFG8mvCH+zeGvNeLu0VVSQbz7WBUUJt10FE+YxeyNtxIiUNv/pZ7?= =?us-ascii?Q?64SeZ7CR5uTOIcvf60QjB5xvF/IBA5PwHxCkmLbmeWkMjQmiRlXVzcgEY4M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+wekW99hpR1CrCDsv59s8v7/cIC+lSeQ+IYVCSPbEP4K?= =?us-ascii?Q?fVozemT971w21NZJZlaFeWqMLBx2tlPwyns1PAssiktnHlEVI1sEzpQ2QxKj?= =?us-ascii?Q?OsYAwukZ7hbS/CaRq5ObRR+ryNI/zMwydpRNfFu0TCjCyemCSWD8XKw13p8H?= =?us-ascii?Q?l+1y7pAYyYYbrwlcUtUFGhHOPVOalLYGWQJ4pljiEQ217vd1VA/7LUbDQKWB?= =?us-ascii?Q?mngYwntrYBXhk+aGORx2AiKD?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: fa9e6762-7ceb-48e7-b1ee-08d90bce6608 X-MS-Exchange-CrossTenant-AuthSource: SN6PR12MB2718.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Apr 2021 11:52:15.5248 (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: E38ae2fiD3ueOEvVYE+gFlcs8wG7QFjO9kqPKsKbvW2yDo07BGEYTaO34gIBDI4JY9j/IDKKPA7hkionPmqRvg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR12MB2783 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 Cc: Erdem Aktas 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