]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: arm64: nv: Honor guest hypervisor's FP/SVE traps in CPTR_EL2
authorOliver Upton <oliver.upton@linux.dev>
Thu, 20 Jun 2024 16:46:48 +0000 (16:46 +0000)
committerOliver Upton <oliver.upton@linux.dev>
Thu, 20 Jun 2024 19:04:49 +0000 (19:04 +0000)
commit5326303bb7d9da79d94d0e347a6e212eaae8801d
treee1488e12aba2f3fbdfd242a4ec72cd745f120969
parent0cfc85b8f5cf3b77463d61542191c75ba0cc3a5f
KVM: arm64: nv: Honor guest hypervisor's FP/SVE traps in CPTR_EL2

Start folding the guest hypervisor's FP/SVE traps into the value
programmed in hardware. Note that as of writing this is dead code, since
KVM does a full put() / load() for every nested exception boundary which
saves + flushes the FP/SVE state.

However, this will become useful when we can keep the guest's FP/SVE
state alive across a nested exception boundary and the host no longer
needs to conservatively program traps.

Reviewed-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20240620164653.1130714-12-oliver.upton@linux.dev
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/kvm/hyp/vhe/switch.c