]> git.proxmox.com Git - mirror_qemu.git/commit - target-ppc/kvm.c
ppc: Add software breakpoint support
authorBharat Bhushan <Bharat.Bhushan@freescale.com>
Mon, 14 Jul 2014 09:15:38 +0000 (14:45 +0530)
committerAlexander Graf <agraf@suse.de>
Mon, 8 Sep 2014 10:50:49 +0000 (12:50 +0200)
commit8a0548f94edecb96acb9b7fb9106ccc821c4996f
tree2444f27568bae8b35f65be13588aae4ddd7ccfbe
parentc371c2e3e0d7ad979dc2bb9763223287fabdcc24
ppc: Add software breakpoint support

This patch allow insert/remove software breakpoint.

When QEMU is not able to handle debug exception then we inject
program exception to guest because for software breakpoint QEMU
uses a ehpriv-1 instruction;
So there cannot be any reason that we are in qemu with exit reason
KVM_EXIT_DEBUG  for guest set debug exception, only possibility is
guest executed ehpriv-1 privilege instruction and that's why we are
injecting program exception.

Signed-off-by: Bharat Bhushan <Bharat.Bhushan@freescale.com>
[agraf: make deflect comment booke/book3s agnostic]
Signed-off-by: Alexander Graf <agraf@suse.de>
target-ppc/kvm.c