aboutsummaryrefslogtreecommitdiff
path: root/wmediumd/inc/usfstl/vhostproto.h
diff options
context:
space:
mode:
Diffstat (limited to 'wmediumd/inc/usfstl/vhostproto.h')
-rw-r--r--wmediumd/inc/usfstl/vhostproto.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/wmediumd/inc/usfstl/vhostproto.h b/wmediumd/inc/usfstl/vhostproto.h
index 579af54..28756fa 100644
--- a/wmediumd/inc/usfstl/vhostproto.h
+++ b/wmediumd/inc/usfstl/vhostproto.h
@@ -33,10 +33,23 @@ struct vhost_user_region {
uint64_t mmap_offset;
};
+struct vring_snapshot {
+ int8_t enabled;
+ int8_t sleeping;
+ int8_t triggered;
+
+ unsigned int num;
+ uint64_t desc_guest_addr;
+ uint64_t avail_guest_addr;
+ uint64_t used_guest_addr;
+ uint16_t last_avail_idx;
+};
+
struct vhost_user_snapshot {
- int8_t sleeping[NUM_SNAPSHOT_QUEUES];
+ struct vring_snapshot vrings[NUM_SNAPSHOT_QUEUES];
};
+
struct vhost_user_msg {
struct vhost_user_msg_hdr hdr;
union {