
Small refactor that replaces array of v0.1 function IDs indexed by an enum of function-name constants with a struct of function IDs "indexed" by field names. This is done in preparation for exposing the IDs to other parts of the kernel. Exposing a struct avoids the need for bounds checking. Signed-off-by: David Brazdil <dbrazdil@google.com> Signed-off-by: Marc Zyngier <maz@kernel.org> Acked-by: Mark Rutland <mark.rutland@arm.com> Link: https://lore.kernel.org/r/20201202184122.26046-6-dbrazdil@google.com (cherry picked from commit 82ac62d1658b42392282550078a189ccd3f50214) Signed-off-by: Will Deacon <willdeacon@google.com> Change-Id: I647ba9d5de29a20fea51d57752dbaacc72102690 Bug: 178098380 Test: atest VirtualizationHostTestCases on an EL2-enabled device
14 KiB
14 KiB