[PATCH 0/7 v3] KVM :PPC: Userspace Debug support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Bharat Bhushan <bharat.bhushan@xxxxxxxxxxxxx>

This patchset adds the userspace debug support for booke/bookehv.
this is tested on powerpc e500v2/e500mc devices.

We are now assuming that debug resource will not be used by
kernel for its own debugging. It will be used for only kernel
user process debugging. So the kernel debug load interface during
context_to is used to load debug conext for that selected process.

v2->v3
 - We are now assuming that debug resource will not be used by
   kernel for its own debugging.
   It will be used for only kernel user process debugging.
   So the kernel debug load interface during context_to is
   used to load debug conext for that selected process.

v1->v2
 - Debug registers are save/restore in vcpu_put/vcpu_get.
   Earlier the debug registers are saved/restored in guest entry/exit

Bharat Bhushan (7):
  KVM: PPC: debug stub interface parameter defined
  Rename EMULATE_DO_PAPR to EMULATE_EXIT_USER
  KVM: extend EMULATE_EXIT_USER to support different exit reasons
  booke: exit to user space if emulator request
  KVM: PPC: exit to user space on "ehpriv" instruction
  powerpc: export debug register save function for KVM
  KVM: PPC: Add userspace debug stub support

 arch/powerpc/include/asm/kvm_host.h  |    8 +
 arch/powerpc/include/asm/kvm_ppc.h   |    2 +-
 arch/powerpc/include/asm/switch_to.h |    4 +
 arch/powerpc/include/uapi/asm/kvm.h  |   37 +++++
 arch/powerpc/kernel/process.c        |    3 +-
 arch/powerpc/kvm/book3s.c            |    6 +
 arch/powerpc/kvm/book3s_emulate.c    |    4 +-
 arch/powerpc/kvm/book3s_pr.c         |    4 +-
 arch/powerpc/kvm/booke.c             |  239 ++++++++++++++++++++++++++++++++--
 arch/powerpc/kvm/booke.h             |    5 +
 arch/powerpc/kvm/e500_emulate.c      |   10 ++
 arch/powerpc/kvm/powerpc.c           |    6 -
 12 files changed, 304 insertions(+), 24 deletions(-)


--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux