KVM: arm/arm64: debug: Introduce helper for single-step
authorAlex Bennée <alex.bennee@linaro.org>
Thu, 16 Nov 2017 15:39:19 +0000 (15:39 +0000)
committerChristoffer Dall <christoffer.dall@linaro.org>
Wed, 29 Nov 2017 15:46:19 +0000 (16:46 +0100)
commit696673d192f52c2c5a702224ee21f005318a844b
treea7a25cf68c0197ab08ccf120b5b16c714092e8a1
parent5553b142be11e794ebc0805950b2e8313f93d718
KVM: arm/arm64: debug: Introduce helper for single-step

After emulating instructions we may want return to user-space to handle
single-step debugging. Introduce a helper function, which, if
single-step is enabled, sets the run structure for return and returns
true.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Julien Thierry <julien.thierry@arm.com>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
arch/arm/include/asm/kvm_host.h
arch/arm64/include/asm/kvm_host.h
arch/arm64/kvm/debug.c