]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_vhost/vhost.h
vhost: protect active rings from async ring changes
[dpdk.git] / lib / librte_vhost / vhost.h
index b2bf0e833cce2985e68fcbbb07062953c2fcf030..e52a9b69c633c699488d1176de94946a56be730c 100644 (file)
@@ -81,12 +81,14 @@ struct vhost_virtqueue {
 
        /* Backend value to determine if device should started/stopped */
        int                     backend;
+       int                     enabled;
+       int                     access_ok;
+       rte_spinlock_t          access_lock;
+
        /* Used to notify the guest (trigger interrupt) */
        int                     callfd;
        /* Currently unused as polling mode is enabled */
        int                     kickfd;
-       int                     enabled;
-       int                     access_ok;
 
        /* Physical address of used ring, for logging */
        uint64_t                log_guest_addr;