public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
From: Laurent Vivier <lvivier@redhat.com>
To: David Gibson <david@gibson.dropbear.id.au>
Cc: passt-dev@passt.top
Subject: Re: [PATCH v3 3/4] vhost-user: introduce vhost-user API
Date: Thu, 5 Sep 2024 11:58:30 +0200	[thread overview]
Message-ID: <c63b8ab0-e947-45a6-9aaa-2392ccdfa51f@redhat.com> (raw)
In-Reply-To: <ZswSFOJsSsRmXABP@zatzit.fritz.box>

On 26/08/2024 07:26, David Gibson wrote:
>> +/**
>> + * vu_set_features_exec() - Enable features of the back-end
>> + * @vdev:	Vhost-user device
>> + * @vmsg:	Vhost-user message
>> + *
>> + * Return: false as no reply is requested
>> + */
>> +static bool vu_set_features_exec(struct vu_dev *vdev,
>> +				 struct vhost_user_msg *msg)
>> +{
>> +	debug("u64: 0x%016"PRIx64, msg->payload.u64);
> A number of these debug() messages look like they'd be pretty cryptic,
> with no indication of which part of passt they're coming from.  This
> one is especially bad.

We have in the main loop calling each vu_ function a trace:

         debug("================ Vhost user message ================");
         debug("Request: %s (%d)", vu_request_to_string(msg.hdr.request),
                 msg.hdr.request);
         debug("Flags:   0x%x", msg.hdr.flags);
         debug("Size:    %u", msg.hdr.size);

That will give:

33.1458: passt: epoll event on vhost-user command socket 73 (events: 0x00000001)
33.1458: ================ Vhost user message ================
33.1458: Request: VHOST_USER_SET_FEATURES (2)
33.1458: Flags:   0x1
33.1458: Size:    8
33.1458: u64: 0x0000000140008000

I think this provides enough context to understand the trace.

Thanks,
Laurent


  parent reply	other threads:[~2024-09-05  9:58 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-15 15:50 [PATCH v3 0/4] Add vhost-user support to passt. (part 3) Laurent Vivier
2024-08-15 15:50 ` [PATCH v3 1/4] packet: replace struct desc by struct iovec Laurent Vivier
2024-08-20  0:27   ` David Gibson
2024-08-15 15:50 ` [PATCH v3 2/4] vhost-user: introduce virtio API Laurent Vivier
2024-08-20  1:00   ` David Gibson
2024-08-22 22:14   ` Stefano Brivio
2024-08-15 15:50 ` [PATCH v3 3/4] vhost-user: introduce vhost-user API Laurent Vivier
2024-08-22 22:14   ` Stefano Brivio
2024-08-26  5:27     ` David Gibson
2024-08-26  7:55       ` Stefano Brivio
2024-08-26  9:53         ` David Gibson
2024-08-26  5:26   ` David Gibson
2024-08-26 22:14     ` Stefano Brivio
2024-08-27  4:42       ` David Gibson
2024-09-05  9:58     ` Laurent Vivier [this message]
2024-08-15 15:50 ` [PATCH v3 4/4] vhost-user: add vhost-user Laurent Vivier
2024-08-22  9:59   ` Stefano Brivio
2024-08-22 22:14   ` Stefano Brivio
2024-08-23 12:32   ` Stefano Brivio
2024-08-20 22:41 ` [PATCH v3 0/4] Add vhost-user support to passt. (part 3) Stefano Brivio
2024-08-22 16:53   ` Stefano Brivio
2024-08-23 12:32     ` Stefano Brivio

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=c63b8ab0-e947-45a6-9aaa-2392ccdfa51f@redhat.com \
    --to=lvivier@redhat.com \
    --cc=david@gibson.dropbear.id.au \
    --cc=passt-dev@passt.top \
    /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.
Code repositories for project(s) associated with this public inbox

	https://passt.top/passt

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 IMAP folder(s).