KVM: arm64: Simplify the CPUHP logic
authorMarc Zyngier <maz@kernel.org>
Wed, 30 Nov 2022 23:09:00 +0000 (23:09 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 29 Dec 2022 20:41:04 +0000 (15:41 -0500)
commit466d27e48d7cd2542710309817cff1e91cd2e10a
treef17cfa0e047ed8b092e195637a5f1730fd647390
parent3af4a9e61e71117d5df2df3e1605fa062e04b869
KVM: arm64: Simplify the CPUHP logic

For a number of historical reasons, the KVM/arm64 hotplug setup is pretty
complicated, and we have two extra CPUHP notifiers for vGIC and timers.

It looks pretty pointless, and gets in the way of further changes.
So let's just expose some helpers that can be called from the core
CPUHP callback, and get rid of everything else.

This gives us the opportunity to drop a useless notifier entry,
as well as tidy-up the timer enable/disable, which was a bit odd.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Isaku Yamahata <isaku.yamahata@intel.com>
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20221130230934.1014142-17-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/arm64/kvm/arch_timer.c
arch/arm64/kvm/arm.c
arch/arm64/kvm/vgic/vgic-init.c
include/kvm/arm_arch_timer.h
include/kvm/arm_vgic.h
include/linux/cpuhotplug.h