[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v19 08/20] io: add qio_channel_readv_full_all_eof & qio_chann
From: |
Stefan Hajnoczi |
Subject: |
Re: [PATCH v19 08/20] io: add qio_channel_readv_full_all_eof & qio_channel_readv_full_all helpers |
Date: |
Thu, 14 Jan 2021 16:27:29 +0000 |
On Thu, Jan 14, 2021 at 10:40:03AM -0500, Jagannathan Raman wrote:
> +int qio_channel_readv_full_all(QIOChannel *ioc,
> + const struct iovec *iov,
> + size_t niov,
> + int **fds, size_t *nfds,
> + Error **errp)
> {
> - int ret = qio_channel_readv_all_eof(ioc, iov, niov, errp);
> + int ret = qio_channel_readv_full_all_eof(ioc, iov, niov, fds, nfds,
> errp);
>
> if (ret == 0) {
> - ret = -1;
> error_setg(errp,
> "Unexpected end-of-file before all bytes were read");
qio_channel_readv_full_all_eof() can read file descriptors but no data
and return 0.
Here that case is converted into an error and the file descriptors
aren't closed, freed, and fds/nfds isn't cleared.
signature.asc
Description: PGP signature
- [PATCH v19 03/20] memory: alloc RAM from file at offset, (continued)
- [PATCH v19 03/20] memory: alloc RAM from file at offset, Jagannathan Raman, 2021/01/14
- [PATCH v19 01/20] multi-process: add the concept description to docs/devel/qemu-multiprocess, Jagannathan Raman, 2021/01/14
- [PATCH v19 09/20] multi-process: define MPQemuMsg format and transmission functions, Jagannathan Raman, 2021/01/14
- [PATCH v19 14/20] multi-process: add proxy communication functions, Jagannathan Raman, 2021/01/14
- [PATCH v19 17/20] multi-process: Synchronize remote memory, Jagannathan Raman, 2021/01/14
- [PATCH v19 20/20] multi-process: perform device reset in the remote process, Jagannathan Raman, 2021/01/14
- [PATCH v19 18/20] multi-process: create IOHUB object to handle irq, Jagannathan Raman, 2021/01/14
- [PATCH v19 05/20] multi-process: setup PCI host bridge for remote device, Jagannathan Raman, 2021/01/14
- [PATCH v19 02/20] multi-process: add configure and usage information, Jagannathan Raman, 2021/01/14
- [PATCH v19 08/20] io: add qio_channel_readv_full_all_eof & qio_channel_readv_full_all helpers, Jagannathan Raman, 2021/01/14
- Re: [PATCH v19 08/20] io: add qio_channel_readv_full_all_eof & qio_channel_readv_full_all helpers,
Stefan Hajnoczi <=
- Re: [PATCH v19 08/20] io: add qio_channel_readv_full_all_eof & qio_channel_readv_full_all helpers, Jag Raman, 2021/01/14
- Re: [PATCH v19 08/20] io: add qio_channel_readv_full_all_eof & qio_channel_readv_full_all helpers, Daniel P . Berrangé, 2021/01/14
- Re: [PATCH v19 08/20] io: add qio_channel_readv_full_all_eof & qio_channel_readv_full_all helpers, Jag Raman, 2021/01/14
- Re: [PATCH v19 08/20] io: add qio_channel_readv_full_all_eof & qio_channel_readv_full_all helpers, Stefan Hajnoczi, 2021/01/15
- Re: [PATCH v19 08/20] io: add qio_channel_readv_full_all_eof & qio_channel_readv_full_all helpers, Jag Raman, 2021/01/15
- Re: [PATCH v19 08/20] io: add qio_channel_readv_full_all_eof & qio_channel_readv_full_all helpers, Jag Raman, 2021/01/15
- Re: [PATCH v19 08/20] io: add qio_channel_readv_full_all_eof & qio_channel_readv_full_all helpers, Stefan Hajnoczi, 2021/01/18
[PATCH v19 11/20] multi-process: Associate fd of a PCIDevice with its object, Jagannathan Raman, 2021/01/14
[PATCH v19 07/20] io: add qio_channel_writev_full_all helper, Jagannathan Raman, 2021/01/14
[PATCH v19 12/20] multi-process: setup memory manager for remote device, Jagannathan Raman, 2021/01/14