From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mx.groups.io with SMTP id smtpd.web11.5507.1680868468338965800 for ; Fri, 07 Apr 2023 04:54:28 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=BsLKwpcu; spf=pass (domain: intel.com, ip: 134.134.136.65, 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=1680868468; x=1712404468; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=OuIFboIzKB9r+vKDa7xwyGM2w5N/GihQ7slRpogMr4c=; b=BsLKwpcupXorE4lAT0KwCas/kI/20IBC5u4R6ejGDDUxIbntHM7T5Ehi 5Ox3xZWbNdypC/6hQJXWsokV6ej8s1PJYbP/OkyhBev+riwnaXcnbMDLU ZX+dPxTFVbKPeaRL06iOwAFKN/wQcQjMRYhrTJojEnQkCk753zSDXkBMF dHNf0yPW3XG1TEi4QSJKfwdcR5Axn256sj6C6zwFWOgslRwUTNih1hTK1 NzcNpOBa/iitMvrM6HK+8n4WfyurAoEab1Ivg2zlidPJDo/sIPOMhlosX aeZSVGzPjkHeIA5/xxIEFyjm6F+g4ANOqpx062D/MN2ot4435xQ8pe1kJ g==; X-IronPort-AV: E=McAfee;i="6600,9927,10672"; a="345622279" X-IronPort-AV: E=Sophos;i="5.98,326,1673942400"; d="scan'208";a="345622279" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Apr 2023 04:54:27 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10672"; a="811375457" X-IronPort-AV: E=Sophos;i="5.98,326,1673942400"; d="scan'208";a="811375457" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by orsmga004.jf.intel.com with ESMTP; 07 Apr 2023 04:54:27 -0700 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) 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.2507.21; Fri, 7 Apr 2023 04:54:27 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx612.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21 via Frontend Transport; Fri, 7 Apr 2023 04:54:27 -0700 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.168) 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.2507.21; Fri, 7 Apr 2023 04:54:26 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SZLkyeNunzq11UQtAe+QwapRS+RLWwEinKGkzq+JY+eVooqJwDoLvFAMoaoYXOZijqce/bl/APKKiRhzyr63C/i/ADzTn0gP5iEjIE7wYR5TSh+SqSdu6MLdR83J2pVHRJ4Ni46GRQylD33lSV1z7TeaeynDYGWFFr9xz7gXCz0Oaiv1Rc29cxHHRnWJmFF5rWPJp9VaCBmh9afNCsDI24bEmUjiBAl/MFWyhO2zwsyNunpObpN9YihQqcNP7I0OaQKmG0J7hsZ7BkXYmyijrWgP7NsftXItLflW4/YzJzfXcHUFfaE3N7z8Pk4GAvfeQfEgvP18uapi3CD9FHyF6A== 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=OuIFboIzKB9r+vKDa7xwyGM2w5N/GihQ7slRpogMr4c=; b=gNpEvz6h05FWAXXvR0tcNiqpgyMd90rfontaPtPOuiQALmMTosrBtIA078rJcO0uYM2ZBWXzwlUHks6bqIniAYT1j286EodL3km8ByaE+fLjqVZ7UNYF40rDvEYFDyufXHphpEPEmmhZ8FCkFUlE5seyDDKts9TWAOYqr99ZXFP5Osic4k/qzhzw0M0Tk75W8ApyzqozV/Ou7ytPpbtQVEn4SXirT/qBLofUmzZPxFwST+ZDuBLZNHh7YihrDSchUXEv9BOEvADM18jo7J18aZwQbtCHQOjjrgPyCJBO3FYXYe/ot1Hr5uBq31LZHL1t58E9h/4s52qIiRlHSMVQdA== 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 IA1PR11MB7248.namprd11.prod.outlook.com (2603:10b6:208:42c::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6277.33; Fri, 7 Apr 2023 11:54:23 +0000 Received: from PH0PR11MB5064.namprd11.prod.outlook.com ([fe80::6364:feb3:108:a5ee]) by PH0PR11MB5064.namprd11.prod.outlook.com ([fe80::6364:feb3:108:a5ee%4]) with mapi id 15.20.6277.031; Fri, 7 Apr 2023 11:54:23 +0000 From: "Min Xu" To: joeyli CC: Gerd Hoffmann , Tom Lendacky , "devel@edk2.groups.io" , "Aktas, Erdem" , James Bottomley , "Yao, Jiewen" , Michael Roth Subject: Re: [PATCH V1 1/1] OvmfPkg/PlatformPei: Skip PlatformInitEmuVariableNvStore in SEV guest Thread-Topic: [PATCH V1 1/1] OvmfPkg/PlatformPei: Skip PlatformInitEmuVariableNvStore in SEV guest Thread-Index: AQHZY9/upZdLU6tINE+BmUa1CmQ25K8Yur2ggAbnqQCAACSJoA== Date: Fri, 7 Apr 2023 11:54:23 +0000 Message-ID: References: <20230329052310.27-1-min.m.xu@intel.com> <4tmi32c3kevecoc3y7mb6jlv7d7ygmctt6bgwflvjybqwphjqk@gnnertcj5kz2> <20230331075956.GJ8569@linux-l9pv.suse> <20230331144834.GK8569@linux-l9pv.suse> <20230407094106.GO8569@linux-l9pv.suse> In-Reply-To: <20230407094106.GO8569@linux-l9pv.suse> Accept-Language: en-US X-Mentions: jlee@suse.com X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PH0PR11MB5064:EE_|IA1PR11MB7248:EE_ x-ms-office365-filtering-correlation-id: 055ad9b6-fb8e-4403-d7f4-08db375ed455 x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Mc/2Rav6SzgQhzHHcYB3FUxfdv2o6AhPjzlCfgCdDFoLwTy0PmJtSzW4ASJCXUOIkDhEbTNbIog/7DtA1nQRN0Bs8kEoZIOEGlp3T0NobBMfmirUZ4Ed89ky5rhqD3LhACGPdL3zqeYsQtb2WjpV8qDWPBjb4fGRyxi5dIiEoNDzclNFLfMviMmplhbEPz8/2VwqyDYNtXjQ3p56d2CfLkN1HliyyvtXknS1zq7pFB3+3ScfyutvH0Npq2DQita81GP6Yxoe8iMrxDSODcpSQ/JuD9zF8CiW+ChxqMHNAdcps8pLBFh18b2o+/3EvXVolFweNZRDkEIrs/g6CbGQh3C2bQmwRGCbtyedlgkSDJjTSqx0s0+IIvlDKitEq89l3tiANRZXAXbO39+TbdHoulCb08F881QwTDx8Z3cfasKBbFQcm3RBo7wO2STjjgpm/85I1B+O8rT9KsTZWJoOZDHdPdPIUyBow7Agj11jIPuvY8MN4RDztTrDCRoEXXgMu1/pv8ZkUxKdH1N3R0NmM7X1nkAQvQ/Rz/qwUSWf53152jMV+ueNuGWygclZ+d8h/WwB1tllTDZkBjSArJV1R81PiXml3EMHKnCAvB9mJ5s= 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:(13230028)(6029001)(136003)(376002)(346002)(39860400002)(396003)(366004)(451199021)(26005)(6506007)(186003)(9686003)(54906003)(55016003)(83380400001)(71200400001)(7696005)(966005)(5660300002)(122000001)(41300700001)(52536014)(8936002)(86362001)(38070700005)(38100700002)(478600001)(76116006)(82960400001)(66946007)(66556008)(66476007)(64756008)(4326008)(6916009)(8676002)(66446008)(33656002)(4744005)(2906002)(316002);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?Cs2gC54yVoZUSdU7/dYmqQ6MoT/xuSJ5W02T86Ck1A2mWJS2qEncWVFFj+Fc?= =?us-ascii?Q?191ABdVZNtyEC8P7Jkz9NgI4pAqPmnDyDSC1hDM9ngVpF1g+VtkBFVQp7b4u?= =?us-ascii?Q?FBSfjSHFDCSvwx3HmiwGx3pQdFRXHtzOciYZAH7pFk2P9ipJ5tEAKwN9EuNz?= =?us-ascii?Q?FFp7a94+6ZBUZ3Uka0TshlGSsTpy5jv+JfWBCM5pSwy4HC0mkC/ugBXG3aQW?= =?us-ascii?Q?CY3NLPIWcjwrRHNGI5mgKpWrqyIeSekxXIJHM2HKsQyz/l2KIwppquyez1iE?= =?us-ascii?Q?Mb+ecFxUdTf+qp5WxM+y5NgvzXc84XOu9i8G4Zh2EttI4+8fe0Gdp+WPRKB6?= =?us-ascii?Q?USKeRVryku/KPVDRDV0DrpdhcWH/Ip5Lea/ar7MI55zmJ8eNvS7NcT2XWXV5?= =?us-ascii?Q?vPh6k9BUt3MuT1vM2k+wAMypm/Tt+ri3aL9FZ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q?x/HgYHpa94+i2OBcrliBjYNlHWePjQKuZEb7jhg6dYcvPWp5vUdzke96W8Tl?= =?us-ascii?Q?K1LZbcfSgsu3zSNN1M61uj6cD3XPf2uhbXVeI8B+ghhB75LKKvPUB4simbh1?= =?us-ascii?Q?gbHLgc4UK7StUx4VDsvrKEofotEYEEFN1xslvUIdXbkbqrVn2j4uNQSxW9PC?= =?us-ascii?Q?dw/2kCIhNU4OWJy30l8/5QN9xCxChz1NyUVQb3hxyJwiRuQ6vVRqUKM8VY0c?= =?us-ascii?Q?wMsmywxacng+4/o+PWyiBvmr3BaiM0G67+SCcKjR?= 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: 055ad9b6-fb8e-4403-d7f4-08db375ed455 X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Apr 2023 11:54:23.1530 (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: cGeOb1m51p1TPdj4A0BHeKRPY9cW9947EInS7KG4STY/5zn8+bTsHc1+8wy48UrK2fopRUoIGnk7GFx2AicEDQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR11MB7248 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 April 7, 2023 5:41 PM, joeyli wrote: > > Hi, Joeyli > > ASSERT is triggered in DEBUG version. In RELEASE version ASSERT is skip= ped > and an error code is returned. So system will not hang. > > So another solution is simply remove the ASSERT. Then an error message = is > dumped out and system continues. > > >=20 > Ah! You are right. I forgot that I enabled debug mode. >=20 > > @Gerd Hoffmann @Tom Lendacky @joeyli What's your thought? > > >=20 > Removing ASSERT in debug mode can workaround problem. Looks that it just > hide a problem. @joeyli Based on Gerd's suggestion, there is another patch to fix this issu= e. If you can test it in your side, that will be great. https://bugzilla.tianocore.org/attachment.cgi?id=3D1353&action=3Ddiff=20 Thanks Min