Searched refs:vmsg (Results 1 – 6 of 6) sorted by relevance
/openbmc/qemu/subprojects/libvhost-user/ |
H A D | libvhost-user.c | 489 vmsg_close_fds(VhostUserMsg *vmsg) in vmsg_close_fds() argument 493 for (i = 0; i < vmsg->fd_num; i++) { in vmsg_close_fds() 494 close(vmsg->fds[i]); in vmsg_close_fds() 499 static void vmsg_set_reply_u64(VhostUserMsg *vmsg, uint64_t val) in vmsg_set_reply_u64() argument 501 vmsg->flags = 0; /* defaults will be set by vu_send_reply() */ in vmsg_set_reply_u64() 502 vmsg->size = sizeof(vmsg->payload.u64); in vmsg_set_reply_u64() 503 vmsg->payload.u64 = val; in vmsg_set_reply_u64() 504 vmsg->fd_num = 0; in vmsg_set_reply_u64() 537 vu_message_read_default(VuDev *dev, int conn_fd, VhostUserMsg *vmsg) in vu_message_read_default() argument 541 .iov_base = (char *)vmsg, in vu_message_read_default() [all …]
|
H A D | libvhost-user.h | 241 typedef int (*vu_process_msg_cb) (VuDev *dev, VhostUserMsg *vmsg, 243 typedef bool (*vu_read_msg_cb) (VuDev *dev, int sock, VhostUserMsg *vmsg);
|
/openbmc/qemu/util/ |
H A D | vhost-user-server.c | 57 static void vmsg_close_fds(VhostUserMsg *vmsg) in vmsg_close_fds() argument 60 for (i = 0; i < vmsg->fd_num; i++) { in vmsg_close_fds() 61 close(vmsg->fds[i]); in vmsg_close_fds() 65 static void vmsg_unblock_fds(VhostUserMsg *vmsg) in vmsg_unblock_fds() argument 75 if (vmsg->request == VHOST_USER_ADD_MEM_REG || in vmsg_unblock_fds() 76 vmsg->request == VHOST_USER_SET_MEM_TABLE) { in vmsg_unblock_fds() 80 for (i = 0; i < vmsg->fd_num; i++) { in vmsg_unblock_fds() 81 qemu_socket_set_nonblock(vmsg->fds[i]); in vmsg_unblock_fds() 111 vu_message_read(VuDev *vu_dev, int conn_fd, VhostUserMsg *vmsg) in vu_message_read() argument 114 .iov_base = (char *)vmsg, in vu_message_read() [all …]
|
/openbmc/qemu/tests/ |
H A D | vhost-user-bridge.c | 419 vubr_send_rarp_exec(VuDev *dev, VhostUserMsg *vmsg) in vubr_send_rarp_exec() argument 426 vubr_process_msg(VuDev *dev, VhostUserMsg *vmsg, int *do_reply) in vubr_process_msg() argument 428 switch (vmsg->request) { in vubr_process_msg() 430 *do_reply = vubr_send_rarp_exec(dev, vmsg); in vubr_process_msg()
|
/openbmc/qemu/block/export/ |
H A D | vhost-user-blk-server.c | 193 static int vu_blk_process_msg(VuDev *dev, VhostUserMsg *vmsg, int *do_reply) in vu_blk_process_msg() argument 195 if (vmsg->request == VHOST_USER_NONE) { in vu_blk_process_msg()
|
/openbmc/qemu/contrib/vhost-user-gpu/ |
H A D | vhost-user-gpu.c | 807 VhostUserGpuMsg vmsg = { in vg_resource_flush() local 818 vg_send_msg(g, &vmsg, -1); in vg_resource_flush()
|