aboutsummaryrefslogtreecommitdiff
path: root/lib/test_overflow.c
diff options
context:
space:
mode:
authorDavid Brazdil <[email protected]>2021-07-28 15:32:32 +0000
committerMarc Zyngier <[email protected]>2021-08-20 12:02:36 +0100
commit14ecf075fe5be01860927fdf3aa11d7b18023ab2 (patch)
treec5bfbedf9936a95d253a0dd474cc243fc3084650 /lib/test_overflow.c
parentfb1c16c0aea805500ea62f007a92ea10945e3b63 (diff)
KVM: arm64: Minor optimization of range_is_memory
Currently range_is_memory finds the corresponding struct memblock_region for both the lower and upper bounds of the given address range with two rounds of binary search, and then checks that the two memblocks are the same. Simplify this by only doing binary search on the lower bound and then checking that the upper bound is in the same memblock. Signed-off-by: David Brazdil <[email protected]> Reviewed-by: Quentin Perret <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions