[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v9 04/10] hw/core: introducing drawer and books for s390x
From: |
Markus Armbruster |
Subject: |
Re: [PATCH v9 04/10] hw/core: introducing drawer and books for s390x |
Date: |
Tue, 06 Sep 2022 10:59:38 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) |
Pierre Morel <pmorel@linux.ibm.com> writes:
> S390x defines two topology levels above sockets: nbooks and drawers.
nbooks or books?
> Let's add these two levels inside the CPU topology implementation.
>
> Signed-off-by: Pierre Morel <pmorel@linux.ibm.com>
> ---
[...]
> diff --git a/qapi/machine.json b/qapi/machine.json
> index 6afd1936b0..bdd92e3cb1 100644
> --- a/qapi/machine.json
> +++ b/qapi/machine.json
> @@ -900,13 +900,15 @@
> # a CPU is being hotplugged.
> #
> # @node-id: NUMA node ID the CPU belongs to
> -# @socket-id: socket number within node/board the CPU belongs to
> +# @drawer-id: drawer number within node/board the CPU belongs to
> +# @book-id: book number within drawer/node/board the CPU belongs to
> +# @socket-id: socket number within book/node/board the CPU belongs to
> # @die-id: die number within socket the CPU belongs to (since 4.1)
> # @cluster-id: cluster number within die the CPU belongs to (since 7.1)
> # @core-id: core number within cluster the CPU belongs to
> # @thread-id: thread number within core the CPU belongs to
> #
> -# Note: currently there are 6 properties that could be present
> +# Note: currently there are 7 properties that could be present
Should this be 8?
> # but management should be prepared to pass through other
> # properties with device_add command to allow for future
> # interface extension. This also requires the filed names to be kept in
# sync with the properties passed to -device/device_add.
Not your patch's fault, but the second sentence is less than clear.
What are "the filed names"? A typo perhaps?
> @@ -916,6 +918,8 @@
> ##
> { 'struct': 'CpuInstanceProperties',
> 'data': { '*node-id': 'int',
> + '*drawer-id': 'int',
> + '*book-id': 'int',
> '*socket-id': 'int',
> '*die-id': 'int',
> '*cluster-id': 'int',
> @@ -1465,6 +1469,10 @@
> #
> # @cpus: number of virtual CPUs in the virtual machine
> #
> +# @drawers: number of drawers in the CPU topology
> +#
> +# @books: number of books in the CPU topology
> +#
> # @sockets: number of sockets in the CPU topology
> #
> # @dies: number of dies per socket in the CPU topology
> @@ -1481,6 +1489,8 @@
> ##
> { 'struct': 'SMPConfiguration', 'data': {
> '*cpus': 'int',
> + '*drawers': 'int',
> + '*books': 'int',
> '*sockets': 'int',
> '*dies': 'int',
> '*clusters': 'int',
[...]
- Re: [PATCH v9 08/10] target/s390x: interception of PTF instruction, (continued)
- [PATCH v9 05/10] s390x/cpu: reporting drawers and books topology to the guest, Pierre Morel, 2022/09/02
- [PATCH v9 04/10] hw/core: introducing drawer and books for s390x, Pierre Morel, 2022/09/02
- Re: [PATCH v9 04/10] hw/core: introducing drawer and books for s390x,
Markus Armbruster <=
- [PATCH v9 09/10] s390x/cpu_topology: activating CPU topology, Pierre Morel, 2022/09/02
- [PATCH v9 10/10] docs/s390x: document s390x cpu topology, Pierre Morel, 2022/09/02