Searched refs:guest_cid (Results 1 – 8 of 8) sorted by relevance
/openbmc/linux/drivers/vhost/ |
H A D | vsock.c | 58 u32 guest_cid; member 70 static struct vhost_vsock *vhost_vsock_get(u32 guest_cid) in vhost_vsock_get() argument 74 hash_for_each_possible_rcu(vhost_vsock_hash, vsock, hash, guest_cid) { in vhost_vsock_get() 75 u32 other_cid = vsock->guest_cid; in vhost_vsock_get() 81 if (other_cid == guest_cid) in vhost_vsock_get() 523 if (le64_to_cpu(hdr->src_cid) == vsock->guest_cid && in vhost_vsock_handle_tx_kick() 658 vsock->guest_cid = 0; /* no CID assigned yet */ in vhost_vsock_dev_open() 718 if (vsock->guest_cid) in vhost_vsock_dev_release() 747 static int vhost_vsock_set_cid(struct vhost_vsock *vsock, u64 guest_cid) in vhost_vsock_set_cid() argument 752 if (guest_cid <= VMADDR_CID_HOST || in vhost_vsock_set_cid() [all …]
|
/openbmc/qemu/hw/virtio/ |
H A D | vhost-vsock.c | 29 virtio_stq_p(vdev, &vsockcfg.guest_cid, vsock->conf.guest_cid); in vhost_vsock_get_config() 45 vsock->conf.guest_cid); in vhost_vsock_set_guest_cid() 132 if (vsock->conf.guest_cid <= 2) { in vhost_vsock_device_realize() 137 if (vsock->conf.guest_cid > UINT32_MAX) { in vhost_vsock_device_realize() 209 DEFINE_PROP_UINT64("guest-cid", VHostVSock, conf.guest_cid, 0),
|
H A D | vhost-backend.c | 232 uint64_t guest_cid) in vhost_kernel_vsock_set_guest_cid() argument 234 return vhost_kernel_call(dev, VHOST_VSOCK_SET_GUEST_CID, &guest_cid); in vhost_kernel_vsock_set_guest_cid()
|
/openbmc/linux/net/vmw_vsock/ |
H A D | virtio_transport.c | 64 u32 guest_cid; member 80 ret = vsock->guest_cid; in virtio_transport_get_local_cid() 173 if (le64_to_cpu(hdr->dst_cid) == vsock->guest_cid) { in virtio_transport_send_pkt() 339 __le64 guest_cid; in virtio_vsock_update_guest_cid() local 341 vdev->config->get(vdev, offsetof(struct virtio_vsock_config, guest_cid), in virtio_vsock_update_guest_cid() 342 &guest_cid, sizeof(guest_cid)); in virtio_vsock_update_guest_cid() 343 vsock->guest_cid = le64_to_cpu(guest_cid); in virtio_vsock_update_guest_cid()
|
/openbmc/qemu/include/hw/virtio/ |
H A D | vhost-vsock.h | 24 uint64_t guest_cid; member
|
H A D | vhost-backend.h | 112 uint64_t guest_cid);
|
/openbmc/qemu/include/standard-headers/linux/ |
H A D | virtio_vsock.h | 45 uint64_t guest_cid; member
|
/openbmc/linux/include/uapi/linux/ |
H A D | virtio_vsock.h | 45 __le64 guest_cid; member
|