QEMU-Trivial Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Cornelia Huck <cohuck@redhat.com>
To: Christian Borntraeger <borntraeger@linux.ibm.com>,
	Alexandra Winter <wintera@linux.ibm.com>,
	Heiko Carstens <hca@linux.ibm.com>,
	Hendrik Brueckner <brueckner@linux.ibm.com>
Cc: Halil Pasic <pasic@linux.ibm.com>,
	Vasily Gorbik <gor@linux.ibm.com>,
	Alexander Gordeev <agordeev@linux.ibm.com>,
	Sven Schnelle <svens@linux.ibm.com>,
	Gautam Gala <ggala@linux.ibm.com>,
	Eric Farman <farman@linux.ibm.com>,
	Matthew Rosato <mjrosato@linux.ibm.com>,
	Ilya Leoshkevich <iii@linux.ibm.com>,
	Thomas Richter <tmricht@linux.ibm.com>,
	Shrikanth Hegde <sshegde@linux.ibm.com>,
	Mete Durlu <meted@linux.ibm.com>,
	Richard Henderson <richard.henderson@linaro.org>,
	David Hildenbrand <david@kernel.org>,
	qemu-stable@nongnu.org, qemu-devel@nongnu.org,
	qemu-trivial@nongnu.org, qemu-s390x@nongnu.org
Subject: Re: [PATCH] target/s390x: Make container ids in SysIB_15x 1-based
Date: Thu, 28 May 2026 17:33:45 +0200	[thread overview]
Message-ID: <87ik87mtuu.fsf@redhat.com> (raw)
In-Reply-To: <9308b8e8-f2f8-4cd7-b25d-6f1f9573c6da@linux.ibm.com>

On Tue, May 12 2026, Christian Borntraeger <borntraeger@linux.ibm.com> wrote:

> Am 11.05.26 um 15:49 schrieb Alexandra Winter:
>> The Container Id in a container-type TLE of SysIB_15x is defined as 8-bit
>> unsigned nonzero integer. Make stsi fc 15 emulation architecture compliant,
>> by starting the container ids at 1 for the lowest numbered container.
>> 
>> The qemu misbehaviour without this patch becomes obvious due to a recently
>> proposed kernel fix. Older linux kernels pass the container ids from stsi
>> fc15 unchanged to sysfs, i.e. starting at 1 on s390 hardware. This resulted
>> in off-by-one values when compared to the values from HMC. A Linux kernel
>> fix is being proposed to correct the sysfs topology ids by -1, so they
>> start at 0, e.g. when displayed by 'lscpu -ye'. In case a KVM guest with a
>> fixed kernel runs on a host with a qemu without this fix, this can result
>> in container ids erroneously being shown as 255.
>> Example (Fixed guest on unfixed qemu):
>> $ lscpu -ye
>> CPU NODE DRAWER BOOK SOCKET CORE L1d:L1i:L2 ONLINE CONFIGURED POLARIZATION ADDRESS
>>    0    0    255  255    255    0 0:0:0         yes yes        vert-medium  0
>>    1    0    255  255      0    1 1:1:1         yes yes        vert-medium  1
>> After this fix:
>> $ lscpu -ye
>> CPU NODE DRAWER BOOK SOCKET CORE L1d:L1i:L2 ONLINE CONFIGURED POLARIZATION ADDRESS
>>    0    0      0    0      0    0 0:0:0         yes yes        vert-medium  0
>>    1    0      0    0      1    1 1:1:1         yes yes        vert-medium  1
>> 
>> Fixes: f4f54b582f ("target/s390x/cpu topology: handle STSI(15) and build the SYSIB")
>> Signed-off-by: Alexandra Winter <wintera@linux.ibm.com>
>
> Acked-by: Christian Borntraeger <borntraeger@linux.ibm.com>
>
> I guess this should go via Connys s390 tree.

Yep, that makes sense.



  reply	other threads:[~2026-05-28 15:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-11 13:49 [PATCH] target/s390x: Make container ids in SysIB_15x 1-based Alexandra Winter
2026-05-12 10:17 ` Gautam Gala
2026-05-12 11:05 ` Christian Borntraeger
2026-05-28 15:33   ` Cornelia Huck [this message]
2026-05-12 14:35 ` Hendrik Brueckner
2026-05-29 14:00 ` Cornelia Huck

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ik87mtuu.fsf@redhat.com \
    --to=cohuck@redhat.com \
    --cc=agordeev@linux.ibm.com \
    --cc=borntraeger@linux.ibm.com \
    --cc=brueckner@linux.ibm.com \
    --cc=david@kernel.org \
    --cc=farman@linux.ibm.com \
    --cc=ggala@linux.ibm.com \
    --cc=gor@linux.ibm.com \
    --cc=hca@linux.ibm.com \
    --cc=iii@linux.ibm.com \
    --cc=meted@linux.ibm.com \
    --cc=mjrosato@linux.ibm.com \
    --cc=pasic@linux.ibm.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-s390x@nongnu.org \
    --cc=qemu-stable@nongnu.org \
    --cc=qemu-trivial@nongnu.org \
    --cc=richard.henderson@linaro.org \
    --cc=sshegde@linux.ibm.com \
    --cc=svens@linux.ibm.com \
    --cc=tmricht@linux.ibm.com \
    --cc=wintera@linux.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox