From: Wei Wang <wei.w.wang@intel.com>
To: marcandre.lureau@gmail.com, mst@redhat.com, stefanha@redhat.com,
pbonzini@redhat.com, qemu-devel@nongnu.org,
virtio-comment@lists.oasis-open.org
Cc: Wei Wang <wei.w.wang@intel.com>
Subject: [Qemu-devel] [PATCH v3 2/3] spec/vhost-user: add VHOST_USER_PROTOCOL_F_SET_DEVICE_ID
Date: Mon, 19 Dec 2016 19:05:53 +0800 [thread overview]
Message-ID: <1482145554-88823-3-git-send-email-wei.w.wang@intel.com> (raw)
In-Reply-To: <1482145554-88823-1-git-send-email-wei.w.wang@intel.com>
The VHOST_USER_PROTOCOL_F_SET_DEVICE_ID 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
a VHOST_USER_SET_DEVICE_ID message.
Signed-off-by: Wei Wang <wei.w.wang@intel.com>
---
docs/specs/vhost-user.txt | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/docs/specs/vhost-user.txt b/docs/specs/vhost-user.txt
index 18e49d0..80dcfc1 100644
--- a/docs/specs/vhost-user.txt
+++ b/docs/specs/vhost-user.txt
@@ -267,6 +267,7 @@ Protocol features
#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_SET_DEVICE_ID 5
Message types
-------------
@@ -479,6 +480,16 @@ Message types
The first 6 bytes of the payload contain the mac address of the guest to
allow the vhost user backend to construct and broadcast the fake RARP.
+ * VHOST_USER_SET_DEVICE_ID
+ Id: 20
+ Equivalent ioctl: N/A
+ Master payload: u64
+
+ The master sends the virtio device id to the slave. The virtio device id
+ indicates the device type of the master device.
+ This request should be sent only when VHOST_USER_PROTOCOL_F_SET_DEVICE_ID
+ has been negotiated.
+
VHOST_USER_PROTOCOL_F_REPLY_ACK:
-------------------------------
The original vhost-user specification only demands replies for certain
--
2.7.4
next prev parent reply other threads:[~2016-12-19 11:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-19 11:05 [Qemu-devel] [PATCH v3 0/3] Vhost-user Spec: extension for vhost-pci Wei Wang
2016-12-19 11:05 ` [Qemu-devel] [PATCH v3 1/3] spec/vhost-user: extend vhost-user to support the vhost-pci based inter-vm communiaction Wei Wang
2016-12-19 11:05 ` Wei Wang [this message]
2016-12-19 11:05 ` [Qemu-devel] [PATCH v3 3/3] spec/vhost-user: add the VHOST_USER_SET_VHOST_PCI message Wei Wang
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=1482145554-88823-3-git-send-email-wei.w.wang@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 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).