]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: arm64: nv: Reinject traps that take effect in Host EL0
authorOliver Upton <oliver.upton@linux.dev>
Fri, 25 Oct 2024 18:23:43 +0000 (18:23 +0000)
committerOliver Upton <oliver.upton@linux.dev>
Thu, 31 Oct 2024 19:00:39 +0000 (19:00 +0000)
commitd97e66fbcba796bb986e2097c352afae896b7942
treee3551c6aa6d73121675be67ca9897d7c8acc6100
parenta4063b5aa0bd7abc31c8044d897cff606cc8b74b
KVM: arm64: nv: Reinject traps that take effect in Host EL0

Wire up the other end of traps that affect host EL0 by actually
injecting them into the guest hypervisor. Skip over FGT entirely, as a
cursory glance suggests no FGT is effective in host EL0.

Note that kvm_inject_nested() is already equipped for handling
exceptions while the VM is already in a host context.

Reviewed-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20241025182354.3364124-9-oliver.upton@linux.dev
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/include/asm/kvm_emulate.h
arch/arm64/kvm/emulate-nested.c