KVM: arm64: Convert vcpu sysregs_loaded_on_cpu to a state flag
authorMarc Zyngier <maz@kernel.org>
Sat, 28 May 2022 11:38:24 +0000 (12:38 +0100)
committerMarc Zyngier <maz@kernel.org>
Wed, 29 Jun 2022 09:23:32 +0000 (10:23 +0100)
commit30b6ab45f81334e83dcb440451b6a4c4a753a118
treeaced1452d1452123e6757de97d4fd3d25a60fd4f
parent781e3ae148fd2f9b0cf9b5b94f6c32f2361eb7c0
KVM: arm64: Convert vcpu sysregs_loaded_on_cpu to a state flag

The aptly named boolean 'sysregs_loaded_on_cpu' tracks whether
some of the vcpu system registers are resident on the physical
CPU when running in VHE mode.

This is obviously a flag in hidding, so let's convert it to
a state flag, since this is solely a host concern (the hypervisor
itself always knows which state we're in).

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/hyp/vhe/sysreg-sr.c
arch/arm64/kvm/sys_regs.c