]> 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)
commit363804b4224d653daf0baba172bfe3ffcd4ca668
tree8476992b49f955ad0693faa13db536bfbaa11f41
parentbc98841e1be63c7c1a2959f7ec7d042ed8588481
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