diff options
author | Yoann Desmouceaux <ydesmouc@cisco.com> | 2016-03-08 14:54:28 +0100 |
---|---|---|
committer | Gerrit Code Review <gerrit@fd.io> | 2016-03-14 09:13:02 +0000 |
commit | fe2da0e01a8873c2aa586cf170d276c81174b28e (patch) | |
tree | 566bd90b10741af01223d18e598aee995fdff6ef /vnet/vnet/devices/virtio/vhost-user.h | |
parent | 526b5e85468a7f4becd6c006bcba251ae6da35e2 (diff) |
Better match vhost-user specification for live migration
The specification requires logging of used vring writes to only happen
when VHOST_VRING_F_LOG flag is present in VHOST_USER_SET_VRING_ADDR
message; take that into account.
Change-Id: I9bf4b9eb43a1783b39909b1a3ea1a3bdf50d91a8
Signed-off-by: Yoann Desmouceaux <ydesmouc@cisco.com>
Diffstat (limited to 'vnet/vnet/devices/virtio/vhost-user.h')
-rw-r--r-- | vnet/vnet/devices/virtio/vhost-user.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vnet/vnet/devices/virtio/vhost-user.h b/vnet/vnet/devices/virtio/vhost-user.h index 83dbf3e3b22..be011165b1f 100644 --- a/vnet/vnet/devices/virtio/vhost-user.h +++ b/vnet/vnet/devices/virtio/vhost-user.h @@ -28,6 +28,7 @@ #define VHOST_USER_PROTOCOL_F_MQ 0 #define VHOST_USER_PROTOCOL_F_LOG_SHMFD 1 +#define VHOST_VRING_F_LOG 0 #if RTE_VERSION >= RTE_VERSION_NUM(2, 2, 0, 0) #define VHOST_USER_F_PROTOCOL_FEATURES 30 @@ -178,6 +179,7 @@ typedef struct { int kickfd; int errfd; u32 enabled; + u32 log_used; u32 callfd_idx; u32 n_since_last_int; f64 int_deadline; |