Re: [edk2] ReinstallProtocolInterface to notify filesystem driver?

Subject: Re: [edk2] ReinstallProtocolInterface to notify filesystem driver?

From: Andrew Fish <afish@apple.com>

To: edk2-devel@lists.sourceforge.net

Date: 2014-05-29 20:26:49


On May 29, 2014, at 11:57 AM, Laszlo Ersek  wrote:

> On 05/29/14 17:22, Andrew Fish wrote:
> 
>> Because this is obsolete EFI 1.0 behavior. Per UEFI 2.4
>> ReinstallProtocolInterface() 
> 
> Ah, thanks for the reference, I wasn't aware that an internal
> uninstall/install/connect triple was performed.
> 
> However, I think we may have found a confusing typo here (your quote is
> faithful and the spec needs the update):
> 

I filed a bug against the spec. 

Thanks,

Andrew Fish

>> 
>> EFI 1.10 Extension
>> The extension to this service directly addresses the limitations
>> described in the section above. There may be some number of drivers
>> currently consuming the protocol interface that is being reinstalled. In
>> this case, it may be dangerous to replace a protocol interface in the
>> system. It could result in an unstable state, because a driver may
>> attempt to use the old protocol interface after a new one has
>> been reinstalled. Since the usage of protocol interfaces is now being
>> tracked for components that use the OpenProtocol() and CloseProtocol()
>> boot services, a safe version of this function can be implemented.
> 
> ... OK thus far...
> 
>> When this function is called, a call is first made to the boot service
>> InstallProtocolInterface().
> 
> Right here -- I think the first call must be to
> *Un*installProtocolInterface(). That would be consistent with:
> 
>> This will guarantee that all of the agents [that] are currently
>> consuming the protocol interface OldInterface will stop using OldInterface.
> 
> Thanks,
> Laszlo
> 
> ------------------------------------------------------------------------------
> Time is money. Stop wasting it! Get your web API in 5 minutes.
> www.restlet.com/download
> http://p.sf.net/sfu/restlet
> _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/edk2-devel


------------------------------------------------------------------------------
Time is money. Stop wasting it! Get your web API in 5 minutes.
www.restlet.com/download
http://p.sf.net/sfu/restlet
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel