vsock: lookup and setup guest_cid inside vhost_vsock_lock
authorGao feng <omarapazanadi@gmail.com>
Wed, 14 Dec 2016 11:24:36 +0000 (19:24 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 15 Dec 2016 22:12:49 +0000 (00:12 +0200)
commit6c083c2b8a0a110cad936bc0a2c089f0d8115175
tree2410b49fbd4cdf62937e2045a1e4e0c97a74daa0
parenta3cbec69727c8c149ee2b3652e184818cc269fe6
vsock: lookup and setup guest_cid inside vhost_vsock_lock

Multi vsocks may setup the same cid at the same time.

Signed-off-by: Gao feng <omarapazanadi@gmail.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
drivers/vhost/vsock.c