From patchwork Thu May 2 07:26:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Doron X-Patchwork-Id: 1094000 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="iqAu7L/4"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 44vn285HRYz9s3l for ; Thu, 2 May 2019 17:29:04 +1000 (AEST) Received: from localhost ([127.0.0.1]:46500 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hM69O-0003mg-8f for incoming@patchwork.ozlabs.org; Thu, 02 May 2019 03:29:02 -0400 Received: from eggs.gnu.org ([209.51.188.92]:59402) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hM68j-0003lM-GT for qemu-devel@nongnu.org; Thu, 02 May 2019 03:28:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hM68c-0001Yo-45 for qemu-devel@nongnu.org; Thu, 02 May 2019 03:28:16 -0400 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]:53132) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hM68O-0008Sg-9E for qemu-devel@nongnu.org; Thu, 02 May 2019 03:28:04 -0400 Received: by mail-wm1-x332.google.com with SMTP id j13so1288342wmh.2 for ; Thu, 02 May 2019 00:26:55 -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=f8g9QD70FGf0ymybDzam88kdXKNpm8p5e0I3HrWU7Nc=; b=iqAu7L/4a05FTzh2Zbxup7QVRDTfNHqVxj8flmOzl8efmlgrys2OJuLHkhFUkwt3sJ nQxF+m3IQwm5JmiqlEs1JERg5LlCcQK8Gsc5tF1NzQD3alt7/4BbcFUrhoJNwPVOUNIS Q/zVF/LYxyXKT2QVVSZJ+kB9Y0dErKs2y1kTDiR77xgHrXEFTClh9ae5pXgCQUqqvjDP uJa56WAejDEeIYY/mK+wwIdKrX9yQa5hlN/aO0F4obOXV/KxgjbEd0c0KHTITddrvFjk 55b3J2ue8Mwa1f0gbFLijPI/pLdCbaLGMPp966dzIaXY+oyuJwdG6QrNem5gnqyU96cu 6F9g== 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=f8g9QD70FGf0ymybDzam88kdXKNpm8p5e0I3HrWU7Nc=; b=QFLNfRq0yCBB46cS0guAlU9YSh1Dh+5YHhAtH1znEPoZ/vfmFh6xqVDTnqY001/04w 7drTPIqgmsFHQvjEmLqyjPSOnp4NEyBUwJwR7rerP1jSG3ySFndH6IwCRFXnTAZIOU75 LQcCEcFDXVd6s1pb/v8rEQ7vxvEj82ydNz312/MI5kzaFDXEpqC4Fakjhj/dBi1ili7M IeldKmdhSjkhHGrDDXF+ipbNgnd93Kbv/RaI7Thb+WuXLjXNJyE/S9kJKA9e3JU8p3iR 5MvMU7DHFNQ4BK9+zj7vIEVLZ18UMXIA/nhgYbf7gBkybPhxdlkqfCktVZAHDjjDA/4e dEpA== X-Gm-Message-State: APjAAAX5PhDBB2i45MYBk8jesI2zDpH/WYy3d5kmusLIaGGISL10Pmxn 1DcRmk3kMrdiOWoVNPzB0ZPN7L51 X-Google-Smtp-Source: APXvYqxqJ158eXHFgkg+pjPawsnvcYIoSKZE03vvsWR4k4K2EIEvbPcYp2nSyYhPCuxR999WqkVK0w== X-Received: by 2002:a1c:eb07:: with SMTP id j7mr1149618wmh.138.1556782012159; Thu, 02 May 2019 00:26:52 -0700 (PDT) Received: from localhost.localdomain ([176.230.64.186]) by smtp.gmail.com with ESMTPSA id z5sm8769289wre.70.2019.05.02.00.26.50 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 02 May 2019 00:26:51 -0700 (PDT) From: Jon Doron To: qemu-devel@nongnu.org Date: Thu, 2 May 2019 10:26:14 +0300 Message-Id: <20190502072641.4667-1-arilou@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::332 Subject: [Qemu-devel] [PATCH v8 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: liran.alon@oracle.com, alex.bennee@linaro.org, Jon Doron Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" 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 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(-)