From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mx.groups.io with SMTP id smtpd.web08.20550.1639447855364025897 for ; Mon, 13 Dec 2021 18:10:55 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@intel.com header.s=intel header.b=asfcKPnk; spf=pass (domain: intel.com, ip: 134.134.136.126, mailfrom: jiewen.yao@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1639447855; x=1670983855; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=A7q8spiPpQ6dpczCqyOvuEfk0usuO/wgO/kIbSFv8wE=; b=asfcKPnkj8lKAcY2LWhn+NHe0nUUdEu84PCQd8WE5RkA8MySX0fLjmnT p0qBMx/ClyNb79zH+r6Qk29bX6/A6c89ARpOuJe7gNH7tKyyndHkp1S9b SOGMmlt0MPARVbryAx2cRF0/rPIj5vawI8y7kcQyVOKHJp6GbpegXN+KL YbiHQzhh2zutOQb6NEcHV1D95fzKUhARdbnwbdSwu8iwF12Fv9BNYmLrL JN16CI8EuLUJvByffbiUC8A4bLt+uSw2VFKiH95to4Phzq4uOpM7AvFfw u2cln8scOx3rfTIz704befwOVztJNghLmJvjIxPbZxkWhCJ85MsjNIbYU A==; X-IronPort-AV: E=McAfee;i="6200,9189,10197"; a="225738504" X-IronPort-AV: E=Sophos;i="5.88,204,1635231600"; d="scan'208";a="225738504" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Dec 2021 18:10:54 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,204,1635231600"; d="scan'208";a="609390477" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by fmsmga002.fm.intel.com with ESMTP; 13 Dec 2021 18:10:54 -0800 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Mon, 13 Dec 2021 18:10:53 -0800 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Mon, 13 Dec 2021 18:10:53 -0800 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.2308.20 via Frontend Transport; Mon, 13 Dec 2021 18:10:53 -0800 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.2308.20; Mon, 13 Dec 2021 18:10:53 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZTklzfcAK+XBZNv5zHp5oSiRA4OFihM51v6y0vspWwjuJ6iwMtTq2EK3i9zLTJgUHHX9e1EqXZhk02VuTt8wd6/wm95CLfV95DAuOVw0UzMbjXOctkJNTC3EgKite5p2gtg80E6aFjVCO6DA1MCGBR00lpbVjUd4X5yAMFSXd0VT1gxdOPdtblYeETtBtukmBOOBGkQHu7T1G0ptGwLInAI8ht2OfpUnwQUoI6ALgZrHNWkaGkooTJhDZe0tp53xW37WyvmYhX8bjYupVeSkVGlTi919GtK5/rg9RTXMJAz61sRBAzDAq1N5bzWecQgFzW/A1zHV1ZsQFcF8OZn3BQ== 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=wPWz1fzToQOCtENMQQg7J8fp/WHq8WsPhdcmPeAFVww=; b=M4v6hUnaAf7xepifwn1R2Xwo1WwTmvvCNOtxoBWA7L//GmghnXs/ECeO4RaqmfIB+pyXWR82l2ao9f6BPJ5T1WJ6j+SYNHixkHfQkMTVXHXMsQJNWls8rsFQGrkppmctLCspOqZvL6ixsgPtnH8mk6SrvNY08jfGEEMzdQKhNI/H4nq6sqmTqR36hKnF0EX6x5RO0y+K4kcx/6D1g+fbaEXTmw2wD0sKQUoMsgIBIHvVM8Q/iYBaGe+3wqeJD0nTIPx0fOcRBpwrewEmovuVW82IMZSSo3ngL+O2GKEWTPZIu+2btFvAH6icceoxG79iSp92hZvXuDTPYzcpWedEMg== 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=wPWz1fzToQOCtENMQQg7J8fp/WHq8WsPhdcmPeAFVww=; b=gL94cO5woaFXPoxg7X0OxP2yzULJRpeL+2gGDEtMN3/5H1YghmC2CSi0UF3G5q3zAfeo+9Mc0+cj84VfeNE72NDAXukX4i08vGQXcgzz2cLtVHdkfvSuVrN6JEA0sgCLZOMjk1TbLQXyGE/E4jqq3lxr2VzBbGtriXrmdnysrLI= Received: from MW4PR11MB5872.namprd11.prod.outlook.com (2603:10b6:303:169::14) by MW3PR11MB4700.namprd11.prod.outlook.com (2603:10b6:303:2d::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4778.17; Tue, 14 Dec 2021 02:10:50 +0000 Received: from MW4PR11MB5872.namprd11.prod.outlook.com ([fe80::447f:7fbc:72f5:fbae]) by MW4PR11MB5872.namprd11.prod.outlook.com ([fe80::447f:7fbc:72f5:fbae%5]) with mapi id 15.20.4778.012; Tue, 14 Dec 2021 02:10:50 +0000 From: "Yao, Jiewen" To: Brijesh Singh , "devel@edk2.groups.io" CC: James Bottomley , "Xu, Min M" , Tom Lendacky , "Justen, Jordan L" , Ard Biesheuvel , "Aktas, Erdem" , Michael Roth , Gerd Hoffmann , Rebecca Cran Subject: Re: [PATCH 1/1] OvmfPkg/VmgExitLib: Fix uninitialized variable warning Thread-Topic: [PATCH 1/1] OvmfPkg/VmgExitLib: Fix uninitialized variable warning Thread-Index: AQHX8FkYECbityo96UymUeX0fk099qwxPt7g Date: Tue, 14 Dec 2021 02:10:50 +0000 Message-ID: References: <20211213193839.143953-1-brijesh.singh@amd.com> In-Reply-To: <20211213193839.143953-1-brijesh.singh@amd.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-version: 11.6.200.16 dlp-product: dlpe-windows dlp-reaction: no-action 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: e21cfa54-8502-47fa-14a0-08d9bea6f35f x-ms-traffictypediagnostic: MW3PR11MB4700:EE_ x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:101; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: gyLWv/pcwgPIEMIGpQT/UpAjrE8br8nntdfkD+mXWEVs3JSplBVzedGi3I7NyGwi46ER0Jf/Z/C8a9BK4hPzvz989zOtASLBRwOI6J6ULK/cJzmkCltf8QobcCofDt1OUumvcSfb6QnY6vyCkRnq8MAPjvJNOcIwfhC5bWMCzaREIDxQXIsizKC36tut+TbJQjShKqEj0FXPxuKFHkBDPf2LUan5w34fEmo0pu+16WsVxlisSTw5d4lxo2HFesBHaCgBGJMu4OP6d/7GuG+L2rA4ETDWA50GXfp++q3hB1XL7qoQ8QlaJirJKsm6LYawid6oweZ1ZesC7mYbns5KJeH75T1NSwPKWcs3xCkCxgS2KBmstbul0CUEqw9PSZMkggNwZUbzxzajReBS7b4nEsjKJC064Gyb4T4vrgquecG5nkFIUeBk35qXBus9+PEtY3UzfB5KmjMQGNr6hSEnT6cmipMdafR1nc0IT8c0y9crYxgOP4SHeqpTm+H1j0e4QQ/XEaCBZrba4nxf8zdW7x3DQPYg4ezfxDWJYxXzk182kGHxckTY/l2u/dg0XoH6KkbWngceVXK4Ld3JztTBbf5M+sytn3ETtpW1XjJ8tFncEqjiFuBxgUnhyq04SVy9YB3KNvCxrWb94amtb9jEtg2cbvT81n8PAKA+G3viObf89kPu1uoSYWPbi8K8TKEyxBycyAgQ8jsF9kU3D7r5RA== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MW4PR11MB5872.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(366004)(38070700005)(83380400001)(508600001)(38100700002)(8676002)(7696005)(82960400001)(55016003)(2906002)(33656002)(54906003)(110136005)(9686003)(316002)(86362001)(26005)(6506007)(8936002)(52536014)(53546011)(5660300002)(71200400001)(4326008)(76116006)(66476007)(66946007)(66556008)(66446008)(64756008)(186003)(122000001);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?uNG9LnsS1YBrTuRPt+aZh68VK1vnZLlJZDjZbuuphcgh4Q3LfsN5HLAOYkr9?= =?us-ascii?Q?WB2F7TnZfjlJ1JOI2/mxqGYPj4BqVVo5JkDN1m0lotIVm1bxbziWlJPBY6Hd?= =?us-ascii?Q?yiRER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?= =?us-ascii?Q?JFon8BA9kMp+0tBFl4j+pkCtgbOGLj3zqNoczPWBsoEZZSvTaH7IGsKi9kCV?= =?us-ascii?Q?bkxkcftc8WoRBkfoNUaePl5UKVvBJLC5PCQqIsMK6lb0OL8SzHA8OfPAAhJt?= =?us-ascii?Q?nAaQiTTQDfWYmoqxjJ8hsHrRO0VPWhMHM6g0T/2QQyFwGTePnjiWv1X9BTC3?= =?us-ascii?Q?CUb8t5hEeg8QtQUjK6cJNBBoZClC/LOnPdN/OXjsQ82WxBN5OZjPIlF8cQh2?= =?us-ascii?Q?hyVUu4sC7KRB6c6nvDQQrUspvf2/Gjp+nVa6zV00u5zLLef+SgB/Q6AvJEEM?= =?us-ascii?Q?5PZOCdXBIdu4KYfrFPN5eJXBu0cu8ju7Qk08UR/Tt5VnAs3mlLDaXVE1N4i5?= =?us-ascii?Q?WXcNg06DwJDKBTi9XEvTraWaU8IBNsn1R2f+tv+6yPXjop4+xk5+6w/iEvAA?= =?us-ascii?Q?5/+MLn3YTIG3BHovXteubq97GZ9mqF6ObYadg594rwBT6KWsFLxzkuh0beau?= =?us-ascii?Q?EIOjDYrxcaraos21uLjQj3ZJ34TofdnlfGbzW8TYyrPLaQxUxvrI1A/pRvQB?= =?us-ascii?Q?QWKa4oz/J97a+ZM/O6OZ09MaW+keexmWhfWlKWi/mp4bNNKiU4GXvx23SVBh?= =?us-ascii?Q?I40r8TamdMpZztygunxlSyk=3D?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MW4PR11MB5872.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: e21cfa54-8502-47fa-14a0-08d9bea6f35f X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Dec 2021 02:10:50.5798 (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: l509Inn66Vi88RhzHRG8EGk7nAyibFsKF0DfBeVyrIR3oe84Uki6l5NtLb9Zt0VF7ldP7XtYDIwDfy4C2Z1HLA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW3PR11MB4700 Return-Path: jiewen.yao@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Jiewen Yao > -----Original Message----- > From: Brijesh Singh > Sent: Tuesday, December 14, 2021 3:39 AM > To: devel@edk2.groups.io > Cc: James Bottomley ; Xu, Min M ; > Yao, Jiewen ; Tom Lendacky > ; Justen, Jordan L ; > Ard Biesheuvel ; Aktas, Erdem > ; Michael Roth ; Gerd > Hoffmann ; Brijesh Singh ; > Rebecca Cran > Subject: [PATCH 1/1] OvmfPkg/VmgExitLib: Fix uninitialized variable warni= ng >=20 > The XCODE5 reported the below warning >=20 > OvmfPkg/Library/VmgExitLib/VmgExitVcHandler.c:1895:12: note: uninitialize= d > use occurs here > Compacted > ^^^^^^^^^ >=20 > Initialize the 'Compacted' variable to fix the warning. >=20 > Fixes: d2b998fbdca4 (OvmfPkg/VmgExitLib: use SEV-SNP-validated CPUID valu= es) > Cc: James Bottomley > Cc: Min Xu > Cc: Jiewen Yao > Cc: Tom Lendacky > Cc: Jordan Justen > Cc: Ard Biesheuvel > Cc: Erdem Aktas > Cc: Gerd Hoffmann > Cc: Rebecca Cran > Cc: Michael Roth > Signed-off-by: Brijesh Singh > --- > OvmfPkg/Library/VmgExitLib/VmgExitVcHandler.c | 1 + > 1 file changed, 1 insertion(+) >=20 > diff --git a/OvmfPkg/Library/VmgExitLib/VmgExitVcHandler.c > b/OvmfPkg/Library/VmgExitLib/VmgExitVcHandler.c > index a40a31f7c275..ff367411cc59 100644 > --- a/OvmfPkg/Library/VmgExitLib/VmgExitVcHandler.c > +++ b/OvmfPkg/Library/VmgExitLib/VmgExitVcHandler.c > @@ -1872,6 +1872,7 @@ GetCpuidFw ( > UINT32 XSaveSize; >=20 > XssMsr.Uint64 =3D 0; > + Compacted =3D FALSE; > if (EcxIn =3D=3D 1) { > /* > * The PPR and APM aren't clear on what size should be encoded in > -- > 2.25.1