]> asedeno.scripts.mit.edu Git - linux.git/commit
kvm: arm64: handle single-step of userspace mmio instructions
authorAlex Bennée <alex.bennee@linaro.org>
Thu, 16 Nov 2017 15:39:21 +0000 (15:39 +0000)
committerChristoffer Dall <christoffer.dall@linaro.org>
Wed, 29 Nov 2017 15:46:21 +0000 (16:46 +0100)
commit1eb591288b956bdd75e464e69b6b8207ffa6e5e3
tree6fc4a50011b82e23488977cef1eb0d91e15aff1f
parent7226bc2e126dfb6d81e85a75f373ea4cc3619406
kvm: arm64: handle single-step of userspace mmio instructions

The system state of KVM when using userspace emulation is not complete
until we return into KVM_RUN. To handle mmio related updates we wait
until they have been committed and then schedule our KVM_EXIT_DEBUG.

The kvm_arm_handle_step_debug() helper tells us if we need to return
and sets up the exit_reason for us.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
virt/kvm/arm/arm.c