From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?q?Alex=20Benn=C3=A9e?= Subject: [PATCH v9 0/6] QEMU support for KVM Guest Debug on arm64 Date: Thu, 12 Nov 2015 16:20:45 +0000 Message-ID: <1447345251-22625-1-git-send-email-alex.bennee@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, marc.zyngier@arm.com, =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org, qemu-arm@nongnu.org, peter.maydell@linaro.org, christoffer.dall@linaro.org, zhichao.huang@linaro.org Return-path: Received: from mail-wm0-f52.google.com ([74.125.82.52]:38779 "EHLO mail-wm0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754193AbbKLQVP (ORCPT ); Thu, 12 Nov 2015 11:21:15 -0500 Received: by wmec201 with SMTP id c201so99416170wme.1 for ; Thu, 12 Nov 2015 08:21:14 -0800 (PST) Sender: kvm-owner@vger.kernel.org List-ID: Hi, Here is the latest patch set to support debugging of KVM guests on arm64. The main changes since the last post are that the kernel patches have now been mainlined. As the recent master has synced up headers they are no longer needed for this series. I've add a GDB Python based test into tests/guest-debug. However I haven't plumbed it in to the "make check" machinery as we don't really have a good solution for adding binaries for testing (especially in TCG cases). This patch can be dropped if wanted and I'll just keep it locally. So in summary the changes are: - Kernel ABI now finalised and mainlined - Fixed the handling of watchpoints - Removed manual array fiddling in favour of g_array - Addressed most of Peter Maydell's review comments - The patch series is now checkpatch.pl clean More detailed changelogs are attached to each patch. GIT Repo: The patch series is based off a recent master and can be found at: https://github.com/stsquad/qemu branch: kvm/guest-debug-v9 Alex Benn=C3=A9e (6): target-arm: kvm64 - introduce kvm_arm_init_debug() target-arm: kvm - implement software breakpoints target-arm: kvm - support for single step target-arm: kvm - add support for HW assisted debug target-arm: kvm - re-inject guest debug exceptions tests/guest-debug: introduce basic gdbstub tests target-arm/helper-a64.c | 12 +- target-arm/kvm.c | 137 +++++++++++--- target-arm/kvm64.c | 366 ++++++++++++++++++++++++++++++= ++++++++ target-arm/kvm_arm.h | 38 ++++ tests/guest-debug/test-gdbstub.py | 171 ++++++++++++++++++ 5 files changed, 696 insertions(+), 28 deletions(-) create mode 100644 tests/guest-debug/test-gdbstub.py --=20 2.6.3 From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52107) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zwucg-0000T8-A0 for qemu-devel@nongnu.org; Thu, 12 Nov 2015 11:21:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zwucd-0003Je-1w for qemu-devel@nongnu.org; Thu, 12 Nov 2015 11:21:18 -0500 Received: from mail-wm0-x233.google.com ([2a00:1450:400c:c09::233]:38383) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zwucc-0003JG-Rp for qemu-devel@nongnu.org; Thu, 12 Nov 2015 11:21:14 -0500 Received: by wmec201 with SMTP id c201so99416171wme.1 for ; Thu, 12 Nov 2015 08:21:14 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= Date: Thu, 12 Nov 2015 16:20:45 +0000 Message-Id: <1447345251-22625-1-git-send-email-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] [PATCH v9 0/6] QEMU support for KVM Guest Debug on arm64 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, qemu-arm@nongnu.org, peter.maydell@linaro.org, christoffer.dall@linaro.org, zhichao.huang@linaro.org Cc: marc.zyngier@arm.com, =?UTF-8?q?Alex=20Benn=C3=A9e?= , linux-arm-kernel@lists.infradead.org, kvm@vger.kernel.org, kvmarm@lists.cs.columbia.edu Hi, Here is the latest patch set to support debugging of KVM guests on arm64. The main changes since the last post are that the kernel patches have now been mainlined. As the recent master has synced up headers they are no longer needed for this series. I've add a GDB Python based test into tests/guest-debug. However I haven't plumbed it in to the "make check" machinery as we don't really have a good solution for adding binaries for testing (especially in TCG cases). This patch can be dropped if wanted and I'll just keep it locally. So in summary the changes are: - Kernel ABI now finalised and mainlined - Fixed the handling of watchpoints - Removed manual array fiddling in favour of g_array - Addressed most of Peter Maydell's review comments - The patch series is now checkpatch.pl clean More detailed changelogs are attached to each patch. GIT Repo: The patch series is based off a recent master and can be found at: https://github.com/stsquad/qemu branch: kvm/guest-debug-v9 Alex Bennée (6): target-arm: kvm64 - introduce kvm_arm_init_debug() target-arm: kvm - implement software breakpoints target-arm: kvm - support for single step target-arm: kvm - add support for HW assisted debug target-arm: kvm - re-inject guest debug exceptions tests/guest-debug: introduce basic gdbstub tests target-arm/helper-a64.c | 12 +- target-arm/kvm.c | 137 +++++++++++--- target-arm/kvm64.c | 366 ++++++++++++++++++++++++++++++++++++++ target-arm/kvm_arm.h | 38 ++++ tests/guest-debug/test-gdbstub.py | 171 ++++++++++++++++++ 5 files changed, 696 insertions(+), 28 deletions(-) create mode 100644 tests/guest-debug/test-gdbstub.py -- 2.6.3 From mboxrd@z Thu Jan 1 00:00:00 1970 From: alex.bennee@linaro.org (=?UTF-8?q?Alex=20Benn=C3=A9e?=) Date: Thu, 12 Nov 2015 16:20:45 +0000 Subject: [PATCH v9 0/6] QEMU support for KVM Guest Debug on arm64 Message-ID: <1447345251-22625-1-git-send-email-alex.bennee@linaro.org> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Hi, Here is the latest patch set to support debugging of KVM guests on arm64. The main changes since the last post are that the kernel patches have now been mainlined. As the recent master has synced up headers they are no longer needed for this series. I've add a GDB Python based test into tests/guest-debug. However I haven't plumbed it in to the "make check" machinery as we don't really have a good solution for adding binaries for testing (especially in TCG cases). This patch can be dropped if wanted and I'll just keep it locally. So in summary the changes are: - Kernel ABI now finalised and mainlined - Fixed the handling of watchpoints - Removed manual array fiddling in favour of g_array - Addressed most of Peter Maydell's review comments - The patch series is now checkpatch.pl clean More detailed changelogs are attached to each patch. GIT Repo: The patch series is based off a recent master and can be found at: https://github.com/stsquad/qemu branch: kvm/guest-debug-v9 Alex Benn?e (6): target-arm: kvm64 - introduce kvm_arm_init_debug() target-arm: kvm - implement software breakpoints target-arm: kvm - support for single step target-arm: kvm - add support for HW assisted debug target-arm: kvm - re-inject guest debug exceptions tests/guest-debug: introduce basic gdbstub tests target-arm/helper-a64.c | 12 +- target-arm/kvm.c | 137 +++++++++++--- target-arm/kvm64.c | 366 ++++++++++++++++++++++++++++++++++++++ target-arm/kvm_arm.h | 38 ++++ tests/guest-debug/test-gdbstub.py | 171 ++++++++++++++++++ 5 files changed, 696 insertions(+), 28 deletions(-) create mode 100644 tests/guest-debug/test-gdbstub.py -- 2.6.3