* [RFC] docs/s390: Fix wrong command example in s390-cpu-topology.rst
@ 2023-11-27 9:39 Zhao Liu
2023-11-27 12:58 ` Nina Schoetterl-Glausch
0 siblings, 1 reply; 3+ messages in thread
From: Zhao Liu @ 2023-11-27 9:39 UTC (permalink / raw)
To: Nina Schoetterl-Glausch, Thomas Huth, qemu-devel, qemu-s390x; +Cc: Zhao Liu
From: Zhao Liu <zhao1.liu@intel.com>
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.
Cc: Nina Schoetterl-Glausch <nsg@linux.ibm.com>
Signed-off-by: Zhao Liu <zhao1.liu@intel.com>
---
RFC: Not tested on S390 machine, just code reading.
---
docs/devel/s390-cpu-topology.rst | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/docs/devel/s390-cpu-topology.rst b/docs/devel/s390-cpu-topology.rst
index 9eab28d5e5d8..48313b92d417 100644
--- a/docs/devel/s390-cpu-topology.rst
+++ b/docs/devel/s390-cpu-topology.rst
@@ -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"
}
]
--
2.34.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [RFC] docs/s390: Fix wrong command example in s390-cpu-topology.rst
2023-11-27 9:39 [RFC] docs/s390: Fix wrong command example in s390-cpu-topology.rst Zhao Liu
@ 2023-11-27 12:58 ` Nina Schoetterl-Glausch
2023-11-27 13:45 ` Zhao Liu
0 siblings, 1 reply; 3+ messages in thread
From: Nina Schoetterl-Glausch @ 2023-11-27 12:58 UTC (permalink / raw)
To: Zhao Liu, Thomas Huth, qemu-devel, qemu-s390x; +Cc: Zhao Liu
On Mon, 2023-11-27 at 17:39 +0800, Zhao Liu wrote:
> From: Zhao Liu <zhao1.liu@intel.com>
>
> 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
s/pssible_cpus/possible_cpus/
> 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
Maybe s/is greater/isn't less/ since the valid ids are 0-35 inclusive.
> -smp.
>
> Cc: Nina Schoetterl-Glausch <nsg@linux.ibm.com>
> Signed-off-by: Zhao Liu <zhao1.liu@intel.com>
Reviewed-by: Nina Schoetterl-Glausch <nsg@linux.ibm.com>
Thanks!
> ---
> RFC: Not tested on S390 machine, just code reading.
> ---
> docs/devel/s390-cpu-topology.rst | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/docs/devel/s390-cpu-topology.rst b/docs/devel/s390-cpu-topology.rst
> index 9eab28d5e5d8..48313b92d417 100644
> --- a/docs/devel/s390-cpu-topology.rst
> +++ b/docs/devel/s390-cpu-topology.rst
> @@ -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"
> }
> ]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [RFC] docs/s390: Fix wrong command example in s390-cpu-topology.rst
2023-11-27 12:58 ` Nina Schoetterl-Glausch
@ 2023-11-27 13:45 ` Zhao Liu
0 siblings, 0 replies; 3+ messages in thread
From: Zhao Liu @ 2023-11-27 13:45 UTC (permalink / raw)
To: Nina Schoetterl-Glausch; +Cc: Thomas Huth, qemu-devel, qemu-s390x, Zhao Liu
Hi Nina,
On Mon, Nov 27, 2023 at 01:58:32PM +0100, Nina Schoetterl-Glausch wrote:
> Date: Mon, 27 Nov 2023 13:58:32 +0100
> From: Nina Schoetterl-Glausch <nsg@linux.ibm.com>
> Subject: Re: [RFC] docs/s390: Fix wrong command example in
> s390-cpu-topology.rst
>
> On Mon, 2023-11-27 at 17:39 +0800, Zhao Liu wrote:
> > From: Zhao Liu <zhao1.liu@intel.com>
> >
> > 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
>
> s/pssible_cpus/possible_cpus/
Thanks!
>
> > 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
>
> Maybe s/is greater/isn't less/ since the valid ids are 0-35 inclusive.
Ok.
>
> > -smp.
> >
> > Cc: Nina Schoetterl-Glausch <nsg@linux.ibm.com>
> > Signed-off-by: Zhao Liu <zhao1.liu@intel.com>
>
> Reviewed-by: Nina Schoetterl-Glausch <nsg@linux.ibm.com>
Thanks! Let me refresh a new version quickly.
-Zhao
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-11-27 13:35 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-27 9:39 [RFC] docs/s390: Fix wrong command example in s390-cpu-topology.rst Zhao Liu
2023-11-27 12:58 ` Nina Schoetterl-Glausch
2023-11-27 13:45 ` Zhao Liu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).