From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:42487) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hM6t3-000356-BF for qemu-devel@nongnu.org; Thu, 02 May 2019 04:16:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hM6sx-00078Z-Oj for qemu-devel@nongnu.org; Thu, 02 May 2019 04:16:13 -0400 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]:35399) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hM6sx-00077I-J0 for qemu-devel@nongnu.org; Thu, 02 May 2019 04:16:07 -0400 Received: by mail-wr1-x42a.google.com with SMTP id f7so2031730wrs.2 for ; Thu, 02 May 2019 01:16:07 -0700 (PDT) From: Jon Doron Date: Thu, 2 May 2019 11:15:27 +0300 Message-Id: <20190502081554.5521-1-arilou@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] [PATCH v9 00/27] gdbstub: Refactor command packets handler List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: alex.bennee@linaro.org, Jon Doron This patch series refactors the old gdbstub command packets handler with a new infrastructure which should ease extending and adding new and missing gdb command packets. version 9 changes: - checkpatch fixes version 8 changes: - Add new command to display the Supported qemu generic query/sets - kvm: Add API to read/write a MSR - Add new commands specific for qemu: * Command to swap the memory GDB sees to be the physical memory * Commands to read and write a MSR version 7 changes: - Fixed few checkpatch complaints - Feedback from Alex Bennee version 4-6 changes: - mostly feedback from Richard Henderson version 3 changes - Split the single patch to many individual patches for easier reviewing version 2 changes - Code convention fixes Jon Doron (27): gdbstub: Add infrastructure to parse cmd packets gdbstub: Implement deatch (D pkt) with new infra gdbstub: Implement thread_alive (T pkt) with new infra gdbstub: Implement continue (c pkt) with new infra gdbstub: Implement continue with signal (C pkt) with new infra gdbstub: Implement set_thread (H pkt) with new infra gdbstub: Implement insert breakpoint (Z pkt) with new infra gdbstub: Implement remove breakpoint (z pkt) with new infra gdbstub: Implement set register (P pkt) with new infra gdbstub: Implement get register (p pkt) with new infra gdbstub: Implement write memory (M pkt) with new infra gdbstub: Implement read memory (m pkt) with new infra gdbstub: Implement write all registers (G pkt) with new infra gdbstub: Implement read all registers (g pkt) with new infra gdbstub: Implement file io (F pkt) with new infra gdbstub: Implement step (s pkt) with new infra gdbstub: Implement v commands with new infra gdbstub: Implement generic query (q pkt) with new infra gdbstub: Implement generic set (Q pkt) with new infra gdbstub: Implement target halted (? pkt) with new infra gdbstub: Clear unused variables in gdb_handle_packet gdbstub: Implement generic query qemu.Supported gdbstub: Implement qemu physical memory mode gdbstub: Add another handler for setting qemu.sstep kvm: Add API to read/write a CPU MSR value gdbstub: Add support to read a MSR for KVM target gdbstub: Add support to write a MSR for KVM target accel/kvm/kvm-all.c | 39 + gdbstub.c | 1807 ++++++++++++++++++++++++++++++------------ include/sysemu/kvm.h | 2 + 3 files changed, 1359 insertions(+), 489 deletions(-) -- 2.20.1 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B6A4BC43219 for ; Thu, 2 May 2019 08:18:21 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7DF4B20651 for ; Thu, 2 May 2019 08:18:21 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="F2fYBhkJ" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7DF4B20651 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([127.0.0.1]:47190 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hM6v6-0004IQ-My for qemu-devel@archiver.kernel.org; Thu, 02 May 2019 04:18:20 -0400 Received: from eggs.gnu.org ([209.51.188.92]:42487) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hM6t3-000356-BF for qemu-devel@nongnu.org; Thu, 02 May 2019 04:16:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hM6sx-00078Z-Oj for qemu-devel@nongnu.org; Thu, 02 May 2019 04:16:13 -0400 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]:35399) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hM6sx-00077I-J0 for qemu-devel@nongnu.org; Thu, 02 May 2019 04:16:07 -0400 Received: by mail-wr1-x42a.google.com with SMTP id f7so2031730wrs.2 for ; Thu, 02 May 2019 01:16:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Ssjpbf3lZSyEFjm9LoORSLfJB5PJJDjX374HlcXIslc=; b=F2fYBhkJCiKwYXlsKA46LF+FFIlFlftejmpUHmRaQaZc0kXhQzugK9A5T+YKlyJZTj 7Kb8Q6HsguMVH3UWTRIU5rvvBVyrrfXasp3m14m8Cl42v/5lIzxQr7NTjMOMDChSgtPO eFvuUlA7nCZA0KmWh2xiRva2StA5nddPedWhHSMasyPGRvxx41EHiSwWWKI6/CxdMxFG Pnd8gnGx1oAOokriDlYLI8Unv9S2aUu/XoGbfI1udjCB+WTRXgb6eKihR74bCDOQnxUZ YJwISgvQakdmmwaZ7iN9HoQV/RuGSZl9m4mln/2E9oFi/ObiF+a9MXP0fPb5EOl4HqIS Il1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Ssjpbf3lZSyEFjm9LoORSLfJB5PJJDjX374HlcXIslc=; b=hnWUbbmyao3pkfcN3FZu8mE1LDzmkP9rx8hvz3hlnSbwbQJE27hPqpoDIuGzAgWCtu 1Aq5OmCBBR6qkjLZt6Tp0xNh5goFQoxnJjBgB2jJK6JC15lxH8UvsatZiMuvm+ZitpgS iVM8Tw2Z1lmhwSnC+4NOzpcgM8yXASRb2Vqt9UZ8Au014jleiK3kV1pVzNXejVhD0DCA QE9sH6GFffzWZgggf5t9XZN52m8sQDtf10NTaE6ew2t30wV0yJD8wZaRM0W5aVlZ8ski Cl91bW3tNe0Js3JY7mtVnCW0jLv3QoFZwWh2WAw1NEhxbMoZ+tQRB7E6TRTfJowPbyeC bWGQ== X-Gm-Message-State: APjAAAVboQduWAA8qzdmjP27wud+OolnnWn1IMkc767U2hMzbrQr/6ox uAH2lwi7Fs3NNaV9JmkS6K0QE2OZ X-Google-Smtp-Source: APXvYqyX49+TXNdFDlgRhaXiS7S7fztKPT9JJ9GTO7e+AIeNKXSbgPtHOJrf2vFERD/JJOFcK8yEgA== X-Received: by 2002:adf:fc05:: with SMTP id i5mr1801948wrr.190.1556784965674; Thu, 02 May 2019 01:16:05 -0700 (PDT) Received: from localhost.localdomain ([176.230.64.186]) by smtp.gmail.com with ESMTPSA id d16sm44698367wra.54.2019.05.02.01.16.03 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 02 May 2019 01:16:04 -0700 (PDT) From: Jon Doron To: qemu-devel@nongnu.org Date: Thu, 2 May 2019 11:15:27 +0300 Message-Id: <20190502081554.5521-1-arilou@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::42a Subject: [Qemu-devel] [PATCH v9 00/27] gdbstub: Refactor command packets handler X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: alex.bennee@linaro.org, Jon Doron Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="UTF-8" Message-ID: <20190502081527.Tb-1huWDoPDCXkCIFc0GaruTBKF319Yxo597uoxrvpE@z> This patch series refactors the old gdbstub command packets handler with a new infrastructure which should ease extending and adding new and missing gdb command packets. version 9 changes: - checkpatch fixes version 8 changes: - Add new command to display the Supported qemu generic query/sets - kvm: Add API to read/write a MSR - Add new commands specific for qemu: * Command to swap the memory GDB sees to be the physical memory * Commands to read and write a MSR version 7 changes: - Fixed few checkpatch complaints - Feedback from Alex Bennee version 4-6 changes: - mostly feedback from Richard Henderson version 3 changes - Split the single patch to many individual patches for easier reviewing version 2 changes - Code convention fixes Jon Doron (27): gdbstub: Add infrastructure to parse cmd packets gdbstub: Implement deatch (D pkt) with new infra gdbstub: Implement thread_alive (T pkt) with new infra gdbstub: Implement continue (c pkt) with new infra gdbstub: Implement continue with signal (C pkt) with new infra gdbstub: Implement set_thread (H pkt) with new infra gdbstub: Implement insert breakpoint (Z pkt) with new infra gdbstub: Implement remove breakpoint (z pkt) with new infra gdbstub: Implement set register (P pkt) with new infra gdbstub: Implement get register (p pkt) with new infra gdbstub: Implement write memory (M pkt) with new infra gdbstub: Implement read memory (m pkt) with new infra gdbstub: Implement write all registers (G pkt) with new infra gdbstub: Implement read all registers (g pkt) with new infra gdbstub: Implement file io (F pkt) with new infra gdbstub: Implement step (s pkt) with new infra gdbstub: Implement v commands with new infra gdbstub: Implement generic query (q pkt) with new infra gdbstub: Implement generic set (Q pkt) with new infra gdbstub: Implement target halted (? pkt) with new infra gdbstub: Clear unused variables in gdb_handle_packet gdbstub: Implement generic query qemu.Supported gdbstub: Implement qemu physical memory mode gdbstub: Add another handler for setting qemu.sstep kvm: Add API to read/write a CPU MSR value gdbstub: Add support to read a MSR for KVM target gdbstub: Add support to write a MSR for KVM target accel/kvm/kvm-all.c | 39 + gdbstub.c | 1807 ++++++++++++++++++++++++++++++------------ include/sysemu/kvm.h | 2 + 3 files changed, 1359 insertions(+), 489 deletions(-) -- 2.20.1