[PATCH] KVM: arm64: Drop sort_memblock_regions()
Quentin Perret
qperret at google.com
Thu Mar 13 12:08:20 PDT 2025
On Tuesday 11 Mar 2025 at 14:37:18 (+1000), Gavin Shan wrote:
> Drop sort_memblock_regions() and avoid sorting the copied memory
> regions to be ascending order on their base addresses, because the
> source memory regions should have been sorted correctly when they
> are added by memblock_add() or its variants.
>
> This is generally reverting commit a14307f5310c ("KVM: arm64: Sort
> the hypervisor memblocks"). No functional changes intended.
I think this was originally introduced in an early version of the code
where the reserved regions were also registered, hence requiring
sorting. But yes, with the code as it is today I can't see what would
break without it, so:
Reviewed-by: Quentin Perret <qperret at google.com>
Thanks!
Quentin
More information about the linux-arm-kernel
mailing list