KVM: arm64: nv: Add nested virt VCPU primitives for vEL2 VCPU state
authorChristoffer Dall <christoffer.dall@arm.com>
Thu, 9 Feb 2023 17:58:09 +0000 (17:58 +0000)
committerOliver Upton <oliver.upton@linux.dev>
Sat, 11 Feb 2023 09:16:11 +0000 (09:16 +0000)
commit0043b29038e23573f529d8cd7c32967c2b6b976d
tree972256cf3f5ae8b25e8593d1622f5f762b1771b7
parent5305cc2c34004042ef2683bebd126cf54eb6fc74
KVM: arm64: nv: Add nested virt VCPU primitives for vEL2 VCPU state

When running a nested hypervisor we commonly have to figure out if
the VCPU mode is running in the context of a guest hypervisor or guest
guest, or just a normal guest.

Add convenient primitives for this.

Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: Christoffer Dall <christoffer.dall@arm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20230209175820.1939006-8-maz@kernel.org
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/include/asm/kvm_emulate.h