KVM: arm64: Add a helper to check if a VM has ran once
authorOliver Upton <oliver.upton@linux.dev>
Tue, 4 Apr 2023 15:40:39 +0000 (15:40 +0000)
committerMarc Zyngier <maz@kernel.org>
Wed, 5 Apr 2023 11:07:41 +0000 (12:07 +0100)
commitde40bb8abb764f6866d82c4e2a43acdb22892cf4
tree256e1df6ddf7d8ec385deff647f0af83172d4bac
parente65733b5c59a1ea20324a03494364958bef3fc68
KVM: arm64: Add a helper to check if a VM has ran once

The test_bit(...) pattern is quite a lot of keystrokes. Replace
existing callsites with a helper.

No functional change intended.

Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20230404154050.2270077-3-oliver.upton@linux.dev
arch/arm64/include/asm/kvm_host.h
arch/arm64/kvm/hypercalls.c
arch/arm64/kvm/pmu-emul.c