All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 0/2] KVM: arm64: single step emulation instructions
@ 2017-10-06 11:39 ` Alex Bennée
  0 siblings, 0 replies; 61+ messages in thread
From: Alex Bennée @ 2017-10-06 11:39 UTC (permalink / raw)
  To: julien.thierry, kvm, linux-arm-kernel, kvmarm, christoffer.dall,
	marc.zyngier
  Cc: Alex Bennée

Hi Julian,

Here are the proposed patches for KVM support. Feel free to merge them
together if you want.

There are two minor wrinkles.

The first is we fake the HSR_EC value to keep QEMU happy. I don't
think this is a major problem because we aren't dealing with a guest
register but the mechanism for the guest debug to know what happened.
In this case we still single-stepped even if an exception wasn't
actually involved.

The second is we have to slightly munge the handling of return
kvm_handle_mmio_return to properly exit the loop on error or 0.

Alex Bennée (2):
  KVM: arm64: handle single-stepping trapped instructions
  kvm: arm64: handle single-step of userspace mmio instructions

 arch/arm/include/asm/kvm_host.h   |  2 ++
 arch/arm64/include/asm/kvm_host.h |  1 +
 arch/arm64/kvm/debug.c            | 21 ++++++++++++++++++
 arch/arm64/kvm/handle_exit.c      | 45 +++++++++++++++++++++++++++------------
 virt/kvm/arm/arm.c                |  2 +-
 virt/kvm/arm/mmio.c               |  3 ++-
 6 files changed, 58 insertions(+), 16 deletions(-)

-- 
2.14.1

^ permalink raw reply	[flat|nested] 61+ messages in thread

end of thread, other threads:[~2017-10-14 14:20 UTC | newest]

Thread overview: 61+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-06 11:39 [PATCH v1 0/2] KVM: arm64: single step emulation instructions Alex Bennée
2017-10-06 11:39 ` Alex Bennée
2017-10-06 11:39 ` [PATCH v1 1/2] KVM: arm64: handle single-stepping trapped instructions Alex Bennée
2017-10-06 11:39   ` Alex Bennée
2017-10-06 11:39   ` Alex Bennée
2017-10-06 12:27   ` Marc Zyngier
2017-10-06 12:27     ` Marc Zyngier
2017-10-06 12:34     ` Julien Thierry
2017-10-06 12:34       ` Julien Thierry
2017-10-06 12:46       ` Marc Zyngier
2017-10-06 12:46         ` Marc Zyngier
2017-10-06 13:15   ` Julien Thierry
2017-10-06 13:15     ` Julien Thierry
2017-10-13  8:26   ` Christoffer Dall
2017-10-13  8:26     ` Christoffer Dall
2017-10-13  8:26     ` Christoffer Dall
2017-10-13  9:15     ` Alex Bennée
2017-10-13  9:15       ` Alex Bennée
2017-10-13  9:15       ` Alex Bennée
2017-10-14 14:16       ` Christoffer Dall
2017-10-14 14:16         ` Christoffer Dall
2017-10-14 14:16         ` Christoffer Dall
2017-10-06 11:39 ` [PATCH v1 2/2] kvm: arm64: handle single-step of userspace mmio instructions Alex Bennée
2017-10-06 11:39   ` Alex Bennée
2017-10-06 11:39   ` Alex Bennée
2017-10-06 12:37   ` Marc Zyngier
2017-10-06 12:37     ` Marc Zyngier
2017-10-06 12:44     ` Marc Zyngier
2017-10-06 12:44       ` Marc Zyngier
2017-10-06 13:47       ` Alex Bennée
2017-10-06 13:47         ` Alex Bennée
2017-10-06 13:47         ` Alex Bennée
2017-10-06 14:00         ` Marc Zyngier
2017-10-06 14:00           ` Marc Zyngier
2017-10-06 14:26           ` Julien Thierry
2017-10-06 14:26             ` Julien Thierry
2017-10-06 14:43             ` Marc Zyngier
2017-10-06 14:43               ` Marc Zyngier
2017-10-06 14:43               ` Marc Zyngier
2017-10-06 13:13   ` Julien Thierry
2017-10-06 13:13     ` Julien Thierry
2017-10-06 13:13     ` Julien Thierry
2017-10-06 13:45     ` Alex Bennée
2017-10-06 13:45       ` Alex Bennée
2017-10-06 14:27       ` Julien Thierry
2017-10-06 14:27         ` Julien Thierry
2017-10-06 14:27         ` Julien Thierry
2017-10-13  8:59       ` Christoffer Dall
2017-10-13  8:59         ` Christoffer Dall
2017-10-13  8:59         ` Christoffer Dall
2017-10-13  9:23         ` Alex Bennée
2017-10-13  9:23           ` Alex Bennée
2017-10-14 14:18           ` Christoffer Dall
2017-10-14 14:18             ` Christoffer Dall
2017-10-13  8:56   ` Christoffer Dall
2017-10-13  8:56     ` Christoffer Dall
2017-10-13  9:27     ` Alex Bennée
2017-10-13  9:27       ` Alex Bennée
2017-10-14 14:20       ` Christoffer Dall
2017-10-14 14:20         ` Christoffer Dall
2017-10-14 14:20         ` Christoffer Dall

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.