qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Philippe Mathieu-Daudé" <philmd@linaro.org>
To: Nicolas Eder <nicolas.eder@lauterbach.com>, qemu-devel@nongnu.org
Cc: "Alex Bennée" <alex.bennee@linaro.org>,
	"Christian Boenig" <christian.boenig@lauterbach.com>
Subject: Re: [PATCH v3 05/20] mcdstub: tcp packet processing added
Date: Wed, 8 Nov 2023 15:33:35 +0100	[thread overview]
Message-ID: <fbc70e51-5a09-497e-a22f-48416eb688d1@linaro.org> (raw)
In-Reply-To: <20231107130323.4126-6-nicolas.eder@lauterbach.com>

Hi Nicolas,

On 7/11/23 14:03, Nicolas Eder wrote:
> ---
>   include/mcdstub/mcdstub.h | 144 ++++++++++++++++++++
>   mcdstub/mcdstub.c         | 277 ++++++++++++++++++++++++++++++++++++++
>   2 files changed, 421 insertions(+)
> 
> diff --git a/include/mcdstub/mcdstub.h b/include/mcdstub/mcdstub.h
> index 36058157ae..1461d0e1cb 100644
> --- a/include/mcdstub/mcdstub.h
> +++ b/include/mcdstub/mcdstub.h
> @@ -25,6 +25,21 @@ typedef struct MCDProcess {
>       char target_xml[1024];
>   } MCDProcess;
>   
> +typedef void (*MCDCmdHandler)(GArray *params, void *user_ctx);
> +typedef struct MCDCmdParseEntry {
> +    MCDCmdHandler handler;
> +    const char *cmd;
> +    char schema[CMD_SCHEMA_LENGTH];
> +} MCDCmdParseEntry;
> +
> +typedef union MCDCmdVariant {
> +    const char *data;
> +    uint32_t data_uint32_t;
> +    uint64_t data_uint64_t;
> +    uint32_t query_handle;
> +    uint32_t cpu_id;
> +} MCDCmdVariant;

[...]

Can we add an URL to the spec in this file header?

It should be relatively easy to add a qtest for MCB, with raw
packets to:
- read memory
- write memory
- read register
- write register
- register breakpoint
- run vcpu
- stop vcpu

Maybe we can write a tiny code that loop incrementing a static
variable, run for few ms and check the variable got incremented?
That would exercise most of these commands.

Regards,

Phil.


  reply	other threads:[~2023-11-08 14:34 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-07 13:03 [PATCH v3 00/20] first version of mcdstub Nicolas Eder
2023-11-07 13:03 ` [PATCH v3 01/20] mcdstub: initial file structure for new mcdstub created. -mcd QEMU startup option added. Functions for initializing the mcdstub added. Basic helper functions for processes/cpus in the mcdstub added Nicolas Eder
2023-11-29 15:23   ` Alex Bennée
2023-11-07 13:03 ` [PATCH v3 02/20] mcdstub gdbstub: new DebugClass and DebugState introduced. They are used to abstract the debugger details behind a QOM. This is currently used in the cpu_handle_guest_debug function Nicolas Eder
2023-11-07 13:03 ` [PATCH v3 03/20] gdbstub: moving code so that it can be easier accessed from outside the gdbstub: fromhex and tohex functions moved to a cutils header. GDBRegisterState moved to gdbstub.h Nicolas Eder
2023-11-29 15:51   ` Alex Bennée
2023-11-07 13:03 ` [PATCH v3 04/20] mcdstub: added header with defines specific to the mcd tcp packet communication Nicolas Eder
2023-11-29 16:02   ` Alex Bennée
2023-11-07 13:03 ` [PATCH v3 05/20] mcdstub: tcp packet processing added Nicolas Eder
2023-11-08 14:33   ` Philippe Mathieu-Daudé [this message]
2023-11-13  9:18     ` nicolas.eder
2023-11-29 16:25   ` Alex Bennée
2023-11-07 13:03 ` [PATCH v3 06/20] mcdstub: open/close server functions and trigger/reset data added. User for initial connection with an mcd client Nicolas Eder
2023-11-07 13:03 ` [PATCH v3 07/20] mcdstub: quitting QEMU via mcd command added Nicolas Eder
2023-11-07 13:03 ` [PATCH v3 08/20] mcdstub: query packet processing added and core/system querie added Nicolas Eder
2023-11-07 13:03 ` [PATCH v3 09/20] mcdstub: open/close core added. This includes core specific data preparation: memory spaces, register groups and registers. This data preparation is done in the arm mcdstub Nicolas Eder
2023-11-07 13:03 ` [PATCH v3 10/20] mcdstub: state query added: this query collects information about the state of a specific core. This commit also includes mcd_vm_state_change, which is called when the cpu state changes because it collects data for the query Nicolas Eder
2023-11-07 13:03 ` [PATCH v3 11/20] mcdstub: reset and trigger queries added Nicolas Eder
2023-11-07 13:03 ` [PATCH v3 12/20] mcdstub: missing parse_reg_xml function for parsing gdb register xml files added Nicolas Eder
2023-11-07 13:03 ` [PATCH v3 13/20] mcdstub: added queries for memory spaces, register groups and registers Nicolas Eder
2023-11-07 13:03 ` [PATCH v3 14/20] mcdstub: missing handle_query_state function added Nicolas Eder
2023-11-07 13:03 ` [PATCH v3 15/20] mcdstub: added go, break and step functionality and all corresponding functions Nicolas Eder
2023-11-07 13:03 ` [PATCH v3 16/20] mcdstub: function construct for resets added Nicolas Eder
2023-11-07 13:03 ` [PATCH v3 17/20] mcdstub: reading/writing registers added Nicolas Eder
2023-11-07 13:03 ` [PATCH v3 18/20] mcdstub: read/write to memory added: This also includes various helper functions in the QEMU memory code Nicolas Eder
2023-11-07 13:03 ` [PATCH v3 19/20] mcdstub: break/watchpoints added Nicolas Eder
2023-11-07 13:03 ` [PATCH v3 20/20] mcdstub: updated MAINTAINERS file and fully activated the mcdstub in the meson build system Nicolas Eder
2023-11-29 16:31   ` Alex Bennée
2023-11-08 14:27 ` [PATCH v3 00/20] first version of mcdstub Philippe Mathieu-Daudé
2023-11-13  9:20   ` nicolas.eder
2023-11-29 14:44 ` Alex Bennée
2023-11-29 15:01   ` nicolas.eder

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=fbc70e51-5a09-497e-a22f-48416eb688d1@linaro.org \
    --to=philmd@linaro.org \
    --cc=alex.bennee@linaro.org \
    --cc=christian.boenig@lauterbach.com \
    --cc=nicolas.eder@lauterbach.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).