On Wed, Nov 23, 2022 at 05:27:34PM +0000, manish.mishra wrote: > MSG_PEEK reads from the peek of 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: Daniel P. Berrangé <berra...@redhat.co > Suggested-by: Daniel P. Berrangé <berra...@redhat.com > Signed-off-by: manish.mishra <manish.mis...@nutanix.com>
This patch may need below squashed in or it breaks rdma builds: ===8<=== diff --git a/migration/rdma.c b/migration/rdma.c index 94a55dd95b..d8b4632094 100644 --- a/migration/rdma.c +++ b/migration/rdma.c @@ -2854,6 +2854,7 @@ static ssize_t qio_channel_rdma_readv(QIOChannel *ioc, size_t niov, int **fds, size_t *nfds, + int flags, Error **errp) { QIOChannelRDMA *rioc = QIO_CHANNEL_RDMA(ioc); ===8<=== -- Peter Xu