[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v4 1/2] block/blkio: use qemu_open() to support fd passing fo
From: |
Stefan Hajnoczi |
Subject: |
Re: [PATCH v4 1/2] block/blkio: use qemu_open() to support fd passing for virtio-blk |
Date: |
Mon, 29 May 2023 11:29:19 -0400 |
On Fri, May 26, 2023 at 05:03:03PM +0200, Stefano Garzarella wrote:
> Some virtio-blk drivers (e.g. virtio-blk-vhost-vdpa) supports the fd
> passing. Let's expose this to the user, so the management layer
> can pass the file descriptor of an already opened path.
>
> If the libblkio virtio-blk driver supports fd passing, let's always
> use qemu_open() to open the `path`, so we can handle fd passing
> from the management layer through the "/dev/fdset/N" special path.
>
> Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
> ---
>
> Notes:
> v4:
> - modified commit description
>
> v3:
> - use qemu_open() on `path` to simplify libvirt code [Jonathon]
>
> block/blkio.c | 53 ++++++++++++++++++++++++++++++++++++++++++---------
> 1 file changed, 44 insertions(+), 9 deletions(-)
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
signature.asc
Description: PGP signature