docs/s390: Fix wrong command example in s390-cpu-topology.rst
RFC 1/1 docs/s390: Fix wrong command example in s390-cpu-topology.rst
From: Zhao Liu <[email protected]>
From s390_possible_cpu_arch_ids() in hw/s390x/s390-virtio-ccw.c, the "core-id" is the index of pssible_cpus->cpus[], so it should only be less than possible_cpus->len, which is equal to ms->smp.max_cpus.
Fix the wrong "core-id" 112 because it is greater than maxcpus (36) in -smp.
---
RFC: Not tested on S390 machine, just code reading.
--- docs/devel/s390-cpu-topology.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
docs/devel/s390-cpu-topology.rst +3 -3
@@ -15,7 +15,7 @@ have default values: -smp 1,drawers=3,books=3,sockets=2,cores=2,maxcpus=36 \ -device z14-s390x-cpu,core-id=19,entitlement=high \ -device z14-s390x-cpu,core-id=11,entitlement=low \ - -device z14-s390x-cpu,core-id=112,entitlement=high \ + -device z14-s390x-cpu,core-id=12,entitlement=high \ ... Additions to query-cpus-fast
@@ -78,7 +78,7 @@ modifiers for all configured vCPUs. "dedicated": true, "thread-id": 537005, "props": { - "core-id": 112, + "core-id": 12, "socket-id": 0, "drawer-id": 3, "book-id": 2
@@ -86,7 +86,7 @@ modifiers for all configured vCPUs. "cpu-state": "operating", "entitlement": "high", "qom-path": "/machine/peripheral-anon/device[2]", - "cpu-index": 112, + "cpu-index": 12, "target": "s390x" } ]
Signature · 1 line
2.34.1
Quoted 4 lines · Zhao Liu
From: Zhao Liu <[email protected]>
From
s390_possible_cpu_arch_ids()inhw/s390x/s390-virtio-ccw.c, the "core-id" is the index of pssible_cpus->cpus[], so it should only be
s/pssible_cpus/possible_cpus/
Quoted 3 lines
less than
possible_cpus->len, which is equal toms->smp.max_cpus.Fix the wrong "core-id" 112 because it is greater than maxcpus (36) in
Maybe s/is greater/isn't less/ since the valid ids are 0-35 inclusive.
Quoted 4 lines
-smp.
Cc Nina Schoetterl-Glausch <[email protected]>Signed-off-by Zhao Liu <[email protected]>
Thanks!
Quoted 37 lines
---
RFC: Not tested on S390 machine, just code reading.--- docs/devel/s390-cpu-topology.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)docs/devel/s390-cpu-topology.rst +3
-3@@ -15,7 +15,7 @@ have default values: -smp 1,drawers=3,books=3,sockets=2,cores=2,maxcpus=36 \ -device z14-s390x-cpu,core-id=19,entitlement=high \ -device z14-s390x-cpu,core-id=11,entitlement=low \ - -device z14-s390x-cpu,core-id=112,entitlement=high \ + -device z14-s390x-cpu,core-id=12,entitlement=high \ Additions to query-cpus-fast@@ -78,7 +78,7 @@ modifiers for all configured vCPUs. "dedicated": true, "thread-id": 537005, "props": { - "core-id": 112, + "core-id": 12, "socket-id": 0, "drawer-id": 3, "book-id": 2@@ -86,7 +86,7 @@ modifiers for all configured vCPUs. "cpu-state": "operating", "entitlement": "high", "qom-path": "/machine/peripheral-anon/device[2]", - "cpu-index": 112, + "cpu-index": 12, "target": "s390x" } ]
Hi Nina,
Quoted 5 lines · Nina Schoetterl-Glausch
Date: Mon, 27 Nov 2023 13:58:32 +0100
From: Nina Schoetterl-Glausch <[email protected]>
Subject: Re: [RFC] docs/s390: Fix wrong command example in
s390-cpu-topology.rst
Quoted 7 lines
Quoted 4 lines · Zhao Liu
From: Zhao Liu <[email protected]>
From
s390_possible_cpu_arch_ids()inhw/s390x/s390-virtio-ccw.c, the "core-id" is the index of pssible_cpus->cpus[], so it should only bes/pssible_cpus/possible_cpus/
Thanks!
Quoted 6 lines
Quoted 4 lines
less than
possible_cpus->len, which is equal toms->smp.max_cpus.Fix the wrong "core-id" 112 because it is greater than maxcpus (36) in
Maybe s/is greater/isn't less/ since the valid ids are 0-35 inclusive.
Ok.
Quoted 7 lines
Quoted 5 lines
-smp.
Cc Nina Schoetterl-Glausch <[email protected]>Signed-off-by Zhao Liu <[email protected]>Reviewed-by Nina Schoetterl-Glausch <[email protected]>
Thanks! Let me refresh a new version quickly.
-Zhao