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.web09.5126.1663759463602141411 for ; Wed, 21 Sep 2022 04:24:23 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=P8JGXuu8; spf=pass (domain: intel.com, ip: 192.55.52.43, mailfrom: ken.lu@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1663759463; x=1695295463; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=rgt9t0RVbxI20jTxyxrq4tsDncefQKEsaFYIh20RPwU=; b=P8JGXuu8OGYFJxKp+BRMVw7uPRkAUA90vFWY9pYU4qzH+WJwET/u6HeD 27TfvCAGh3bbFjGluIF7Mcy/TA0sDNemNmKCaETCk9b1PoLOPQ2OKRdi2 /eq9rg/mr06PCugUtiEzCAZO74/yi7rNqzhH+pXFpzYgaXnuSURmOiVxH Nz3b5pf3i6TW9qyRwsx9mYKkZUCyv3C6mydvPUCP752BfpY3vNYYZCwwK gt2Y9oQj0RFq/dHEJ3sBvECF6cxg7Pcy99p90TAeZ0qhdw3pwyW6jJHlH ktceItZFPuvNIAhP0S9pMGEkXKJRFvN0KLtWBTM5DE8t0XLLVCBhWHHQg g==; X-IronPort-AV: E=McAfee;i="6500,9779,10476"; a="386259755" X-IronPort-AV: E=Sophos;i="5.93,333,1654585200"; d="scan'208";a="386259755" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Sep 2022 04:24:14 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,333,1654585200"; d="scan'208";a="723164173" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by fmsmga002.fm.intel.com with ESMTP; 21 Sep 2022 04:24:14 -0700 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Wed, 21 Sep 2022 04:24:13 -0700 Received: from orsmsx607.amr.corp.intel.com (10.22.229.20) by ORSMSX611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Wed, 21 Sep 2022 04:24:13 -0700 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx607.amr.corp.intel.com (10.22.229.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31 via Frontend Transport; Wed, 21 Sep 2022 04:24:13 -0700 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.168) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2375.31; Wed, 21 Sep 2022 04:24:13 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HFT0+xAVArxbO0e+L7zYJMzJF+UPFpCREnpURprQ1zsrl/jC9CJ64NkuI+HUbuy8K8d/MIXwFscM087XM17iwuHWStlG9Z8MnZdqu0qOf/51d8CNmuUmNKtL9X7XEaVk6zCQDgCgmKzk2ZiAkUz2FKgkhNFebLLOQ4YKU9+uojwidmtlqZ2boWnOxlbmVIpQP+fSkuB8GuQald+Nvaeg9XneBJzcsNRJHo+DLaEaR1I5kH54j+vk/b183UbMi0x2S5u1Pxlj055cGeq22sGz68QIoyzDgRq86cbGFVJ1U5Hyk0FSnW4ZrAnTieyclrgSIGHZo+/8ikun25QfCOoQQA== 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=S3M3lS39OqkIPTu2W8vBuyAKZHZXfQZG9bTaEdkRW7s=; b=G5yehkqdDhmxnn008I0hIAWZNad7faN7i9u1bLNk7NNlu7cpFZnX08+mDtI14rIoxWvErVjZWFsIic2Tj7lMBuSVeiSOXdbJbe8jrA1lZfBy7kyVKhF1Aetg2pMQOsjXMK9RNd/NB9ohNxBQIEyQHevs3+IhyEqst2Un9m4qiMSLQwcOEwd7sWA+Kxp9CWtGqBwCXacljCFEXDUkvI47GQk0VV08Mh52xBMK2lgSYlgzVuxC3zuKyBtlsq/3zN2Q23fx4PJiCrKNsMzv56fIq1o9UWrx7SeOArMxyTwe2xg2zC5aH8ECmnHB9qT2Y0NiRHvqy9pDXBNKluOFYMwUtQ== 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 BN8PR11MB3666.namprd11.prod.outlook.com (2603:10b6:408:8c::19) by PH0PR11MB5029.namprd11.prod.outlook.com (2603:10b6:510:30::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5654.16; Wed, 21 Sep 2022 11:24:11 +0000 Received: from BN8PR11MB3666.namprd11.prod.outlook.com ([fe80::c533:332c:f186:69b3]) by BN8PR11MB3666.namprd11.prod.outlook.com ([fe80::c533:332c:f186:69b3%4]) with mapi id 15.20.5654.014; Wed, 21 Sep 2022 11:24:11 +0000 From: "Lu, Ken" To: Gerd Hoffmann CC: Ard Biesheuvel , "Xu, Min M" , "Daniel Kiper" , "devel@edk2.groups.io" , Ard Biesheuvel , "Aktas, Erdem" , James Bottomley , "Yao, Jiewen" Subject: Re: [edk2-devel] measurement to command-line/initrd for loading kernel via -kernel option Thread-Topic: [edk2-devel] measurement to command-line/initrd for loading kernel via -kernel option Thread-Index: AdjKQCUJCucPSYUVRCu0arGCE/7NLwBHVXAAABlq2EAADIUjAAA+F5kQAAGJnIAAAHgAMAABjfaAAAARiTAAI2ghgAAIjADA Date: Wed, 21 Sep 2022 11:24:11 +0000 Message-ID: References: <20220920132027.y4yz4ugghpilqplx@sirius.home.kraxel.org> <20220920141823.byhnbirfnl777jql@sirius.home.kraxel.org> <20220921071409.5oziya6kcfvkkkp7@sirius.home.kraxel.org> In-Reply-To: <20220921071409.5oziya6kcfvkkkp7@sirius.home.kraxel.org> Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.6.500.17 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: BN8PR11MB3666:EE_|PH0PR11MB5029:EE_ x-ms-office365-filtering-correlation-id: 1235e807-a18b-4c45-9e6b-08da9bc3ce92 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: 6gIwsDfa0SQWyzcYqqx2v0NVmFEDoUZ5H/ZNgVYcb4PY+u8HicS8+/lZ/rv/ohFhYAsWPfpy1VKDuj+7w8qoNcdyKQ+epTf3lN1qvF5pXnD5lVtVawMLxOQZSQ3ec8CluqosMtIA7x+hp5IUJjSYaItPksXODolfp3sKGnFT0EmbHn/DQVtxtOh+STvNj6rYLfoXAxFcs/NvpDXrq5lH2helm1wPTKPbI1p9XJLR07z3L+IhwrLTlSqr3T/1LgJHGSeIXYh1CS6Rt871JAymZr0ksGjea7C1f36W2l9Iangrjt4wHdP4O1//pICPVFc8kByKbOQekG4fAIBreiPtG3c4t3wIXyQnr+rltbzjVx8VgBOhSc964lmKXQXDUzQt2R7aHm8032H4B3afb9mpoP5JCp8vYeVyyBgaWpvWQ1qKDB8XXtqSVEgw6oZsdfC9TtjXQTCTK0C5tKlxgD5mABNd3ZTcATzEF8XE3o1OQsUmyGPSau+aH+qkZqYf/QnR1Ut9lyAE3+2ua2O6lLprZ60uEVu/EqELvprTXFdtOsjR/CQ3/DpjXqOTpnCVfiW92uHyKEiX4H+68aw3IF4nH+Wio/TF/+ZkwxeAcv4EkBifryYkDp3hrk/ZGy0aMyLyaSqNKqBJ/fhCzK3COgvCZw8DXWxefdBQnrhW2kv0vihjubCPhqH2tpJVeN1lYlwiS4OVYIIUZ6cUcq7aiefTbutCP7JDU/Alqj4n5NNLTd3rW9pj181TbKy9m/4W3yJ2emj5vLuA0u6BPcwkAciABA== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BN8PR11MB3666.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(366004)(346002)(136003)(396003)(376002)(39860400002)(451199015)(316002)(55016003)(478600001)(107886003)(66446008)(122000001)(76116006)(86362001)(66946007)(66556008)(66476007)(54906003)(6916009)(4326008)(64756008)(38070700005)(8676002)(4744005)(38100700002)(2906002)(6506007)(7696005)(9686003)(26005)(5660300002)(41300700001)(71200400001)(8936002)(82960400001)(186003)(52536014)(33656002);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?GS3IuJWd9ihSIttjrTZW5OtYzLyxkkERcn7JoAUdD0J6VaFET3EQn6XVj3A8?= =?us-ascii?Q?QUaqO/srl0dhvZ+lhMpS5NeYuUvgHqaa3r9isWNB3YpI/iMlH+cxpk7Ecgfj?= =?us-ascii?Q?cBg2MHjfTlfR1JUWEBuYy8Im8xNslutebyjvbEi/5MNuvwZJM8v+WD4gmvCF?= =?us-ascii?Q?NAfXRAsCCaz2AcurNETb20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Q?0W/9ujmow1ins/dsZk8CpDokEc3FCZIcJ92AXqzQFyp7Ep89WhlIF9HeSqN6?= =?us-ascii?Q?z/h1JG6Dsm31cVVEdl5xw4fXISHtfslQkoFsZO2DxpYHwwLsEl47WxtzoaUv?= =?us-ascii?Q?cNObrn9y3EaOJ2s/2Bl0voXy2EeOEA26qvXTuIUnUpJ5L08mJ9ApZFQe3kCV?= =?us-ascii?Q?HCEe13m3jLrMarLRC8/8GMCrrJWACpM53D25tCicOGNobnDFAiJvANwrXo8M?= =?us-ascii?Q?7y5pYzEdIiw0LvP9uksm23G3dmjyqSh0+2FVT3Pg33V123m8vfevDZCWQoup?= =?us-ascii?Q?ugNwhLUOYit1KspDQf+8EQ31BBAcWNvrRdJm/lSl3aLKfbMvYuMXR+fP7Kt1?= =?us-ascii?Q?ZxYp7qbmjWQRKYQA9iuv29/E1GWw6kABWcmm70mDlTmR5rj3WEgil6lb4oDK?= =?us-ascii?Q?UWH8NjLct3Rkn6Z63oHcXqyZ70OnclOOBy+jpK6m6D0OVE9yjH/wbnA/0J+I?= =?us-ascii?Q?fLuwmbTFTsl24Rt/xSQcAfVZmUHE9LL+XyXgH6wX?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BN8PR11MB3666.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1235e807-a18b-4c45-9e6b-08da9bc3ce92 X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Sep 2022 11:24:11.2364 (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: AUy5MHg+dAeiIo62SQOEjIz+hfH8KfooB1OLi/KMEitd8FbW6uix2BCXr86mXZ5BX/XK0/HhSTCN3T+KC71m6A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR11MB5029 Return-Path: ken.lu@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable >=20 > > But either in GenericQemuLoadImageLib, it can do measurement for > command line and initrd, correct? >=20 > Yes, it could. But why given that the linux kernel efi stub measures any= way? If the final decision is the measurement should be done by efi stub in Linu= x kernel. Do we also need remove today's measurement in Grub (I have submit= ted some patch for TDX in grub...)? According to Bottomley, the same measur= ement should not be done twice. Or only the one who use GenericQemuLoadImag= eLib, will give the Linux kernel efi stub for measure? I hope the final decision could be a consistent approach across direct and = grub boot, then we can follow. >=20 > take care, > Gerd