diff options
| author | Victor Kaplansky | 2015-11-11 15:26:02 +0100 |
|---|---|---|
| committer | Michael S. Tsirkin | 2015-11-12 14:49:33 +0100 |
| commit | 2b8819c6eee517c1582983773f8555bb3f9ed645 (patch) | |
| tree | 92e42beb3ea73822d83b4457a384b41c5ade612a /docs | |
| parent | virtio-pci: unbreak queue_enable read (diff) | |
| download | qemu-2b8819c6eee517c1582983773f8555bb3f9ed645.tar.gz qemu-2b8819c6eee517c1582983773f8555bb3f9ed645.tar.xz qemu-2b8819c6eee517c1582983773f8555bb3f9ed645.zip | |
vhost-user: modify SET_LOG_BASE to pass mmap size and offset
Unlike the kernel, vhost-user application accesses log table by
mmaping it to its user space. This change adds two new fields to
VhostUserMsg payload: mmap_size, and mmap_offset and make QEMU to
pass the to vhost-user application in VHOST_USER_SET_LOG_BASE
request.
Signed-off-by: Victor Kaplansky <victork@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/specs/vhost-user.txt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/docs/specs/vhost-user.txt b/docs/specs/vhost-user.txt index e0d71e27e6..eb8f2b2020 100644 --- a/docs/specs/vhost-user.txt +++ b/docs/specs/vhost-user.txt @@ -98,6 +98,7 @@ typedef struct VhostUserMsg { struct vhost_vring_state state; struct vhost_vring_addr addr; VhostUserMemory memory; + VhostUserLog log; }; } QEMU_PACKED VhostUserMsg; @@ -282,7 +283,12 @@ Message types Master payload: u64 Slave payload: N/A - Sets the logging base address. + Sets logging shared memory space. + When slave has VHOST_USER_PROTOCOL_F_LOG_SHMFD protocol + feature, the log memory fd is provided in the ancillary data of + VHOST_USER_SET_LOG_BASE message, the size and offset of shared + memory area provided in the message. + * VHOST_USER_SET_LOG_FD |
