From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 7422121D492E3 for ; Thu, 7 Sep 2017 15:09:22 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id A2F2E7E426; Thu, 7 Sep 2017 22:12:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com A2F2E7E426 Authentication-Results: ext-mx03.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx03.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=lersek@redhat.com Received: from lacos-laptop-7.usersys.redhat.com (ovpn-120-54.rdu2.redhat.com [10.10.120.54]) by smtp.corp.redhat.com (Postfix) with ESMTP id D90FF60BEF; Thu, 7 Sep 2017 22:12:12 +0000 (UTC) To: Andrew Fish , "David F." Cc: edk2-devel@lists.01.org References: From: Laszlo Ersek Message-ID: Date: Fri, 8 Sep 2017 00:12:11 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Thu, 07 Sep 2017 22:12:13 +0000 (UTC) Subject: Re: Boot####, Key#### X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Sep 2017 22:09:22 -0000 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit On 09/07/17 22:32, Andrew Fish wrote: > >> On Sep 7, 2017, at 1:01 PM, David F. wrote: >> >> Hi, >> >> Implementing support for UEFI inside different OS environments, I >> don't see anything in the spec about being able to find the various >> Boot#### and Key#### values without trying 0-0xFFFF which is slow >> (takes 10+ seconds). What's the better way? >> > > Usually there is another variable that implies the Boot#### value that is in use, like BootOrder. There's also GetNextVariableName() -- iterating through, say, ~50 variables that all exist is likely faster than querying ~65500 that don't. Laszlo