Home
last modified time | relevance | path

Searched refs:vsock (Results 1 – 16 of 16) sorted by relevance

/qemu/hw/virtio/
H A Dvhost-user-vsock.c31 VHostUserVSock *vsock = VHOST_USER_VSOCK(vdev); in vuv_get_config() local
33 memcpy(config, &vsock->vsockcfg, sizeof(struct virtio_vsock_config)); in vuv_get_config()
38 VHostUserVSock *vsock = VHOST_USER_VSOCK(dev->vdev); in vuv_handle_config_change() local
40 int ret = vhost_dev_get_config(dev, (uint8_t *)&vsock->vsockcfg, in vuv_handle_config_change()
96 VHostUserVSock *vsock = VHOST_USER_VSOCK(dev); in vuv_device_realize() local
99 if (!vsock->conf.chardev.chr) { in vuv_device_realize()
104 if (!vhost_user_init(&vsock->vhost_user, &vsock->conf.chardev, errp)) { in vuv_device_realize()
112 ret = vhost_dev_init(&vvc->vhost_dev, &vsock->vhost_user, in vuv_device_realize()
130 vhost_user_cleanup(&vsock->vhost_user); in vuv_device_realize()
138 VHostUserVSock *vsock = VHOST_USER_VSOCK(dev); in vuv_device_unrealize() local
[all …]
H A Dvhost-vsock.c26 VHostVSock *vsock = VHOST_VSOCK(vdev); in vhost_vsock_get_config() local
29 virtio_stq_p(vdev, &vsockcfg.guest_cid, vsock->conf.guest_cid); in vhost_vsock_get_config()
36 VHostVSock *vsock = VHOST_VSOCK(vdev); in vhost_vsock_set_guest_cid() local
45 vsock->conf.guest_cid); in vhost_vsock_set_guest_cid()
127 VHostVSock *vsock = VHOST_VSOCK(dev); in vhost_vsock_device_realize() local
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()
142 if (vsock->conf.vhostfd) { in vhost_vsock_device_realize()
143 vhostfd = monitor_fd_param(monitor_cur(), vsock->conf.vhostfd, errp); in vhost_vsock_device_realize()
H A Dmeson.build6 system_virtio_ss.add(when: 'CONFIG_VHOST_VSOCK_COMMON', if_true: files('vhost-vsock-common.c'))
54 specific_virtio_ss.add(when: 'CONFIG_VHOST_VSOCK', if_true: files('vhost-vsock.c'))
55 specific_virtio_ss.add(when: 'CONFIG_VHOST_USER_VSOCK', if_true: files('vhost-user-vsock.c'))
63 virtio_pci_ss.add(when: 'CONFIG_VHOST_VSOCK', if_true: files('vhost-vsock-pci.c'))
64 virtio_pci_ss.add(when: 'CONFIG_VHOST_USER_VSOCK', if_true: files('vhost-user-vsock-pci.c'))
/qemu/docs/system/i386/
H A Dnitro-enclave.rst9 on Firecracker microvm with a vhost-vsock device for communication with the
18 which can be difficult for debugging due to its roots in security. The vsock
19 device emulation is done using vhost-user-vsock which means another process that
20 can do the userspace emulation, like `vhost-device-vsock`_ from rust-vmm crate,
21 must be run alongside nitro-enclave for the vsock communication to work.
28 .. _vhost-device-vsock: https://github.com/rust-vmm/vhost-device/tree/main/vhost-device-vsock
39 - nitro-enclave.vsock=string (required) (Id of the chardev from '-chardev' option that vhost-user-v…
48 First, run `vhost-device-vsock`__ (or a similar tool that supports vhost-user-vsock).
53 __ https://github.com/rust-vmm/vhost-device/tree/main/vhost-device-vsock#using-the-vsock-backend
55 $ vhost-device-vsock \
[all …]
/qemu/qapi/
H A Dsockets.json19 # @vsock: vsock family (since 2.8)
26 'data': [ 'ipv4', 'ipv6', 'unix', 'vsock', 'unknown' ] }
102 # Captures a socket address in the vsock namespace.
191 'vsock': 'VsockSocketAddressWrapper',
206 # @vsock: VMCI address
213 'data': [ 'inet', 'unix', 'vsock', 'fd' ] }
230 'vsock': 'VsockSocketAddress',
H A Dvirtio.json580 # Get VirtQueueStatus for virtio-vsock (vhost-vsock running)
730 # :title: Get vhost_virtqueue status for vhost-vsock
/qemu/hw/i386/
H A Dnitro_enclave.c50 VHostUserVSock *vsock = VHOST_USER_VSOCK(dev); in vhost_user_vsock_init() local
53 if (!nems->vsock) { in vhost_user_vsock_init()
65 Chardev *chardev = qemu_chr_find(nems->vsock); in vhost_user_vsock_init()
67 error_report("Failed to find chardev with id %s", nems->vsock); in vhost_user_vsock_init()
71 vsock->conf.chardev.chr = chardev; in vhost_user_vsock_init()
237 return g_strdup(nems->vsock); in nitro_enclave_get_vsock_chardev_id()
245 g_free(nems->vsock); in nitro_enclave_set_vsock_chardev_id()
246 nems->vsock = g_strdup(value); in nitro_enclave_set_vsock_chardev_id()
/qemu/tests/qtest/
H A Dmigration-helpers.c47 addr->u.vsock.cid, in SocketAddress_to_str()
48 addr->u.vsock.port); in SocketAddress_to_str()
74 qdict_put_str(dict, "cid", addr->u.vsock.cid); in SocketAddress_to_qdict()
75 qdict_put_str(dict, "port", addr->u.vsock.port); in SocketAddress_to_qdict()
/qemu/util/
H A Dqemu-sockets.c1066 addr->u.vsock.cid, in socket_uri()
1067 addr->u.vsock.port); in socket_uri()
1096 if (vsock_parse(&addr->u.vsock, str + strlen("vsock:"), errp)) { in socket_parse()
1179 fd = vsock_connect_saddr(&addr->u.vsock, errp); in socket_connect()
1226 fd = vsock_listen_saddr(&addr->u.vsock, num, errp); in socket_listen()
1353 vaddr = &addr->u.vsock; in socket_sockaddr_to_address_vsock()
1426 QAPI_CLONE_MEMBERS(VsockSocketAddress, &addr->u.vsock, in socket_address_flatten()
1427 addr_legacy->u.vsock.data); in socket_address_flatten()
/qemu/include/hw/i386/
H A Dnitro_enclave.h36 char *vsock; member
/qemu/docs/interop/
H A Dvhost-user.json34 # @vsock: virtio vsock transport
55 'vsock',
H A Dqemu-ga.rst58 ``isa-serial``, or ``vsock-listen`` (``virtio-serial`` is the default).
65 vsock-listen are written as ``<cid>:<port>``.
/qemu/hw/s390x/
H A Dmeson.build49 virtio_ss.add(when: 'CONFIG_VHOST_VSOCK', if_true: files('vhost-vsock-ccw.c'))
/qemu/docs/specs/
H A Dpci-ids.rst33 vsock device (bug compatibility)
/qemu/docs/system/devices/
H A Dvhost-user.rst58 * - vhost-user-vsock
/qemu/chardev/
H A Dchar-socket.c444 s->addr->u.vsock.cid, in qemu_chr_socket_address()
445 s->addr->u.vsock.port); in qemu_chr_socket_address()