[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v14 03/11] target/s390x/cpu topology: handle STSI(15) and bui
From: |
Nina Schoetterl-Glausch |
Subject: |
Re: [PATCH v14 03/11] target/s390x/cpu topology: handle STSI(15) and build the SYSIB |
Date: |
Wed, 11 Jan 2023 18:14:58 +0100 |
User-agent: |
Evolution 3.46.2 (3.46.2-1.fc37) |
On Tue, 2023-01-10 at 15:29 +0100, Thomas Huth wrote:
> On 05/01/2023 15.53, Pierre Morel wrote:
> > On interception of STSI(15.1.x) the System Information Block
> > (SYSIB) is built from the list of pre-ordered topology entries.
> >
> > Signed-off-by: Pierre Morel <pmorel@linux.ibm.com>
> > ---
>
[...]
> > +void insert_stsi_15_1_x(S390CPU *cpu, int sel2, __u64 addr, uint8_t ar)
> > +{
> > + union {
> > + char place_holder[S390_TOPOLOGY_SYSIB_SIZE];
> > + SysIB_151x sysib;
> > + } buffer QEMU_ALIGNED(8) = {};
> > + int len;
> > +
> > + if (!s390_has_topology() || sel2 < 2 || sel2 >
> > SCLP_READ_SCP_INFO_MNEST) {
> > + setcc(cpu, 3);
> > + return;
> > + }
> > +
> > + len = setup_stsi(cpu, &buffer.sysib, sel2);
> > +
> > + if (len > 4096) {
>
> Maybe use TARGET_PAGE_SIZE instead of 4096 ?
sizeof(SysIB) would be preferable IMO.
>
> > + setcc(cpu, 3);
> > + return;
> > + }
- [PATCH v14 00/11] s390x: CPU Topology, Pierre Morel, 2023/01/05
- [PATCH v14 03/11] target/s390x/cpu topology: handle STSI(15) and build the SYSIB, Pierre Morel, 2023/01/05
- Re: [PATCH v14 03/11] target/s390x/cpu topology: handle STSI(15) and build the SYSIB, Thomas Huth, 2023/01/10
- Re: [PATCH v14 03/11] target/s390x/cpu topology: handle STSI(15) and build the SYSIB, Pierre Morel, 2023/01/17
- Re: [PATCH v14 03/11] target/s390x/cpu topology: handle STSI(15) and build the SYSIB, Thomas Huth, 2023/01/18
- Re: [PATCH v14 03/11] target/s390x/cpu topology: handle STSI(15) and build the SYSIB, Nina Schoetterl-Glausch, 2023/01/18
- Re: [PATCH v14 03/11] target/s390x/cpu topology: handle STSI(15) and build the SYSIB, Pierre Morel, 2023/01/19
Re: [PATCH v14 03/11] target/s390x/cpu topology: handle STSI(15) and build the SYSIB, Nina Schoetterl-Glausch, 2023/01/16
[PATCH v14 02/11] s390x/cpu topology: add topology entries on CPU hotplug, Pierre Morel, 2023/01/05