]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcf7081b1aae1d46c565fbdb49bc215f4f010fe6f
tree8476992b49f955ad0693faa13db536bfbaa11f41
parentb05ed40b559a97cd60654a1c98d41cc33af6c3f1
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