Skip to content

Commit a2b2991

Browse files
conghuic23lijinxia
authored andcommitted
doc: update virtio-blk usage in HLD
Add parameters introduction for virtio-blk Signed-off-by: Conghui Chen <conghui.chen@intel.com> Reviewed-by: Shuo Liu <shuo.a.liu@intel.com> Reviewed-by: David B. Kinder <david.b.kinder@intel.com>
1 parent 2592ea8 commit a2b2991

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

doc/developer-guides/virtio-hld.rst

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,25 @@ VTBLK_F_TOPOLOGY(bit 10)
530530

531531
To use the virtio-blk device, use the following virtio command::
532532

533-
-s <slot>,virtio-blk,<filepath>
533+
-s <slot>,virtio-blk,<filepath>[,options]
534+
535+
options:
536+
537+
writethru: write operation is reported completed only when the
538+
data has been written to physical storage.
539+
540+
writeback: write operation is reported completed when data is
541+
placed in page cache. Needs to be flushed to the physical storage.
542+
543+
ro: open file with readonly mode.
544+
545+
sectorsize:
546+
1> sectorsize=<sector size>/<physical sector size>
547+
2> sectorsize=<sector size>
548+
default values for sector size and physical sector size are 512
549+
550+
range:
551+
range=<start lba in file>/<sub file size>
534552

535553
Successful booting of the User OS verifies the correctness of the
536554
device.

0 commit comments

Comments
 (0)