Searched refs:VHOST_USER_HDR_SIZE (Results 1 – 5 of 5) sorted by relevance
/qemu/tests/qtest/ |
H A D | vhost-user-test.c | 131 #define VHOST_USER_HDR_SIZE (sizeof(m.request) \ macro 135 #define VHOST_USER_PAYLOAD_SIZE (sizeof(m) - VHOST_USER_HDR_SIZE) 329 return VHOST_USER_HDR_SIZE; in chr_can_read() 347 if (size != VHOST_USER_HDR_SIZE) { in chr_read() 353 memcpy(p, buf, VHOST_USER_HDR_SIZE); in chr_read() 356 p += VHOST_USER_HDR_SIZE; in chr_read() 382 VHOST_USER_HDR_SIZE + msg.size); in chr_read() 413 qemu_chr_fe_write_all(chr, p, VHOST_USER_HDR_SIZE + msg.size); in chr_read() 446 qemu_chr_fe_write_all(chr, p, VHOST_USER_HDR_SIZE + msg.size); in chr_read() 488 qemu_chr_fe_write_all(chr, p, VHOST_USER_HDR_SIZE); in chr_read() [all …]
|
/qemu/util/ |
H A D | vhost-user-server.c | 115 .iov_len = VHOST_USER_HDR_SIZE, in vu_message_read() 176 } while (read_bytes != VHOST_USER_HDR_SIZE); in vu_message_read()
|
/qemu/hw/virtio/ |
H A D | vhost-user.c | 235 #define VHOST_USER_HDR_SIZE (sizeof(VhostUserHeader)) macro 280 int r, size = VHOST_USER_HDR_SIZE; in vhost_user_read_header() 324 p += VHOST_USER_HDR_SIZE; in vhost_user_read() 387 int ret, size = VHOST_USER_HDR_SIZE + msg->hdr.size; in vhost_user_write() 1661 { .iov_base = hdr, .iov_len = VHOST_USER_HDR_SIZE }, in vhost_user_send_resp() 1797 iov.iov_len = VHOST_USER_HDR_SIZE; in backend_read()
|
/qemu/subprojects/libvhost-user/ |
H A D | libvhost-user.h | 41 #define VHOST_USER_HDR_SIZE offsetof(VhostUserMsg, payload.u64) macro
|
H A D | libvhost-user.c | 542 .iov_len = VHOST_USER_HDR_SIZE, in vu_message_read_default() 614 .iov_len = VHOST_USER_HDR_SIZE, in vu_message_write() 652 rc = write(conn_fd, p + VHOST_USER_HDR_SIZE, vmsg->size); in vu_message_write()
|