aboutsummaryrefslogtreecommitdiff
path: root/docs/specs
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2014-06-29 18:09:51 +0100
committerPeter Maydell <peter.maydell@linaro.org>2014-06-29 18:09:51 +0100
commit9328cfd2fe4a7ff86a41b2c26ea33974241d7d4e (patch)
tree3f877873730540d63eb0cf5901aedefaffa4f238 /docs/specs
parent4f9c5be9191fb08d16023fb6fde1f1d802ce4b44 (diff)
parentb4900c0e8a606bed834bd610fbae0fdf1d697ff9 (diff)
downloadqemu-9328cfd2fe4a7ff86a41b2c26ea33974241d7d4e.zip
qemu-9328cfd2fe4a7ff86a41b2c26ea33974241d7d4e.tar.gz
qemu-9328cfd2fe4a7ff86a41b2c26ea33974241d7d4e.tar.bz2
Merge remote-tracking branch 'remotes/mst/tags/for_upstream' into staging
pc,vhost,virtio fixes, enhancements virtio bi-endian support new command to resync RTC misc bugfixes and cleanups Signed-off-by: Michael S. Tsirkin <mst@redhat.com> # gpg: Signature made Sun 29 Jun 2014 17:41:13 BST using RSA key ID D28D5469 # gpg: Good signature from "Michael S. Tsirkin <mst@kernel.org>" # gpg: aka "Michael S. Tsirkin <mst@redhat.com>" * remotes/mst/tags/for_upstream: (37 commits) tests: add human format test for string output visitor vhost-net: disable when cross-endian target-ppc: enable virtio endian ambivalent support virtio-9p: use virtio wrappers to access headers virtio-serial-bus: use virtio wrappers to access headers virtio-scsi: use virtio wrappers to access headers virtio-blk: use virtio wrappers to access headers virtio-balloon: use virtio wrappers to access page frame numbers virtio-net: use virtio wrappers to access headers virtio: allow byte swapping for vring virtio: memory accessors for endian-ambivalent targets virtio: add endian-ambivalent support to VirtIODevice cpu: introduce CPUClass::virtio_is_big_endian() exec: introduce target_words_bigendian() helper virtio: add subsections to the migration stream virtio-rng: implement per-device migration calls virtio-balloon: implement per-device migration calls virtio-serial: implement per-device migration calls virtio-blk: implement per-device migration calls virtio-net: implement per-device migration calls ... Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'docs/specs')
-rw-r--r--docs/specs/vhost-user.txt36
1 files changed, 18 insertions, 18 deletions
diff --git a/docs/specs/vhost-user.txt b/docs/specs/vhost-user.txt
index 0ea767e..650bb18 100644
--- a/docs/specs/vhost-user.txt
+++ b/docs/specs/vhost-user.txt
@@ -78,14 +78,14 @@ Depending on the request type, payload can be:
Padding: 32-bit
A region is:
- ---------------------------------------
- | guest address | size | user address |
- ---------------------------------------
+ -----------------------------------------------------
+ | guest address | size | user address | mmap offset |
+ -----------------------------------------------------
Guest address: a 64-bit guest address of the region
Size: a 64-bit size
User address: a 64-bit user address
-
+ mmap offset: 64-bit offset where region starts in the mapped memory
In QEMU the vhost-user message is implemented with the following struct:
@@ -132,7 +132,7 @@ Message types
* VHOST_USER_GET_FEATURES
- Id: 2
+ Id: 1
Equivalent ioctl: VHOST_GET_FEATURES
Master payload: N/A
Slave payload: u64
@@ -141,7 +141,7 @@ Message types
* VHOST_USER_SET_FEATURES
- Id: 3
+ Id: 2
Ioctl: VHOST_SET_FEATURES
Master payload: u64
@@ -149,7 +149,7 @@ Message types
* VHOST_USER_SET_OWNER
- Id: 4
+ Id: 3
Equivalent ioctl: VHOST_SET_OWNER
Master payload: N/A
@@ -159,7 +159,7 @@ Message types
* VHOST_USER_RESET_OWNER
- Id: 5
+ Id: 4
Equivalent ioctl: VHOST_RESET_OWNER
Master payload: N/A
@@ -168,7 +168,7 @@ Message types
* VHOST_USER_SET_MEM_TABLE
- Id: 6
+ Id: 5
Equivalent ioctl: VHOST_SET_MEM_TABLE
Master payload: memory regions description
@@ -179,7 +179,7 @@ Message types
* VHOST_USER_SET_LOG_BASE
- Id: 7
+ Id: 6
Equivalent ioctl: VHOST_SET_LOG_BASE
Master payload: u64
@@ -187,7 +187,7 @@ Message types
* VHOST_USER_SET_LOG_FD
- Id: 8
+ Id: 7
Equivalent ioctl: VHOST_SET_LOG_FD
Master payload: N/A
@@ -195,7 +195,7 @@ Message types
* VHOST_USER_SET_VRING_NUM
- Id: 9
+ Id: 8
Equivalent ioctl: VHOST_SET_VRING_NUM
Master payload: vring state description
@@ -203,7 +203,7 @@ Message types
* VHOST_USER_SET_VRING_ADDR
- Id: 10
+ Id: 9
Equivalent ioctl: VHOST_SET_VRING_ADDR
Master payload: vring address description
Slave payload: N/A
@@ -212,7 +212,7 @@ Message types
* VHOST_USER_SET_VRING_BASE
- Id: 11
+ Id: 10
Equivalent ioctl: VHOST_SET_VRING_BASE
Master payload: vring state description
@@ -220,7 +220,7 @@ Message types
* VHOST_USER_GET_VRING_BASE
- Id: 12
+ Id: 11
Equivalent ioctl: VHOST_USER_GET_VRING_BASE
Master payload: vring state description
Slave payload: vring state description
@@ -229,7 +229,7 @@ Message types
* VHOST_USER_SET_VRING_KICK
- Id: 13
+ Id: 12
Equivalent ioctl: VHOST_SET_VRING_KICK
Master payload: u64
@@ -242,7 +242,7 @@ Message types
* VHOST_USER_SET_VRING_CALL
- Id: 14
+ Id: 13
Equivalent ioctl: VHOST_SET_VRING_CALL
Master payload: u64
@@ -255,7 +255,7 @@ Message types
* VHOST_USER_SET_VRING_ERR
- Id: 15
+ Id: 14
Equivalent ioctl: VHOST_SET_VRING_ERR
Master payload: u64