All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] hw/nvme: fix example serial in documentation
@ 2022-06-27 12:39 Niklas Cassel via
  2022-06-27 17:11 ` Klaus Jensen
  2022-06-28 12:26 ` Daniel P. Berrangé
  0 siblings, 2 replies; 4+ messages in thread
From: Niklas Cassel via @ 2022-06-27 12:39 UTC (permalink / raw)
  To: kbusch, its; +Cc: qemu-block, qemu-devel, Niklas Cassel

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>
---
 docs/system/devices/nvme.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/docs/system/devices/nvme.rst b/docs/system/devices/nvme.rst
index aba253304e..30f841ef62 100644
--- a/docs/system/devices/nvme.rst
+++ b/docs/system/devices/nvme.rst
@@ -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:
-- 
2.36.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] hw/nvme: fix example serial in documentation
  2022-06-27 12:39 [PATCH] hw/nvme: fix example serial in documentation Niklas Cassel via
@ 2022-06-27 17:11 ` Klaus Jensen
  2022-06-28 12:26 ` Daniel P. Berrangé
  1 sibling, 0 replies; 4+ messages in thread
From: Klaus Jensen @ 2022-06-27 17:11 UTC (permalink / raw)
  To: Niklas Cassel; +Cc: kbusch, qemu-block, qemu-devel

[-- Attachment #1: Type: text/plain, Size: 1367 bytes --]

On Jun 27 14:39, Niklas Cassel wrote:
> 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>
> ---
>  docs/system/devices/nvme.rst | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/docs/system/devices/nvme.rst b/docs/system/devices/nvme.rst
> index aba253304e..30f841ef62 100644
> --- a/docs/system/devices/nvme.rst
> +++ b/docs/system/devices/nvme.rst
> @@ -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:
> -- 
> 2.36.1
> 

Woops!

Thanks Niklas, applied to nvme-next!

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] hw/nvme: fix example serial in documentation
  2022-06-27 12:39 [PATCH] hw/nvme: fix example serial in documentation Niklas Cassel via
  2022-06-27 17:11 ` Klaus Jensen
@ 2022-06-28 12:26 ` Daniel P. Berrangé
  2022-06-28 12:31   ` Klaus Jensen
  1 sibling, 1 reply; 4+ messages in thread
From: Daniel P. Berrangé @ 2022-06-28 12:26 UTC (permalink / raw)
  To: Niklas Cassel; +Cc: kbusch, its, qemu-block, qemu-devel

On Mon, Jun 27, 2022 at 02:39:57PM +0200, Niklas Cassel via wrote:
> 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.

Given this description...

>  
>     -device nvme-subsys,id=nvme-subsys-0,nqn=subsys0

...I'm wondering why 'serial' isn't a property of this device..

> -   -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

..rather than requiring it to be redundantly set to the same value here ?

With regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] hw/nvme: fix example serial in documentation
  2022-06-28 12:26 ` Daniel P. Berrangé
@ 2022-06-28 12:31   ` Klaus Jensen
  0 siblings, 0 replies; 4+ messages in thread
From: Klaus Jensen @ 2022-06-28 12:31 UTC (permalink / raw)
  To: Daniel P. Berrangé; +Cc: Niklas Cassel, kbusch, qemu-block, qemu-devel

[-- Attachment #1: Type: text/plain, Size: 959 bytes --]

On Jun 28 13:26, Daniel P. Berrangé wrote:
> On Mon, Jun 27, 2022 at 02:39:57PM +0200, Niklas Cassel via wrote:
> > 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.
> 
> Given this description...
> 
> >  
> >     -device nvme-subsys,id=nvme-subsys-0,nqn=subsys0
> 
> ...I'm wondering why 'serial' isn't a property of this device..
> 
> > -   -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
> 
> ..rather than requiring it to be redundantly set to the same value here ?
> 

-device nvme can be used without a subsystem device, and in that case
the serial must be set. However, you are right that we could not require
it if set on the subsystem device.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-06-28 12:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-27 12:39 [PATCH] hw/nvme: fix example serial in documentation Niklas Cassel via
2022-06-27 17:11 ` Klaus Jensen
2022-06-28 12:26 ` Daniel P. Berrangé
2022-06-28 12:31   ` Klaus Jensen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.