From: Wei Wang <wei.w.wang@intel.com>
To: "Marc-André Lureau" <marcandre.lureau@gmail.com>
Cc: mst@redhat.com, stefanha@redhat.com, pbonzini@redhat.com,
qemu-devel@nongnu.org, virtio-comment@lists.oasis-open.org
Subject: Re: [Qemu-devel] [virtio-comment] Re: [PATCH v2 4/4] spec/vhost-user: add VHOST_USER_PROTOCOL_F_VERSATILE_SLAVE
Date: Mon, 28 Nov 2016 21:36:20 +0800 [thread overview]
Message-ID: <583C32D4.9000600@intel.com> (raw)
In-Reply-To: <CAJ+F1CL6__VrVSKCBJbmJNaog52Znj-7Pxp81ZiN12-UMHXq_w@mail.gmail.com>
On 11/28/2016 08:41 PM, Marc-André Lureau wrote:
> Hi
>
> On Thu, Nov 24, 2016 at 7:20 AM Wei Wang <wei.w.wang@intel.com
> <mailto:wei.w.wang@intel.com>> wrote:
>
> The VHOST_USER_PROTOCOL_F_VERSATILE_SLAVE protocol feature indicates
> that the slave side implementation supports different types of
> devices.
> The master tells the slave what type of device to create by sending
> the VHOST_USER_SET_DEV_INFO message.
>
> Signed-off-by: Wei Wang <wei.w.wang@intel.com
> <mailto:wei.w.wang@intel.com>>
> ---
> docs/specs/vhost-user.txt | 21 ++++++++++++++++-----
> 1 file changed, 16 insertions(+), 5 deletions(-)
>
> diff --git a/docs/specs/vhost-user.txt b/docs/specs/vhost-user.txt
> index fdc99ea..da1314d 100644
> --- a/docs/specs/vhost-user.txt
> +++ b/docs/specs/vhost-user.txt
> @@ -264,11 +264,12 @@ restarted.
> Protocol features
> -----------------
>
> -#define VHOST_USER_PROTOCOL_F_MQ 0
> -#define VHOST_USER_PROTOCOL_F_LOG_SHMFD 1
> -#define VHOST_USER_PROTOCOL_F_RARP 2
> -#define VHOST_USER_PROTOCOL_F_REPLY_ACK 3
> -#define VHOST_USER_PROTOCOL_F_VHOST_PCI 4
> +#define VHOST_USER_PROTOCOL_F_MQ 0
> +#define VHOST_USER_PROTOCOL_F_LOG_SHMFD 1
> +#define VHOST_USER_PROTOCOL_F_RARP 2
> +#define VHOST_USER_PROTOCOL_F_REPLY_ACK 3
> +#define VHOST_USER_PROTOCOL_F_VHOST_PCI 4
> +#define VHOST_USER_PROTOCOL_F_VERSATILE_SLAVE 5
>
>
> I would rather name it after the message,
> VHOST_USER_PROTOCOL_F_SET_DEV_INFO
OK, I will take this suggestion. Thanks. <*v2-AR1*>
>
>
> Message types
> -------------
> @@ -514,6 +515,16 @@ Message types
> #define VHOST_USER_SET_PEER_CONNECTION_F_CREATE 2
> #define VHOST_USER_SET_PEER_CONNECTION_F_DESTROY 3
>
> + * VHOST_USER_SET_DEV_INFO
> +
> + Id: 21
> + Equivalent ioctl: N/A
> + Master payload: u64
>
> +
> + The master sends the device type info to the slave.
>
>
> What is the meaning of this payload? Is it the virtio device id?
> better be explicit about it.
>
> If it is the case, I would name the message "VHOST_USER_SET_DEVICE_ID".
Yes, currently we only have the virtio device id as the payload. I was
thinking that in the future we would have other more info about the
device. But no problem, I will change to use "VHOST_USER_SET_DEVICE_ID"
for now. <*v2-AR2*>
Best,
Wei
prev parent reply other threads:[~2016-11-28 13:35 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-24 3:20 [Qemu-devel] [PATCH v2 0/4] *** vhost-user spec extension for vhost-pci *** Wei Wang
2016-11-24 3:20 ` [Qemu-devel] [PATCH v2 1/4] spec/vhost-user: fix the VHOST_USER prefix Wei Wang
2016-11-28 6:02 ` Marc-André Lureau
2016-11-24 3:20 ` [Qemu-devel] [PATCH v2 2/4] spec/vhost-user: extend vhost-user to support the vhost-pci based inter-vm communiaction Wei Wang
2016-11-24 3:20 ` [Qemu-devel] [PATCH v2 3/4] spec/vhost-user: add the VHOST_USER_SET_PEER_CONNECTION message Wei Wang
2016-11-24 3:20 ` [Qemu-devel] [PATCH v2 4/4] spec/vhost-user: add VHOST_USER_PROTOCOL_F_VERSATILE_SLAVE Wei Wang
2016-11-28 12:41 ` Marc-André Lureau
2016-11-28 13:36 ` Wei Wang [this message]
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=583C32D4.9000600@intel.com \
--to=wei.w.wang@intel.com \
--cc=marcandre.lureau@gmail.com \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.com \
--cc=virtio-comment@lists.oasis-open.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.