]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc8f09ddd720a1a442a43193cb51efca028b166ac
tree58a1d9639a10a8fa872067bf7f3403769d5e8408
parent8e1e328b42198674021c2fac5e9129670acb892a
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