]> www.infradead.org Git - users/dwmw2/qemu.git/commitdiff
hw/nvme: fix example serial in documentation
authorNiklas Cassel <niklas.cassel@wdc.com>
Mon, 27 Jun 2022 12:39:57 +0000 (14:39 +0200)
committerKlaus Jensen <k.jensen@samsung.com>
Fri, 15 Jul 2022 08:40:33 +0000 (10:40 +0200)
The serial prop on the controller is actually describing the nvme
subsystem serial, which has to be identical for all controllers within
the same nvme subsystem.

This is enforced since commit a859eb9f8f64 ("hw/nvme: enforce common
serial per subsystem").

Fix the documentation, so that people copying the qemu command line
example won't get an error on qemu start.

Signed-off-by: Niklas Cassel <niklas.cassel@wdc.com>
Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
docs/system/devices/nvme.rst

index aba253304e46cfaafc766520a07cca147fe175f3..30f841ef62222a35bfe960bb1f9051586bd231a9 100644 (file)
@@ -104,8 +104,8 @@ multipath I/O.
 .. code-block:: console
 
    -device nvme-subsys,id=nvme-subsys-0,nqn=subsys0
-   -device nvme,serial=a,subsys=nvme-subsys-0
-   -device nvme,serial=b,subsys=nvme-subsys-0
+   -device nvme,serial=deadbeef,subsys=nvme-subsys-0
+   -device nvme,serial=deadbeef,subsys=nvme-subsys-0
 
 This will create an NVM subsystem with two controllers. Having controllers
 linked to an ``nvme-subsys`` device allows additional ``nvme-ns`` parameters: