diff options
author | Tiwei Bie | 2018-05-24 12:33:32 +0200 |
---|---|---|
committer | Michael S. Tsirkin | 2018-05-24 20:14:10 +0200 |
commit | 5f57fbeaaf7c4cd33152d7f2e449caab4d4209d9 (patch) | |
tree | 01b474e9f5c11a213bd94bd59e92822ae49fef85 /docs/interop | |
parent | vhost: allow backends to filter memory sections (diff) | |
download | qemu-5f57fbeaaf7c4cd33152d7f2e449caab4d4209d9.tar.gz qemu-5f57fbeaaf7c4cd33152d7f2e449caab4d4209d9.tar.xz qemu-5f57fbeaaf7c4cd33152d7f2e449caab4d4209d9.zip |
vhost-user: allow slave to send fds via slave channel
Introduce VHOST_USER_PROTOCOL_F_SLAVE_SEND_FD protocol
feature to allow slave to send at most 8 descriptors
in each message to master via ancillary data using the
slave channel.
Suggested-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Tiwei Bie <tiwei.bie@intel.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'docs/interop')
-rw-r--r-- | docs/interop/vhost-user.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/interop/vhost-user.txt b/docs/interop/vhost-user.txt index 534caab18a..682a683eb4 100644 --- a/docs/interop/vhost-user.txt +++ b/docs/interop/vhost-user.txt @@ -367,6 +367,10 @@ The fd is provided via VHOST_USER_SET_SLAVE_REQ_FD ancillary data. A slave may then send VHOST_USER_SLAVE_* messages to the master using this fd communication channel. +If VHOST_USER_PROTOCOL_F_SLAVE_SEND_FD protocol feature is negotiated, +slave can send file descriptors (at most 8 descriptors in each message) +to master via ancillary data using this fd communication channel. + Protocol features ----------------- @@ -380,6 +384,7 @@ Protocol features #define VHOST_USER_PROTOCOL_F_CRYPTO_SESSION 7 #define VHOST_USER_PROTOCOL_F_PAGEFAULT 8 #define VHOST_USER_PROTOCOL_F_CONFIG 9 +#define VHOST_USER_PROTOCOL_F_SLAVE_SEND_FD 10 Master message types -------------------- |