]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: arm64: Manage software step state at load/put
authorMarc Zyngier <maz@kernel.org>
Fri, 20 Dec 2024 08:59:48 +0000 (08:59 +0000)
committerMarc Zyngier <maz@kernel.org>
Fri, 20 Dec 2024 09:04:06 +0000 (09:04 +0000)
commit2ca3f03bf524c98afa421c479689f1e7dc030bf0
treed472f7dcd2438b40b54ad651f3f4c9f58ca7bbb5
parent4ad3a0b87f2ec4714fdfa6bd5de57b4c30e15753
KVM: arm64: Manage software step state at load/put

KVM takes over the guest's software step state machine if the VMM is
debugging the guest, but it does the save/restore fiddling for every
guest entry.

Note that the only constraint on host usage of software step is that the
guest's configuration remains visible to userspace via the ONE_REG
ioctls. So, we can cut down on the amount of fiddling by doing this at
load/put instead.

Tested-by: James Clark <james.clark@linaro.org>
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
Link: https://lore.kernel.org/r/20241219224116.3941496-16-oliver.upton@linux.dev
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/include/asm/kvm_host.h
arch/arm64/kvm/arm.c
arch/arm64/kvm/debug.c
arch/arm64/kvm/guest.c
arch/arm64/kvm/handle_exit.c