Re: [PATCH 2/2] KVM: arm64: Minor optimization of range_is_memory

2021-07-29 Thread Quentin Perret
On Wednesday 28 Jul 2021 at 15:32:32 (+), David Brazdil wrote: > 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. S

[PATCH 2/2] KVM: arm64: Minor optimization of range_is_memory

2021-07-28 Thread David Brazdil
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 checki