Searched refs:vvc (Results 1 – 3 of 3) sorted by relevance
/openbmc/qemu/hw/virtio/ |
H A D | vhost-vsock-common.c | 32 VHostVSockCommon *vvc = VHOST_VSOCK_COMMON(vdev); in vhost_vsock_common_get_features() local 34 if (vvc->seqpacket != ON_OFF_AUTO_OFF) { in vhost_vsock_common_get_features() 38 features = vhost_get_features(&vvc->vhost_dev, feature_bits, features); in vhost_vsock_common_get_features() 40 if (vvc->seqpacket == ON_OFF_AUTO_ON && in vhost_vsock_common_get_features() 50 VHostVSockCommon *vvc = VHOST_VSOCK_COMMON(vdev); in vhost_vsock_common_start() local 61 ret = vhost_dev_enable_notifiers(&vvc->vhost_dev, vdev); in vhost_vsock_common_start() 67 ret = k->set_guest_notifiers(qbus->parent, vvc->vhost_dev.nvqs, true); in vhost_vsock_common_start() 73 vvc->vhost_dev.acked_features = vdev->guest_features; in vhost_vsock_common_start() 74 ret = vhost_dev_start(&vvc->vhost_dev, vdev, true); in vhost_vsock_common_start() 85 for (i = 0; i < vvc->vhost_dev.nvqs; i++) { in vhost_vsock_common_start() [all …]
|
H A D | vhost-vsock.c | 35 VHostVSockCommon *vvc = VHOST_VSOCK_COMMON(vdev); in vhost_vsock_set_guest_cid() local 37 const VhostOps *vhost_ops = vvc->vhost_dev.vhost_ops; in vhost_vsock_set_guest_cid() 44 ret = vhost_ops->vhost_vsock_set_guest_cid(&vvc->vhost_dev, in vhost_vsock_set_guest_cid() 54 VHostVSockCommon *vvc = VHOST_VSOCK_COMMON(vdev); in vhost_vsock_set_running() local 55 const VhostOps *vhost_ops = vvc->vhost_dev.vhost_ops; in vhost_vsock_set_running() 62 ret = vhost_ops->vhost_vsock_set_running(&vvc->vhost_dev, start); in vhost_vsock_set_running() 72 VHostVSockCommon *vvc = VHOST_VSOCK_COMMON(vdev); in vhost_vsock_set_status() local 76 if (vhost_dev_is_started(&vvc->vhost_dev) == should_start) { in vhost_vsock_set_status() 125 VHostVSockCommon *vvc = VHOST_VSOCK_COMMON(dev); in vhost_vsock_device_realize() local 171 ret = vhost_dev_init(&vvc->vhost_dev, (void *)(uintptr_t)vhostfd, in vhost_vsock_device_realize() [all …]
|
H A D | vhost-user-vsock.c | 59 VHostVSockCommon *vvc = VHOST_VSOCK_COMMON(vdev); in vuv_set_status() local 62 if (vhost_dev_is_started(&vvc->vhost_dev) == should_start) { in vuv_set_status() 80 VHostVSockCommon *vvc = VHOST_VSOCK_COMMON(vdev); in vuv_get_features() local 82 features = vhost_get_features(&vvc->vhost_dev, user_feature_bits, features); in vuv_get_features() 94 VHostVSockCommon *vvc = VHOST_VSOCK_COMMON(dev); in vuv_device_realize() local 110 vhost_dev_set_config_notifier(&vvc->vhost_dev, &vsock_ops); in vuv_device_realize() 112 ret = vhost_dev_init(&vvc->vhost_dev, &vsock->vhost_user, in vuv_device_realize() 118 ret = vhost_dev_get_config(&vvc->vhost_dev, (uint8_t *)&vsock->vsockcfg, in vuv_device_realize() 127 vhost_dev_cleanup(&vvc->vhost_dev); in vuv_device_realize() 136 VHostVSockCommon *vvc = VHOST_VSOCK_COMMON(dev); in vuv_device_unrealize() local [all …]
|