From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.81]) by mx.groups.io with SMTP id smtpd.web12.1771.1572947689864132317 for ; Tue, 05 Nov 2019 01:54:50 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=hsS9JnGd; spf=pass (domain: redhat.com, ip: 207.211.31.81, mailfrom: lersek@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1572947686; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Cf9Vqrw1Ost1Bh0W6INbefKWqBJvdwzUg93ej9z9ZC8=; b=hsS9JnGdjPVfMpJSuyRPe+nzMEXgYTqZFzyAXW6hMUAFLZSb24Oya06BM3Vyl/8Np9a4tZ 2MBEBSwJZgoj29ok3tTXfBrRAMdeJ+Pw7eZkwcV3+Gz7r4JmTEjKFfzyPavOFCpfK6misA ae59UBGJtRaPUu1FRNyoaXTQ1W0tzi8= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-397-nxDaYf1TPuqvHgutr5tp5A-1; Tue, 05 Nov 2019 04:54:43 -0500 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id C2CC4800C73; Tue, 5 Nov 2019 09:54:41 +0000 (UTC) Received: from lacos-laptop-7.usersys.redhat.com (ovpn-117-96.ams2.redhat.com [10.36.117.96]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9247F27065; Tue, 5 Nov 2019 09:54:39 +0000 (UTC) Subject: Re: [edk2-devel] [PATCH] Support skipping automatic BM enumeration To: devel@edk2.groups.io, afish@apple.com, Ashish Singhal Cc: "Ni, Ray" , "Wang, Jian J" , "Wu, Hao A" , "Gao, Zhichao" , Mike Kinney References: <1b91c052-f64c-1dca-98ff-a2777afd7f77@redhat.com> <734D49CCEBEEF84792F5B80ED585239D5C34F98A@SHSMSX104.ccr.corp.intel.com> <6766B443-E14A-4F57-984E-5A865FB22CC9@apple.com> From: "Laszlo Ersek" Message-ID: Date: Tue, 5 Nov 2019 10:54:38 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-MC-Unique: nxDaYf1TPuqvHgutr5tp5A-1 X-Mimecast-Spam-Score: 0 Content-Language: en-US Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable On 11/05/19 07:15, Andrew Fish via Groups.Io wrote: > You could also edit any existing variables that point to your Load File t= o make sure they follow the rules you care about?=20 >=20 > It is legal from an UEFI spec point of view for a platform to edit the nv= ram boot variables based on platform boot policy.=20 Good point; for example OVMF and ArmVirtQemu* do this, with the help of QemuBootOrderLib. In essence: - connect a particular set of devices ("ConnectDevicesFromQemu") - if that fails, call EfiBootManagerConnectAll() - call EfiBootManagerRefreshAllBootOption() - register UEFI Shell boot option manually - filter and reorder boot options in a platform specific way ("RemoveStaleFvFileOptions", "SetBootOrderFromQemu") All this happens in PlatformBootManagerAfterConsole(). Thanks, Laszlo