Branch: refs/heads/master
Home: https://github.com/tianocore/edk2
Commit: 9eddbab65042259beb1a75ccdf724996eab9660d
https://github.com/tianocore/edk2/commit/9eddbab65042259beb1a75ccdf724996eab9660d
Author: Zhi Jin <[email protected]>
Date: 2024-02-06 (Tue, 06 Feb 2024)
Changed paths:
M MdeModulePkg/Core/Dxe/Hand/Handle.c
Log Message:
-----------
MdeModulePkg: Remove handle validation check in CoreGetProtocolInterface
CoreGetProtocolInterface() is called by CoreOpenProtocol(),
CoreCloseProtocol() and CoreOpenProtocolInformation().
Before CoreOpenProtocol() calls CoreGetProtocolInterface(), the input
parameter UserHandle has been already checked for validation. So does
CoreCloseProtocol().
Removing the handle validation check in CoreGetProtocolInterface()
could improve the performance, as CoreOpenProtocol() is called very
frequently.
To ensure the assumption that the caller of CoreGetProtocolInterface()
must pass in a valid UserHandle that is checked with CoreValidateHandle(),
add the parameter check in CoreOpenProtocolInformation(), and declare
CoreGetProtocolInterface() as static.
Reviewed-by: Ray Ni <[email protected]>
Reviewed-by: Liming Gao <[email protected]>
Reviewed-by: Michael D Kinney <[email protected]>
Signed-off-by: Zhi Jin <[email protected]>
Commit: 959f71c801b447186413532166d3fb2ad9a590da
https://github.com/tianocore/edk2/commit/959f71c801b447186413532166d3fb2ad9a590da
Author: Zhi Jin <[email protected]>
Date: 2024-02-06 (Tue, 06 Feb 2024)
Changed paths:
M MdeModulePkg/Core/Dxe/Hand/DriverSupport.c
Log Message:
-----------
MdeModulePkg: Optimize CoreConnectSingleController
CoreConnectSingleController() searches for the Driver Family Override
Protocol drivers by looping and checking each Driver Binding Handles.
This loop can be skipped by checking if any Driver Family Override
Protocol installed in the platform first, to improve the performance.
Cc: Ray Ni <[email protected]>
Reviewed-by: Liming Gao <[email protected]>
Reviewed-by: Michael D Kinney <[email protected]>
Signed-off-by: Zhi Jin <[email protected]>
Compare: https://github.com/tianocore/edk2/compare/62b43ec89603...959f71c801b4
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits