KVM: arm64: Move vcpu configuration flags into their own set
authorMarc Zyngier <maz@kernel.org>
Sat, 28 May 2022 11:38:17 +0000 (12:38 +0100)
committerMarc Zyngier <maz@kernel.org>
Thu, 9 Jun 2022 14:43:46 +0000 (15:43 +0100)
commit4c0680d394d8a77868049931101e4a59372346b5
tree58a1d9639a10a8fa872067bf7f3403769d5e8408
parent690bacb83bc30d14821bd32cac1c5839b4a9ac6c
KVM: arm64: Move vcpu configuration flags into their own set

The KVM_ARM64_{GUEST_HAS_SVE,VCPU_SVE_FINALIZED,GUEST_HAS_PTRAUTH}
flags are purely configuration flags. Once set, they are never cleared,
but evaluated all over the code base.

Move these three flags into the configuration set in one go, using
the new accessors, and take this opportunity to drop the KVM_ARM64_
prefix which doesn't provide any help.

Reviewed-by: Fuad Tabba <tabba@google.com>
Reviewed-by: Reiji Watanabe <reijiw@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/include/asm/kvm_host.h
arch/arm64/kvm/reset.c