OSDN Git Service

KVM: arm64: Sort the hypervisor memblocks
authorQuentin Perret <qperret@google.com>
Fri, 19 Mar 2021 10:01:35 +0000 (10:01 +0000)
committerMarc Zyngier <maz@kernel.org>
Fri, 19 Mar 2021 12:01:22 +0000 (12:01 +0000)
commita14307f5310c737744641ff8da7a8d491c3c85cd
treedd02fa893a518ca4015194147cde70e91fb93cda
parent04e5de03093f669ccc233e56b7838bfa7a7af6e1
KVM: arm64: Sort the hypervisor memblocks

We will soon need to check if a Physical Address belongs to a memblock
at EL2, so make sure to sort them so this can be done efficiently.

Acked-by: Will Deacon <will@kernel.org>
Signed-off-by: Quentin Perret <qperret@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20210319100146.1149909-28-qperret@google.com
arch/arm64/kvm/hyp/reserved_mem.c