[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v5 6/8] vduse-blk: Implement vduse-blk export
From: |
Stefan Hajnoczi |
Subject: |
Re: [PATCH v5 6/8] vduse-blk: Implement vduse-blk export |
Date: |
Wed, 18 May 2022 14:50:47 +0100 |
On Wed, May 04, 2022 at 03:40:49PM +0800, Xie Yongji wrote:
> This implements a VDUSE block backends based on
> the libvduse library. We can use it to export the BDSs
> for both VM and container (host) usage.
>
> The new command-line syntax is:
>
> $ qemu-storage-daemon \
> --blockdev file,node-name=drive0,filename=test.img \
> --export vduse-blk,node-name=drive0,id=vduse-export0,writable=on
>
> After the qemu-storage-daemon started, we need to use
> the "vdpa" command to attach the device to vDPA bus:
>
> $ vdpa dev add name vduse-export0 mgmtdev vduse
>
> Also the device must be removed via the "vdpa" command
> before we stop the qemu-storage-daemon.
>
> Signed-off-by: Xie Yongji <xieyongji@bytedance.com>
> ---
> MAINTAINERS | 4 +-
> block/export/export.c | 6 +
> block/export/meson.build | 5 +
> block/export/vduse-blk.c | 312 ++++++++++++++++++++++++++++++++++
> block/export/vduse-blk.h | 20 +++
> meson.build | 13 ++
> meson_options.txt | 2 +
> qapi/block-export.json | 25 ++-
> scripts/meson-buildoptions.sh | 4 +
> 9 files changed, 388 insertions(+), 3 deletions(-)
> create mode 100644 block/export/vduse-blk.c
> create mode 100644 block/export/vduse-blk.h
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
signature.asc
Description: PGP signature
- [PATCH v5 0/8] Support exporting BDSs via VDUSE, Xie Yongji, 2022/05/04
- [PATCH v5 1/8] block: Support passing NULL ops to blk_set_dev_ops(), Xie Yongji, 2022/05/04
- [PATCH v5 2/8] block-backend: Introduce blk_get_guest_block_size(), Xie Yongji, 2022/05/04
- [PATCH v5 6/8] vduse-blk: Implement vduse-blk export, Xie Yongji, 2022/05/04
- Re: [PATCH v5 6/8] vduse-blk: Implement vduse-blk export,
Stefan Hajnoczi <=
- [PATCH v5 7/8] vduse-blk: Add vduse-blk resize support, Xie Yongji, 2022/05/04
- [PATCH v5 5/8] libvduse: Add VDUSE (vDPA Device in Userspace) library, Xie Yongji, 2022/05/04
- [PATCH v5 3/8] block/export: Abstract out the logic of virtio-blk I/O process, Xie Yongji, 2022/05/04
- [PATCH v5 4/8] linux-headers: Add vduse.h, Xie Yongji, 2022/05/04