[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v6 08/11] s390x: topology: Adding drawers to CPU topology
From: |
Daniel P . Berrangé |
Subject: |
Re: [PATCH v6 08/11] s390x: topology: Adding drawers to CPU topology |
Date: |
Thu, 17 Feb 2022 15:32:46 +0000 |
User-agent: |
Mutt/2.1.5 (2021-12-30) |
On Thu, Feb 17, 2022 at 04:30:06PM +0100, Pierre Morel wrote:
>
>
> On 2/17/22 15:20, Daniel P. Berrangé wrote:
> > On Thu, Feb 17, 2022 at 02:41:22PM +0100, Pierre Morel wrote:
> > > S390 CPU topology may have up to 5 topology containers.
> > > The first container above the cores is level 2, the sockets,
> > > and the level 3, containing sockets are the books.
> > >
> > > We introduce here the drawers, drawers is the level containing books.
> > >
> > > Let's add drawers, level4, containers to the CPU topology.
> > >
> > > Signed-off-by: Pierre Morel <pmorel@linux.ibm.com>
> > > ---
> > > hw/core/machine-smp.c | 33 ++++++++++++++++++++++++++-------
> > > hw/core/machine.c | 2 ++
> > > hw/s390x/s390-virtio-ccw.c | 1 +
> > > include/hw/boards.h | 4 ++++
> > > qapi/machine.json | 7 ++++++-
> > > softmmu/vl.c | 3 +++
> > > 6 files changed, 42 insertions(+), 8 deletions(-)
> >
> > Needs to update -smp args in qemu-options.hx too.
> >
>
> Oh, right!
>
> Thanks
>
> > >
>
> ...snip...
>
> > > index 73206f811a..fa6bde5617 100644
> > > --- a/qapi/machine.json
> > > +++ b/qapi/machine.json
> > > @@ -866,13 +866,14 @@
> > > # a CPU is being hotplugged.
> > > #
> > > # @node-id: NUMA node ID the CPU belongs to
> > > +# @drawer-id: drawer number within node/board the CPU belongs to
> > > # @book-id: book number within node/board the CPU belongs to
> > > # @socket-id: socket number within node/board the CPU belongs to
> >
> > So the lack of change here implies that 'socket-id' is unique
> > across multiple books/drawers. Is that correct, as its differnt
> > from semantics for die-id/core-id/thread-id which are scoped
> > to within the next level of the topology ?
>
> Hum, no I forgot to update and it needs a change.
> What about
>
> # @book-id: book number within node/board/drawer the CPU belongs to
> # @socket-id: socket number within node/board/book the CPU belongs to
>
> ?
Probably drawer/node/board and book/node/board to keep a
low -> high topology ordering
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 :|
- [PATCH v6 00/11] s390x: CPU Topology, Pierre Morel, 2022/02/17
- [PATCH v6 01/11] s390x: SCLP: reporting the maximum nested topology entries, Pierre Morel, 2022/02/17
- [PATCH v6 02/11] s390x: topology: CPU topology objects and structures, Pierre Morel, 2022/02/17
- [PATCH v6 03/11] s390x: topology: implementating Store Topology System Information, Pierre Morel, 2022/02/17
- [PATCH v6 07/11] s390x: topology: Adding books to STSI, Pierre Morel, 2022/02/17
- [PATCH v6 08/11] s390x: topology: Adding drawers to CPU topology, Pierre Morel, 2022/02/17
[PATCH v6 05/11] s390x: kvm: topology: interception of PTF instruction, Pierre Morel, 2022/02/17
[PATCH v6 04/11] s390x: CPU topology: CPU topology migration, Pierre Morel, 2022/02/17
[PATCH v6 06/11] s390x: topology: Adding books to CPU topology, Pierre Morel, 2022/02/17
[PATCH v6 11/11] s390x: topology: documentation, Pierre Morel, 2022/02/17
[PATCH v6 09/11] s390x: topology: Adding drawers to STSI, Pierre Morel, 2022/02/17
[PATCH v6 10/11] s390x: topology: implementing numa for the s390x topology, Pierre Morel, 2022/02/17