]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commit
s390x/kvm: software breakpoint support
authorDavid Hildenbrand <dahi@linux.vnet.ibm.com>
Tue, 25 Feb 2014 14:53:00 +0000 (15:53 +0100)
committerCornelia Huck <cornelia.huck@de.ibm.com>
Tue, 20 May 2014 11:05:58 +0000 (13:05 +0200)
commitb30f4dfbdaf353e580f8a834aeea6b96ac1c67c9
treebab1d1518254724a3320ff2e56c3937dc524e14a
parent8e4e86afa524588397be2101c3582c897fc408df
s390x/kvm: software breakpoint support

This patch allows to insert and remove sw breakpoints using the QEMU gdbserver
on s390 as well as to interrupt execution on a breakpoint hit when running
with KVM enabled.

Whenever a software breakpoint is inserted, common code calls kvm ioctl
KVM_UPDATE_GUEST_DEBUG. As this method's default on s390 is to return an error
if not implement, the insertion will fail. Therefore, KVM also has to be
updated in order to make use of software breakpoints.

Signed-off-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Signed-off-by: Jens Freimann <jfrei@linux.vnet.ibm.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
target-s390x/kvm.c