]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: arm64: Drop sort_memblock_regions()
authorGavin Shan <gshan@redhat.com>
Tue, 11 Mar 2025 04:37:18 +0000 (14:37 +1000)
committerMarc Zyngier <maz@kernel.org>
Thu, 8 May 2025 10:29:45 +0000 (11:29 +0100)
commit00b0300cf1e265b8f3fa57106b940eff6f388d57
treed37eb5dc462ddb02e1c2e45915e86b3025dcee11
parente0ccc45b056d626d4b271820faeedf3837337ceb
KVM: arm64: Drop sort_memblock_regions()

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.

Signed-off-by: Gavin Shan <gshan@redhat.com>
Reviewed-by: Quentin Perret <qperret@google.com>
Acked-by: Will Deacon <will@kernel.org>
Link: https://lore.kernel.org/r/20250311043718.91004-1-gshan@redhat.com
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/pkvm.c