From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.groups.io with SMTP id smtpd.web08.11786.1663680035344866311 for ; Tue, 20 Sep 2022 06:20:35 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=dJ3lJHvR; spf=pass (domain: redhat.com, ip: 170.10.129.124, mailfrom: kraxel@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1663680034; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=GqQ09xuGg2pxxhRMnmCR5ZPQswvH+HThOyES+PPefdQ=; b=dJ3lJHvR5nSmHAyuhNsUn2PxyPhi27G7hgFRkQvghl6vo9qh37RQhhpZoJ7/ZwmVNxVkCC COkmEMYUqwmoxzjObM/CgIp+7Ou9qwcwb/0ASDrGI/VSjFzfuxhRLHo3yB1D0pKx2ifvNo IvTr69H1te8222Q1dV4WFAQSPl+yU5Q= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-327-o70devv-N02VWJZzb4BXuA-1; Tue, 20 Sep 2022 09:20:31 -0400 X-MC-Unique: o70devv-N02VWJZzb4BXuA-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 613581C0518F; Tue, 20 Sep 2022 13:20:30 +0000 (UTC) Received: from sirius.home.kraxel.org (unknown [10.39.192.24]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 14B6A40C98D6; Tue, 20 Sep 2022 13:20:30 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 8FA80180039F; Tue, 20 Sep 2022 15:20:27 +0200 (CEST) Date: Tue, 20 Sep 2022 15:20:27 +0200 From: "Gerd Hoffmann" To: "Lu, Ken" 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 Message-ID: <20220920132027.y4yz4ugghpilqplx@sirius.home.kraxel.org> References: MIME-Version: 1.0 In-Reply-To: X-Scanned-By: MIMEDefang 3.1 on 10.11.54.2 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, > 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. Nope. OVMF just places kernel, initrd and cmdline images into a virtual filesystem (see QemuKernelLoaderFsDxe), so the linux kernel efi stub is able to load things using the efi file protocol. take care, Gerd