From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mx.groups.io with SMTP id smtpd.web12.12022.1663681089791541363 for ; Tue, 20 Sep 2022 06:38:10 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=cxsNE2nK; spf=pass (domain: intel.com, ip: 134.134.136.24, 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=1663681089; x=1695217089; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=sJJUuRSTAjfjYfOoge2F4azgoM6Cn2DWdWYqhQl+kZQ=; b=cxsNE2nKSrb+MjB6rdHfhAfYvsbmHUv92pWOtuwLL9RsLzztNB109fUs ivMMSO4DMcPkmEA60kd2ZMcyvIFMx+Zq4H6sj8nd3WIZS+52g0Wsiw/nq OsGGLSQ5PomPNbFvCb41H06BOaWfau0tf1Ha08IPvlTJtFwiH9k3fmnZ8 BEYOFdST4tZ10US/49mmgXewxHgeeEP+6TKTu+Wdo9eFzzwjFYZ5FiYTs CN1r5E5ExPPYTB9+uzE1melxWOQ4/7ahYJqdN98X9phitUl0QVZEXGr38 1nmcactbyjyiXWe53IzMnfmk/p5Iy7fen9x+FMIqwZhTkssgRcvPpgN+b Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10476"; a="300513895" X-IronPort-AV: E=Sophos;i="5.93,330,1654585200"; d="scan'208";a="300513895" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Sep 2022 06:38:09 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,330,1654585200"; d="scan'208";a="570083283" Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by orsmga003.jf.intel.com with ESMTP; 20 Sep 2022 06:38:09 -0700 Received: from orsmsx608.amr.corp.intel.com (10.22.229.21) by ORSMSX601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Tue, 20 Sep 2022 06:38:08 -0700 Received: from orsmsx609.amr.corp.intel.com (10.22.229.22) 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.2375.31; Tue, 20 Sep 2022 06:38:08 -0700 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx609.amr.corp.intel.com (10.22.229.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31 via Frontend Transport; Tue, 20 Sep 2022 06:38:08 -0700 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.176) 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; Tue, 20 Sep 2022 06:38:07 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LVltvGK+kU/LIvT65qtDmOF82cqRdysOhHrwl6VEQ3SQ1cdRXN3ci5xBJ6BwygghT/dpss0/bG8qgISY6zRvmA30LtRXwj/0lvpiUzoZ6nTJ/IWg/pDFAR3IfiJhttm49691GJ4gLUgFVUfw2HMk6rSeykVveqawSCuyZ1vU0a/zvMNJPbsmhjnX8eWeRGDVz26H/T96BHmphKadIXJEyQOenBtAUptS/xagspvPUN0oSsvZlE9LUX2zHa4OiQorQrdtXHRCBQOZoVgbsoHYAr1fiqk2kJ7psV/oiNYsRuXZPsO9Kwu84/+AIk/d/Eo+ht5my9NkO6Ws6VYYX2l5uA== 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=8ALpKiM+vP8+HkhtZK0lUYL1MvutiSlG6iP0MNmgzV4=; b=itmlfLTY2J6dMCgZIXdxgY4DZksEHJQMg06/PRdbFDmTE7fOmIz6fuJquqSqtgKXes4TA+Lu5DUrfcDOLqFf7EjLYDxLNOVqdvEsjCFKxxKZP7NCQXZhXppIlzMuoEKi33SfJs95BHHShARZBvo/FgErsMdkgNZXBLobENIzJGXr+9sqwUYZLNZBIZlkFZ/UahNNzouLKhqi2uMwJP4ruHOVQY5RHzxKlWC3r1uj4neFEmtv89D0/4WEzHytoGHaC04SUtwbFAKH1HjaGy1lseTu5t9uCINxqIODtGJ8M5REtIGcOOvFZxxxqgEOVAWuGQttVelpZPTSWNR8qIuqHg== 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 DM6PR11MB3674.namprd11.prod.outlook.com (2603:10b6:5:13d::11) by MW3PR11MB4698.namprd11.prod.outlook.com (2603:10b6:303:5a::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5632.21; Tue, 20 Sep 2022 13:38:05 +0000 Received: from DM6PR11MB3674.namprd11.prod.outlook.com ([fe80::a18a:f55b:72b:c4a3]) by DM6PR11MB3674.namprd11.prod.outlook.com ([fe80::a18a:f55b:72b:c4a3%5]) with mapi id 15.20.5632.021; Tue, 20 Sep 2022 13:38:05 +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+F5kQAAGJnIAAAHgAMA== Date: Tue, 20 Sep 2022 13:38:05 +0000 Message-ID: References: <20220920132027.y4yz4ugghpilqplx@sirius.home.kraxel.org> In-Reply-To: <20220920132027.y4yz4ugghpilqplx@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: DM6PR11MB3674:EE_|MW3PR11MB4698:EE_ x-ms-office365-filtering-correlation-id: fed1a82b-931b-4aeb-9b1e-08da9b0d58ab 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: TesB+a4fCzATVhH8PSqQML/oPk61TffvcZr7xyh1fqz54p/XIKMr5oIFcbrOLetnBhFUsYfSp90cZyUDUH9nGVcDu+JIj18MABnlMJom7WqBiCNj7QVbS7iqOfvh6ICQ/2N8AzbvXgH97QNpcAwDPauPDkjm56FuWfYw0XEg+Yfd9jbdldWLalC6EMiMrcERUkmQfjfN19PojyGe6yGDwJ1nW8UMUsXfgUgxrOXBry/8VKXQK9Q7+cxrUUet8pF+rAXtEaFYqa+U7ARrasJBKJDqdr1PN4TFvA2zxZ7qfQ591WYkuKOHtlTw8nsn2V0rmX5fsMEzNEi59BAYwA2hq7RVlTr7oHYrz+IFZUW7sUTyxOZ76bGzDaXc8G4CHcYV37RJ9jGmautpN7BY1iKZhAjMPtl/Qab4O4tOovh3j4A7m4jjCak9r6KOrXRZ27aemKD9FpLXyNH+aAfZfaNytVyrkM7RYdU/Yo+QIbtIPl+6r6m6oszFFJ7PbmqubOnYkdZoz8E/ClhGG1lZWOnOWPpmwKeZxX0cyziwnOQiXZQTHUuWI+hrtbO/w23lb1eKwugp1jrHDV3CLdlDCnn5iwSIcJBrKM51EYhHH78F02jRCsCqeDk4h8pEk5w++FL2mxUC7XHkTCmpZof5kDkPuGzj4EJYsewXq85B0vg7D2pekjVVfbQQdD+EN9BVNHP1C/HKirqBy4czK/LEwxHvkUjQcoXj8EJIXM5LNrBw7bZlaDA+mKl2zHkYmbWus/Qr9cwmllmBogFzVhTYdt4sLw== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR11MB3674.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(346002)(136003)(376002)(39860400002)(396003)(366004)(451199015)(38100700002)(55016003)(38070700005)(8936002)(186003)(2906002)(54906003)(71200400001)(26005)(478600001)(9686003)(33656002)(6916009)(316002)(66946007)(66476007)(76116006)(107886003)(66556008)(66446008)(7696005)(4326008)(6506007)(8676002)(64756008)(41300700001)(86362001)(4744005)(5660300002)(122000001)(52536014)(82960400001);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?67ToZRTtnX02Fa/PqkSkGILcg7oDa9R8jql5Vxu1nQa+XJ+6u04EKx44SuDy?= =?us-ascii?Q?5wbzu/n33nOnBiNUkUfXkvfofBb8cQcbarynbGM5T93HgWV2s8sbKEJM96wI?= =?us-ascii?Q?BwcndxEYkmZUDl9CkQHwKF3WaxY0Dg2z95LvXj0vY69zdouw+wzOvyXC6l7S?= =?us-ascii?Q?dQX1x124lIkT9qWlMql9DdS/xKGP8yip+LJbfBJ7NR/q2VJVIeGRuinpnMnX?= =?us-ascii?Q?h6DphHGijDInHyUuDbDCW7uBk4Fhls3nQXJ+d4QVW9yp5uXJzdGvB9D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YvkBlI20T4sDGiLuG0a3N7xp/7uUVd9TZAY7?= =?us-ascii?Q?SSUx/+hj37F1jrBaIXunoOq8M/nnsTluxR68CvN5hUlOlthZGalat1cYtdi9?= =?us-ascii?Q?Nk2HaxYG1VR+LFtB5YCOdNKIAGsUAaSkj655DEOQA47PdwdkMmekGh3KUF74?= =?us-ascii?Q?Lm/+Q+vM+VuyKihmjddbF5wja1ezKg3ekV38BGIc9lvr02E56s/2VLIBIz/3?= =?us-ascii?Q?r2C3mmR/ANu2G59O/zoDaoZkm4odczoWqzkHJjq/l20HAkJgHFS42ITVc0ua?= =?us-ascii?Q?UKzu5uDv+iPvtXWtX4z3Mc3xxhPl7dIZni2HRKPeP4K1v3vjpHzvFK6jANiL?= =?us-ascii?Q?9cGv8VECTY4WtXbwuVTx83SA/KtCcxhCKu9ulzkSxCKZWX4LXABJT0+NrR4i?= =?us-ascii?Q?668Jyay1DoqkEsIY/NW3OEjHTt3N45xK5fKxOflX?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM6PR11MB3674.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: fed1a82b-931b-4aeb-9b1e-08da9b0d58ab X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Sep 2022 13:38:05.0711 (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: hyVDGt+WFY2xnOHtJckpodL6YfNee8ZBg786QKJB+nudy2Xi0HoNUeIifnEde7eyxbsXtC063mxb/GH/ZH1wRA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW3PR11MB4698 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 > > Hi Ard, I think it better let creator to measure instead of consumer > > to measure like today's implementation in grub[1]. The creator here > > means who load/create it. In direct boot, it is OVMF read kernel > > command line and initrd image. >=20 > Nope. OVMF just places kernel, initrd and cmdline images into a virtual > filesystem (see QemuKernelLoaderFsDxe), so the linux kernel efi stub is a= ble to > load things using the efi file protocol. So there are two types loaders: 1. QemuKernelLoaderFsDxe - this way just put kernel/initrd blob into a F= S for any future's usage, may be continue boot or not. 2. QemuLoadKernelImage, - this is consumed by TryRunningQemuKernel() = - standard Qemu direct boot path I think above two ways are different purpose, so it does not means there ar= e two loaders but only one consumer - kernel boot. >=20 > take care, > Gerd