[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL v2 16/16] docs/zoned-storage:add zoned emulation use case
From: |
Stefan Hajnoczi |
Subject: |
[PULL v2 16/16] docs/zoned-storage:add zoned emulation use case |
Date: |
Mon, 15 May 2023 12:05:06 -0400 |
From: Sam Li <faithilikerun@gmail.com>
Add the documentation about the example of using virtio-blk driver
to pass the zoned block devices through to the guest.
Signed-off-by: Sam Li <faithilikerun@gmail.com>
Message-id: 20230508051916.178322-5-faithilikerun@gmail.com
[Fix pre-formatted code syntax
--Stefan]
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
---
docs/devel/zoned-storage.rst | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/docs/devel/zoned-storage.rst b/docs/devel/zoned-storage.rst
index da78db2783..30296d3c85 100644
--- a/docs/devel/zoned-storage.rst
+++ b/docs/devel/zoned-storage.rst
@@ -41,3 +41,22 @@ APIs for zoned storage emulation or testing.
For example, to test zone_report on a null_blk device using qemu-io is::
$ path/to/qemu-io --image-opts -n driver=host_device,filename=/dev/nullb0 -c
"zrp offset nr_zones"
+
+To expose the host's zoned block device through virtio-blk, the command line
+can be (includes the -device parameter)::
+
+ -blockdev
node-name=drive0,driver=host_device,filename=/dev/nullb0,cache.direct=on \
+ -device virtio-blk-pci,drive=drive0
+
+Or only use the -drive parameter::
+
+ -driver driver=host_device,file=/dev/nullb0,if=virtio,cache.direct=on
+
+Additionally, QEMU has several ways of supporting zoned storage, including:
+(1) Using virtio-scsi: --device scsi-block allows for the passing through of
+SCSI ZBC devices, enabling the attachment of ZBC or ZAC HDDs to QEMU.
+(2) PCI device pass-through: While NVMe ZNS emulation is available for testing
+purposes, it cannot yet pass through a zoned device from the host. To pass on
+the NVMe ZNS device to the guest, use VFIO PCI pass the entire NVMe PCI adapter
+through to the guest. Likewise, an HDD HBA can be passed on to QEMU all HDDs
+attached to the HBA.
--
2.40.1
- [PULL v2 05/16] block: add zoned BlockDriver check to block layer, (continued)
- [PULL v2 05/16] block: add zoned BlockDriver check to block layer, Stefan Hajnoczi, 2023/05/15
- [PULL v2 07/16] block: add some trace events for new block layer APIs, Stefan Hajnoczi, 2023/05/15
- [PULL v2 10/16] block: introduce zone append write for zoned devices, Stefan Hajnoczi, 2023/05/15
- [PULL v2 03/16] block/block-backend: add block layer APIs resembling Linux ZonedBlockDevice ioctls, Stefan Hajnoczi, 2023/05/15
- [PULL v2 02/16] block/file-posix: introduce helper functions for sysfs attributes, Stefan Hajnoczi, 2023/05/15
- [PULL v2 06/16] iotests: test new zone operations, Stefan Hajnoczi, 2023/05/15
- [PULL v2 09/16] file-posix: add tracking of the zone write pointers, Stefan Hajnoczi, 2023/05/15
- [PULL v2 11/16] qemu-iotests: test zone append operation, Stefan Hajnoczi, 2023/05/15
- [PULL v2 12/16] block: add some trace events for zone append, Stefan Hajnoczi, 2023/05/15
- [PULL v2 14/16] block: add accounting for zone append operation, Stefan Hajnoczi, 2023/05/15
- [PULL v2 16/16] docs/zoned-storage:add zoned emulation use case,
Stefan Hajnoczi <=
- [PULL v2 13/16] virtio-blk: add zoned storage emulation for zoned devices, Stefan Hajnoczi, 2023/05/15
- [PULL v2 15/16] virtio-blk: add some trace events for zoned emulation, Stefan Hajnoczi, 2023/05/15
- Re: [PULL v2 00/16] Block patches, Richard Henderson, 2023/05/15