> On Nov 4, 2019, at 9:24 PM, Ashish Singhal <ashishsin...@nvidia.com> wrote:
> 
> Hi Ray,
> 
> I did not see any example with which one can tell BDS not to enumerate a boot 
> option. Can you please point me to an example where a protocol (Block IO, 
> Simple FS or Load File) does not get enumerated as a boot option?
> 

Ashish,

Are you asking for example code, or reasons that you would not want to 
enumerate something as bootable? 

Most likely if you want to have a platform policy to add 
gEdkiiSkipBmAutoEnumerateProtocolGuid you are going to need an EFI Driver Model 
driver to add it to the handle based on some platform policy. This is the only 
way you can filter based on things getting connected at different times during 
boot. 

Thanks,

Andrew Fish


> Thanks
> Ashish
> 
> -----Original Message-----
> From: Ni, Ray <ray...@intel.com <mailto:ray...@intel.com>> 
> Sent: Monday, November 4, 2019 7:42 PM
> To: Laszlo Ersek <ler...@redhat.com <mailto:ler...@redhat.com>>; 
> devel@edk2.groups.io <mailto:devel@edk2.groups.io>; Ashish Singhal 
> <ashishsin...@nvidia.com <mailto:ashishsin...@nvidia.com>>; Wang, Jian J 
> <jian.j.w...@intel.com <mailto:jian.j.w...@intel.com>>; Wu, Hao A 
> <hao.a...@intel.com <mailto:hao.a...@intel.com>>; Gao, Zhichao 
> <zhichao....@intel.com <mailto:zhichao....@intel.com>>
> Cc: Kinney, Michael D <michael.d.kin...@intel.com 
> <mailto:michael.d.kin...@intel.com>>
> Subject: RE: [edk2-devel] [PATCH] Support skipping automatic BM enumeration
> 
> + Mike
> 
> With the UEFI driver model, if a device is not needed by booting, it can skip 
> the connecting.
> Then I do not see a need of the new protocol.
> 
> Thanks,
> Ray
> 
>> -----Original Message-----
>> From: Laszlo Ersek <ler...@redhat.com>
>> Sent: Thursday, October 31, 2019 6:15 PM
>> To: devel@edk2.groups.io; ashishsin...@nvidia.com; Wang, Jian J 
>> <jian.j.w...@intel.com>; Wu, Hao A <hao.a...@intel.com>; Ni, Ray 
>> <ray...@intel.com>; Gao, Zhichao <zhichao....@intel.com>
>> Subject: Re: [edk2-devel] [PATCH] Support skipping automatic BM 
>> enumeration
>> 
>> +Ray, +Zhichao
>> 
>> (although, the actual patch seems to be missing from the posting)
>> 
>> Thanks
>> Laszlo
>> 
>> On 10/30/19 04:47, Ashish Singhal wrote:
>>> Right now, any and every handle with a BlockIO or SimpleFileSystem 
>>> or LoadFile protocol installed on the system is used to enumerate BM 
>>> automatically. There may be cases where on a platform, some of these 
>>> are not desirable to be enumerated automatically. This patch adds 
>>> support for skipping this automatic enumeration if on the same 
>>> handle, a new protocol defined as EdkiiSkipBmAutoEnumerate is found 
>>> to be
>> installed.
>>> 
>>> Ashish Singhal (1):
>>>  MdeModulePkg/UefiBootManagerLib: Support skipping BM enumeration
>>> 
>>> .../Include/Protocol/SkipBmAutoEnumerate.h         | 25 ++++++++++++++
>>> MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c   | 40
>> +++++++++++++++++++++-
>>> .../Library/UefiBootManagerLib/InternalBm.h        |  1 +
>>> .../UefiBootManagerLib/UefiBootManagerLib.inf      |  1 +
>>> MdeModulePkg/MdeModulePkg.dec                      |  3 ++
>>> 5 files changed, 69 insertions(+), 1 deletion(-)  create mode 
>>> 100644 MdeModulePkg/Include/Protocol/SkipBmAutoEnumerate.h
>>> 
> 
> 
> -----------------------------------------------------------------------------------
> This email message is for the sole use of the intended recipient(s) and may 
> contain
> confidential information.  Any unauthorized review, use, disclosure or 
> distribution
> is prohibited.  If you are not the intended recipient, please contact the 
> sender by
> reply email and destroy all copies of the original message.
> -----------------------------------------------------------------------------------
> 
> 


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#49953): https://edk2.groups.io/g/devel/message/49953
Mute This Topic: https://groups.io/mt/39747302/21656
Group Owner: devel+ow...@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to