]> 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)
commit6e9d14fcf0f6b3a9bac195af01ee0799dca5a843
tree58a1d9639a10a8fa872067bf7f3403769d5e8408
parent67032e08caa37632d69bc49fdb51c1165ae09d0c
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