KVM: arm64: Generalise VM features into a set of flags
authorMarc Zyngier <maz@kernel.org>
Fri, 11 Mar 2022 17:39:47 +0000 (17:39 +0000)
committerMarc Zyngier <maz@kernel.org>
Fri, 18 Mar 2022 14:02:33 +0000 (14:02 +0000)
commit06394531b425794dc56f3d525b7994d25b8072f7
tree8476992b49f955ad0693faa13db536bfbaa11f41
parent9872e6bc08d6ef6de79717ff6bbff0f297c134ef
KVM: arm64: Generalise VM features into a set of flags

We currently deal with a set of booleans for VM features,
while they could be better represented as set of flags
contained in an unsigned long, similarily to what we are
doing on the CPU side.

Signed-off-by: Marc Zyngier <maz@kernel.org>
[Oliver: Flag-ify the 'ran_once' boolean]
Signed-off-by: Oliver Upton <oupton@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20220311174001.605719-2-oupton@google.com
arch/arm64/include/asm/kvm_host.h
arch/arm64/kvm/arm.c
arch/arm64/kvm/mmio.c
arch/arm64/kvm/pmu-emul.c