From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mx.groups.io with SMTP id smtpd.web10.1831.1652750125657357997 for ; Mon, 16 May 2022 18:15:26 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=NBUBU+rm; spf=pass (domain: intel.com, ip: 192.55.52.43, mailfrom: min.m.xu@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1652750125; x=1684286125; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=ZCz1S+h/3TkXLcfOYhbzBYfIMlgzzjXjdHsETHlXTBA=; b=NBUBU+rmBZ3M+MKzkHv4Ld5lTCfj0/XLHrQTR0ipnNiVW35tqcDInUFp PCFWJ66dK8/nbtd4VsEA2YBPFJHIY/nSwKE5muqURANpJB2mxo1E2vtMM MAb4OARAKYX75NxyzoVfLzKrbHhO+LGzA1HjSbsJEOorAdMH9woZtRdEy h3uwAAT0wlnGXbetxS7dzIsMFNne/V119yzrADW5FeubQUxOg9CA2QEqj HMpTlKellJmk2v6I67UCUaubp7gKF5QootS9zYfkCffd/sgMCoXNFkor4 ZbvKQqduY3to6lAF+kCxDrpz/o4IDQy4unAS6ugNThGugJIqjD/q+JgqL w==; X-IronPort-AV: E=McAfee;i="6400,9594,10349"; a="357424645" X-IronPort-AV: E=Sophos;i="5.91,231,1647327600"; d="scan'208";a="357424645" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 May 2022 18:15:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,231,1647327600"; d="scan'208";a="568614136" Received: from orsmsx606.amr.corp.intel.com ([10.22.229.19]) by orsmga007.jf.intel.com with ESMTP; 16 May 2022 18:15:24 -0700 Received: from orsmsx608.amr.corp.intel.com (10.22.229.21) by ORSMSX606.amr.corp.intel.com (10.22.229.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Mon, 16 May 2022 18:15:24 -0700 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx608.amr.corp.intel.com (10.22.229.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27 via Frontend Transport; Mon, 16 May 2022 18:15:24 -0700 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.170) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.27; Mon, 16 May 2022 18:15:24 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fcteY/dIzcfz5ehVM8iehb7LrQMtiTTSHnPZnx9Gv6CUnIp5WuHpMk60z2guMklvREI7KJvTEuhGqFlFdoyNH4yi+aWBHCph72pTKN+sNhkGUlKGIopbtaJjsZfYwcPk8ZvWZi/ylucKgT+C2EK6L5LfUeRvcT9zbHZNDhStizcD1Dsw4uBWJy+aDe2pNPigh1je01r3u95oGYsIopUeAWHO2susRg3ZxSbTXwrlyzAh/VmTANLiXJo9Nturs0HrgFkxhe0WK+j523wPNLfuBHqnI4O0rYXAZ+n8LWAqCfH9AJ5+xxoh7qc78Vl4UDOeHLgQsriFWeTNWlZPDvAWjA== 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=SwFSigg1u+vsVgnnr30RjmJE+ln7c4HBWZHjFBT4ozo=; b=mL+FMaJpIApJc/YWYRp530RkvwYY2ZeB4sWooDhBa2+aJhouESFgY46hsEc3Yl1hIvOhtMQ7y7p8PLfa2X+AFPPuqbGdcK8zLH4lGf0cjK0HSXrSPoxG2o4rtoWu/D9dq7UdZepWD7acZcirBVmjZXe0pOl2zt447XlR/AEFjqnQdXu5pwmgnPxjQOLaC2GItp1WQwrTI2wVvwWALldAApTYtfQuUMBrJQoeH2YRbm6Gim309CgeG/Q69rigqEjSmngeeSl/mwhxMvl0uAtsCHJTHCoCMDGuGssLWTSQi5WYH6Ywe71xYz6fwCZ/AEsXcTN6xc+LFQzUOxLeyZA+pQ== 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 Received: from PH0PR11MB5064.namprd11.prod.outlook.com (2603:10b6:510:3b::15) by DM4PR11MB5245.namprd11.prod.outlook.com (2603:10b6:5:388::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5250.13; Tue, 17 May 2022 01:15:22 +0000 Received: from PH0PR11MB5064.namprd11.prod.outlook.com ([fe80::1844:3fca:639e:7c56]) by PH0PR11MB5064.namprd11.prod.outlook.com ([fe80::1844:3fca:639e:7c56%6]) with mapi id 15.20.5250.018; Tue, 17 May 2022 01:15:22 +0000 From: "Min Xu" To: dann frazier , "devel@edk2.groups.io" CC: "Kinney, Michael D" , "Gao, Liming" , "Liu, Zhiguang" , "James Bottomley" , James Bottomley , "Yao, Jiewen" , Gerd Hoffmann Subject: Re: [edk2-devel] [PATCH V2 5/6] MdePkg: Probe Cc guest in BaseIoLibIntrinsicSev Thread-Topic: [edk2-devel] [PATCH V2 5/6] MdePkg: Probe Cc guest in BaseIoLibIntrinsicSev Thread-Index: AQHYUFza5t5pBkj0w0aKSr8aEqyqGq0iRg0AgAAlKOA= Date: Tue, 17 May 2022 01:15:22 +0000 Message-ID: References: <7af1cd76cb8b4684bbff0de2ab2dafa9b43d5d9f.1649980548.git.min.m.xu@intel.com> 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.6.401.20 authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: bdfd2961-7bdb-4510-c8f0-08da37a2b72f x-ms-traffictypediagnostic: DM4PR11MB5245:EE_ x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: T9PU7RH3C3IE5uT/C0L5+ehVaYlzeEPtpP6O1SR54SxfR08RQ0bbMFzkW9UxBrBfqzffr2parGw+zY2FZez1mEeAQJvwnxAx6etrnbxFdoh0rNND/wzr7Pu6nFlPKW06aroQc83Z1Lpj63vM3O7OMT7so2fFweN9xIVIfkU2ikF5S3TjJiGd5hxybV0PDB9GjXNSZw8mI+bPsmtl61AIjW2CdoHIy0CSrnXiIvVp74RlOqUMiCEmFpJG6j1RZbHWAgejyZmghBaBzmQ9FIpjbNdLAHeW+w1WbUGmDCh55p4konnNxg3/SNKsfgxkS6WKhLM0+8m3m+5EVLIHGLaFThiHtzR3T5iRwViWpBN6xrm2ncnqRKQpZmCTMavVfG6h6dAok4flaouiretbOjZZGUg4eqhO3Jezngqiy7rmY22vU04PHouLJ14rxaSjye6PZF85Ry2XfqZGqJ7m7EQUejkjtFHSoKPp11ZP0rAyNKwEabU65qzuOa3a8tcg7l1ENMP9fO2aX6484/KFb4mdUoMXie4Q+lHvmvcSuLue2OHyfadaHzy3fg7n3wtR13dqRjx3Pocxq3jwDP6kBmzUMd0Y4ao9AN10OcQvhfwOVcKf/Q9EeDYEpPCG17NJ8efgsFet/yn+zHGA7W45CT5U2Ma569deo+JKrqIk28mbBdCu1PF3uHXW2Zy67ihcVa6UqTW5G5qO5NM3dxsH8rdJgw== 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:(13230001)(6029001)(366004)(86362001)(82960400001)(186003)(76116006)(7696005)(71200400001)(4326008)(66476007)(66446008)(8676002)(64756008)(66556008)(38070700005)(8936002)(52536014)(83380400001)(122000001)(33656002)(110136005)(316002)(53546011)(6506007)(54906003)(508600001)(38100700002)(55016003)(5660300002)(26005)(9686003)(66946007)(2906002);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?gKAQm2Pojqj83/BTet2xnY3qeLZ1Qc+9MmWeag/qboCcdBD4GIwyZUokN0gH?= =?us-ascii?Q?UYcXiPr63RlDcqN2yoaA1BMAf1MKTI4zYVnXPn2pMkR5/ovFc8l980fugnk4?= =?us-ascii?Q?Xrh3PrsFt7leKGprN09gY4MupkNyE/IKfbjcE58+8GRiLilM2QAE36StlN8S?= =?us-ascii?Q?JOUJb1dnHcU/zkFUyV+Po7YvuN+Esx8HMW4+lzTsSx1w9FyiKUjbTHJjhIOe?= =?us-ascii?Q?yIzFKBt0Idy0+15guTYJMKZCD63/AgIDjUq7pf0Iigf17gj4gTyqOgvYKQ1S?= =?us-ascii?Q?dT6wlf9ORB0aU1KYHite0qoZyAMKQkcvvQZcbGV7w0sTNX/wfgq1NDpo2eja?= =?us-ascii?Q?yke9+tW5uXDt28TbQp4H8bwx8uwAMBzpXIghhFoxh1MCOrWpR/Bqq0eHFi1p?= =?us-ascii?Q?lrNiVLaSGx08R07OON91HAXvTmIJDf+Ijf+EygPaImeeJSsIbMDPT20wfOLc?= =?us-ascii?Q?RCpSTs3+WjLnrrejlAT8yQPVkOw1roCGXEYUkYC1sSo61kTb4KQ+IyEuZKwH?= =?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RInvoGvVEchmk/bcQmL9StlW?= =?us-ascii?Q?7hW6NO7OVVKzCH4Gggo9I/mzEjUGTqDXIRXwppAojtmFTMMo9s2Qcp9melhp?= =?us-ascii?Q?RujnFgQHRqDkqAw+QQVGkPyDI0i+NquCQBjWTiWQCfhA13JQxKFF7qS9/uPm?= =?us-ascii?Q?JtdTuMvdxTWNzY6YK2ZCy3ha+iJyeG3M92gKomnYR1GY5d6w/NZGQ3+CdQ2o?= =?us-ascii?Q?yrpzwpwe9tqr3rP+BhAoLYds3xHcG2mh8TkrefCBGWrd/0OVQREc09ZtqGY+?= =?us-ascii?Q?WTRa9VVjw4ROMjYP2TdWRxxhk65vt1UVk/tGbnK4ZVQAXJZRRbP70WTMdTuM?= =?us-ascii?Q?w+tng7d8jw=3D=3D?= 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: bdfd2961-7bdb-4510-c8f0-08da37a2b72f X-MS-Exchange-CrossTenant-originalarrivaltime: 17 May 2022 01:15:22.3313 (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: Mid+IYXauleow6RqKcOqC91qxXm3U3o65bs5zapp1t6DvQw+MRndhJs0OqpbmuD4xSkmrt94vwpoYOoN+xmVrA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR11MB5245 Return-Path: min.m.xu@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable On May 17, 2022 6:22 AM, dann frazier wrote: > I ran through our tests on stable-202205-rc1, and I'm finding that all of= the > tests using 2M FD_SIZE & SMM_REQUIRE=3DTRUE are failing with QEMU > hanging w/o output. Equivalent tests w/ 4M FD_SIZE are working fine. I > bisected it down to this commit, and also confirmed that reverting this > commit on top of 202205-rc1 also avoids the problem. >=20 > I might have a chance to debug more tomorrow, but for now I just wanted t= o > flag it. This patch calls CcProbe () to get the Confidential Computing guest type. T= here are 2 versions of CcProbeLib, one is to get the Cc guest type from Pcd= OvmfWorkArea, the other is a null instance and it always return CcGuestType= NonEncrypted (which means it is a legacy vm guest). Only OvmfPkgX64.dsc an= d IntelTdxX64.dsc include the first one (which probe the PcdOvmfWorkArea).= =20 If this patch is reverted, it means it is to check the guest type by callin= g CPUID, not reading the PcdOvmfWorkArea. Can you share your build command and qemu command so that I can try it in m= y side? Thanks Min