]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: Convert kvm_for_each_vcpu() to using xa_for_each_range()
authorMarc Zyngier <maz@kernel.org>
Tue, 16 Nov 2021 16:04:03 +0000 (16:04 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 Dec 2021 09:24:16 +0000 (04:24 -0500)
commita89b44ca441611aab96a249364ea7e1e65a6d51b
tree7969bdd020f97ddb92139b28afa83f4e2f59ab4d
parent60d7aa5dfcb3f7d5e07b9d71bac4e365393144a3
KVM: Convert kvm_for_each_vcpu() to using xa_for_each_range()

Now that the vcpu array is backed by an xarray, use the optimised
iterator that matches the underlying data structure.

Suggested-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Message-Id: <20211116160403.4074052-8-maz@kernel.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/linux/kvm_host.h