net/virtio-user: support memory hotplug
[dpdk.git] / drivers / net / virtio / virtio_user / virtio_user_dev.h
index ade727e..cadff0c 100644 (file)
@@ -39,6 +39,8 @@ struct virtio_user_dev {
        char            path[PATH_MAX];
        struct vring    vrings[VIRTIO_MAX_VIRTQUEUES];
        struct virtio_user_backend_ops *ops;
+       pthread_mutex_t mutex;
+       bool            started;
 };
 
 int is_vhost_user_by_type(const char *path);