KVM: arm64: Rephrase percpu enable/disable tracking in terms of hyp
authorOliver Upton <oliver.upton@linux.dev>
Wed, 19 Jul 2023 23:18:55 +0000 (23:18 +0000)
committerOliver Upton <oliver.upton@linux.dev>
Thu, 20 Jul 2023 17:17:32 +0000 (17:17 +0000)
commit733c758e509b86a5d38b9af927817258b88ededd
treed1000c4625ee095fffefd175f9a9cdbbe838f1b7
parentc718ca0e99401d80d2480c08e1b02cf5f7cd7033
KVM: arm64: Rephrase percpu enable/disable tracking in terms of hyp

kvm_arm_hardware_enabled is rather misleading, since it doesn't track
the state of all hardware resources needed for running a VM. What it
actually tracks is whether or not the hyp cpu context has been
initialized.

Since we're now at the point where vgic + timer irq management has
been separated from kvm_arm_hardware_enabled, rephrase it (and the
associated helpers) to make it clear what state is being tracked.

Acked-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20230719231855.262973-1-oliver.upton@linux.dev
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/kvm/arm.c