KVM: arm64: nv: Reset VCPU to EL2 registers if VCPU nested virt is set
authorChristoffer Dall <christoffer.dall@arm.com>
Thu, 9 Feb 2023 17:58:06 +0000 (17:58 +0000)
committerOliver Upton <oliver.upton@linux.dev>
Sat, 11 Feb 2023 09:16:11 +0000 (09:16 +0000)
commit2fb32357ae672fa1cb63e046ba387963687300b0
tree9a33e7346408bdcf68116acc0585b43089dcd850
parent89b0e7de3451a17f23bc1c39bc40eee1811f1669
KVM: arm64: nv: Reset VCPU to EL2 registers if VCPU nested virt is set

Reset the VCPU with PSTATE.M = EL2h when the nested virtualization
feature is enabled on the VCPU.

Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Alexandru Elisei <alexandru.elisei@arm.com>
Signed-off-by: Christoffer Dall <christoffer.dall@arm.com>
[maz: rework register reset not to use empty data structures]
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20230209175820.1939006-5-maz@kernel.org
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/kvm/reset.c