]> git.proxmox.com Git - mirror_qemu.git/commit - io/channel-websock.c
io: Add support for MSG_PEEK for socket channel
authormanish.mishra <manish.mishra@nutanix.com>
Tue, 20 Dec 2022 18:44:17 +0000 (18:44 +0000)
committerJuan Quintela <quintela@redhat.com>
Mon, 6 Feb 2023 18:22:56 +0000 (19:22 +0100)
commit84615a19ddf2bfb38d7b3a0d487d2397ee55e4f3
tree80eff6fda458ab19eb99ba928aac2da4f5e66b17
parentbd9510d38546a19aa2e58e1a94597acfb0fd82d4
io: Add support for MSG_PEEK for socket channel

MSG_PEEK peeks at the channel, The data is treated as unread and
the next read shall still return this data. This support is
currently added only for socket class. Extra parameter 'flags'
is added to io_readv calls to pass extra read flags like MSG_PEEK.

Reviewed-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Daniel P. Berrange <berrange@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Suggested-by: Daniel P. Berrange <berrange@redhat.com>
Signed-off-by: manish.mishra <manish.mishra@nutanix.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
16 files changed:
chardev/char-socket.c
include/io/channel.h
io/channel-buffer.c
io/channel-command.c
io/channel-file.c
io/channel-null.c
io/channel-socket.c
io/channel-tls.c
io/channel-websock.c
io/channel.c
migration/channel-block.c
migration/rdma.c
scsi/qemu-pr-helper.c
tests/qtest/tpm-emu.c
tests/unit/test-io-channel-socket.c
util/vhost-user-server.c