From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mx.groups.io with SMTP id smtpd.web08.2461.1628034866142600262 for ; Tue, 03 Aug 2021 16:54:26 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=AQxL6t5q; spf=pass (domain: intel.com, ip: 192.55.52.151, mailfrom: min.m.xu@intel.com) X-IronPort-AV: E=McAfee;i="6200,9189,10065"; a="194093210" X-IronPort-AV: E=Sophos;i="5.84,292,1620716400"; d="scan'208";a="194093210" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Aug 2021 16:54:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,292,1620716400"; d="scan'208";a="670711475" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by fmsmga005.fm.intel.com with ESMTP; 03 Aug 2021 16:54:25 -0700 Received: from fmsmsx604.amr.corp.intel.com (10.18.126.84) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.10; Tue, 3 Aug 2021 16:54:24 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx604.amr.corp.intel.com (10.18.126.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.10 via Frontend Transport; Tue, 3 Aug 2021 16:54:24 -0700 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (104.47.58.169) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.10; Tue, 3 Aug 2021 16:54:24 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PRatZcWip2CIXjnGJxVshkgFloQOkOaJaaGdPOq6uqnd255+TuVVDJkGMVAhWoPLnk0gL/D7YVW28sBUkEp0TgJ2V1B7iRJGJv7AwlpfgB3dlj6ST5muwzqtfJXefpwLyZ1GJBkB9qDqIfCPvfBT+qjUt2iYCsFFQuXgPF7H5xuOrq5twALHvZQgnDR6F/J6bnpS2F9Vxx2X4Prr5fdtD/8nv+U13aXaZdTHLnDmOSCK+b/zLIvqLUg6INFWYya9COcpNP9SquC7plFO/efSJfDSxAnucAV6BReZ86Z81ZIsXNQYdszuELxHGf5mg+N2/QV+cPHlKgd0jaRVLXn0KA== 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=GqzKu6Thhc+PM1C9c1jPTH4iKPwgKiupwuhGLLRdF44=; b=mJk/nli0TgD/bvxkIef1hkpynPhCGz30/yD7PGyAnD9GhUVwOhLz77gYazw//7cuMhISVMw4UqNKOBGAGq1oYvmWzgkzq0x9oru4HSz2tbidD8OtepE98iR4+f/DWHM9ccUOQzWPCV5jym39o8TqO24ADxv5BjDWgjFKPQqkkVHbWUrtlEr6BKrKfnbplIR3dxw1SSdZSwK5aTnHDYNGd+UG6KoI59hdRkqlQzlhSyXEVX7MI+ROimLI+1U2VfCa04E65fJfZXE5e92h+3+H6stEEWJ8RO60466F6P9zSH+bEE+ggEh52Ujp/2kRFUbxVBg5DC8vRauko7uhkIAuPA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=GqzKu6Thhc+PM1C9c1jPTH4iKPwgKiupwuhGLLRdF44=; b=AQxL6t5ql6rykAm+Et5t3Y2QC+Cp2ka9Vga0/x7MmER/Kn8a9+sLM04+VEEln2lpM6fTnaC7qA8MTb97FKZbZl1JZau/C18CzYZCIr7Ro/b8HjO72Ts4dUYydl7Zwft4S48YO/6wyUcBlizOI+MLwv/RerYFiC6ukj9kQSEzx2o= Received: from PH0PR11MB5064.namprd11.prod.outlook.com (2603:10b6:510:3b::15) by PH0PR11MB5142.namprd11.prod.outlook.com (2603:10b6:510:39::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.20; Tue, 3 Aug 2021 23:54:22 +0000 Received: from PH0PR11MB5064.namprd11.prod.outlook.com ([fe80::c93:200e:5aeb:e11b]) by PH0PR11MB5064.namprd11.prod.outlook.com ([fe80::c93:200e:5aeb:e11b%3]) with mapi id 15.20.4373.026; Tue, 3 Aug 2021 23:54:22 +0000 From: "Min Xu" To: Brijesh Singh , "devel@edk2.groups.io" CC: Ard Biesheuvel , "Justen, Jordan L" , Erdem Aktas , "James Bottomley" , "Yao, Jiewen" , "Tom Lendacky" Subject: Re: [PATCH V4 2/3] OvmfPkg/Sec: Update the check logic in SevEsIsEnabled Thread-Topic: [PATCH V4 2/3] OvmfPkg/Sec: Update the check logic in SevEsIsEnabled Thread-Index: AQHXiAWJER+cCC47A0CDyyhh9mXDK6tiKhSAgABLBkA= Date: Tue, 3 Aug 2021 23:54:22 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.5.1.3 authentication-results: amd.com; dkim=none (message not signed) header.d=none;amd.com; dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: dc0fa336-0543-47cb-bb45-08d956da0473 x-ms-traffictypediagnostic: PH0PR11MB5142: x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6790; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: UldEg9/tqebCZ9cweh7b+c+tJyM3xEJs58oixh4WI8fI5ZGSzwRXXPqhW2dXU0QX+Y5tsMO6Z4FOPdibWSj7wgZypL9vzyHq0YXx6IgvtOkuTap2RdjPGh8Rw2+oLQpEWAYSSN2RESBaBhwdnWkxoZ/3C156SyQz0bX3zS2rp2YhY6HoYjKkVvB7bJplhdWw5pVoxvBkPqtaW0fKYJsu8SS/OsAijb+6G3rcpsdnW35YrvFzthp+sQwaXp+M1zCIcw+YFIRsxm4/96w6pjN8enf+BNk364p+/MBRwN0+1PQG00iGjgwhdfxe4E1wxrwujicWsFaAZVQ32+ml8h6LonDdzwmuB1lLK63JnLbqhNqTeFX5So7mfxKADSEGi9G6BQtFQ++8kArjh/45QS7SDWUcQCr7jTx60eqLYNsrD6ZtQJWpjn8CsM+uADuf7zyCuJUppOa5DBw+htrsd/j5/sUmw/er47o9CWdTU5TRMlL7wn7ND3iBd+uTdAL6NVCIY7bnmIUQc6RwZ3+MFKQCCL9u6ELL3LAfk7ddvu00SiZ7AEoPIQ9FMTTmCdBswDN1KSXNlU0IpW6RGsd66F3GDT8vguF3sUK4FVpl27RQ3+BTMgXPNUjQzoopsgdN1ewxLfKWAywAm8pGfwx625PkjCk3V6F+4hL8p4XK1Z9vRSzWpYa1E3fKzXO4B5h5aSFe63S1tfbLYUYtDXpEnU/i5mKg7me09A+jfz/YDwFDA/U8OmIj8XF5dHKzDJjx2AxlQwb6A29T1vy3sbiyMFWydLm7GUZXxlZS5/mBFKAkPeM= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH0PR11MB5064.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(6029001)(4636009)(366004)(346002)(376002)(136003)(396003)(39860400002)(5660300002)(38100700002)(7696005)(8936002)(316002)(2906002)(186003)(26005)(15650500001)(38070700005)(9686003)(55016002)(122000001)(110136005)(54906003)(4326008)(52536014)(6506007)(53546011)(76116006)(83380400001)(33656002)(478600001)(8676002)(66946007)(966005)(86362001)(64756008)(66556008)(66446008)(66476007)(71200400001);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?cnh2UzdBU3NyRmRBUEpKeGMraDQrYXlVbUhNSnJQK2NuZnNKaFRqTzlyeEpT?= =?utf-8?B?M1pZdndqdFJ4dXhla3owOWx3cCt5cmRNbzV5Y0JBTmxBUnVZTFRKZC95ZVFz?= =?utf-8?B?UXBmblhDOURUSlFLblozLzRaSFVsWUMwcjlpaWprNEdGeHFIcTYwWHczTlkz?= =?utf-8?B?VEkwK1YyWmtDcmgxNUZRU0EvU2Y2eE1BWW90TUVuVUFHdzNKSll3U0xHZ01m?= =?utf-8?B?MkZyc242SkN4Y0gzMjU0UjE4TnlpNVNnOWpUTXhRZ0xrZUNWS3RvbUFPZUJF?= =?utf-8?B?dUpkYTBaOVFncFZYSkRwc0N4SHlncDFnbFJHYTZ4L2RiV3dXNWwzM0tHSUR1?= =?utf-8?B?ajBWdUJQRVZkSnBSN1E4enJCbGVZL0NiM1Y3cHFGd3IxZEpVaTltM1FMcEFN?= =?utf-8?B?ZUVFTWdaVjBVQk13RzlMbkJyRURKV3BaR3U4WHg3L3UvTUZ3U0U0ZWovL1NU?= =?utf-8?B?aFhKNGZDQTNKUHdrTUd2eTFIUnpvSWppNzRjaG1JV3NSTWdudndlZCszZWto?= =?utf-8?B?b0ZiaG5HZ0doeUp2RDVha0JLM3NDNWhtbVRGeFJiRWptdGQxVW4xTXIxNzdy?= =?utf-8?B?djZxdE5pUzM0OUxYdGxXUm9EcGtvQyszNk1Gb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Z3YyYlljQ0ZjbjdBV1Z5KzVZTjQzVFV5bzdYaVJ4d0hj?= =?utf-8?B?SHlIc0dWTDRLU0x0VEwyRUV0Z0djQ2kvNGVPeThleTcrdTV3Mi9FTU1qcGo0?= =?utf-8?B?VUJIUDRjdWVjTUt6YnI1eTVJUWlxb2lrcDBZaHJVQWVjek5tM2lLRVdGRVJB?= =?utf-8?B?U25QSGtvUWdmNXlYVzU1YWkxNm02dGZ4NGxoRk1ETHNCa1VuNWZzWTZsemM3?= =?utf-8?Q?ReBNlroZDUOWfuaFKA9cvZj7OmzkfwY285sdIqP?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5064.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: dc0fa336-0543-47cb-bb45-08d956da0473 X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Aug 2021 23:54:22.5585 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: AhAUJTbcYXXL/DITRcotGiRfeZbS4Z3mo1NOZutOJrI9J0PwzeRxaJBlyUmzJwEY7Yy9wnQIrYkPhoS3jydpuQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR11MB5142 Return-Path: min.m.xu@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 T24gQXVndXN0IDQsIDIwMjEgMzoyNCBBTSwgQnJpamVzaCBTaW5naCB3cm90ZToNCj4gSGkgTWlu LA0KPiANCj4gT24gOC8yLzIxIDg6MTggUE0sIE1pbiBYdSB3cm90ZToNCj4gPiBSRkM6IGh0dHBz Oi8vYnVnemlsbGEudGlhbm9jb3JlLm9yZy9zaG93X2J1Zy5jZ2k/aWQ9MzQ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