Home
last modified time | relevance | path

Searched refs:guest_cid (Results 1 – 3 of 3) sorted by relevance

/Linux-v4.19/drivers/vhost/
Dvsock.c45 u32 guest_cid; member
53 static struct vhost_vsock *__vhost_vsock_get(u32 guest_cid) in __vhost_vsock_get() argument
58 u32 other_cid = vsock->guest_cid; in __vhost_vsock_get()
64 if (other_cid == guest_cid) in __vhost_vsock_get()
72 static struct vhost_vsock *vhost_vsock_get(u32 guest_cid) in vhost_vsock_get() argument
77 vsock = __vhost_vsock_get(guest_cid); in vhost_vsock_get()
395 if (le64_to_cpu(pkt->hdr.src_cid) == vsock->guest_cid) in vhost_vsock_handle_tx_kick()
521 vsock->guest_cid = 0; /* no CID assigned yet */ in vhost_vsock_dev_open()
608 static int vhost_vsock_set_cid(struct vhost_vsock *vsock, u64 guest_cid) in vhost_vsock_set_cid() argument
613 if (guest_cid <= VMADDR_CID_HOST || in vhost_vsock_set_cid()
[all …]
/Linux-v4.19/net/vmw_vsock/
Dvirtio_transport.c66 u32 guest_cid; member
78 return vsock->guest_cid; in virtio_transport_get_local_cid()
204 if (le64_to_cpu(pkt->hdr.dst_cid) == vsock->guest_cid) in virtio_transport_send_pkt()
426 __le64 guest_cid; in virtio_vsock_update_guest_cid() local
428 vdev->config->get(vdev, offsetof(struct virtio_vsock_config, guest_cid), in virtio_vsock_update_guest_cid()
429 &guest_cid, sizeof(guest_cid)); in virtio_vsock_update_guest_cid()
430 vsock->guest_cid = le64_to_cpu(guest_cid); in virtio_vsock_update_guest_cid()
/Linux-v4.19/include/uapi/linux/
Dvirtio_vsock.h42 __le64 guest_cid; member