From: Thomas Huth <thuth@redhat.com>
To: jrossi@linux.ibm.com, qemu-devel@nongnu.org,
qemu-s390x@nongnu.org, mst@redhat.com
Cc: jjherne@linux.ibm.com, alifm@linux.ibm.com, farman@linux.ibm.com,
mjrosato@linux.ibm.com, zycai@linux.ibm.com
Subject: Re: [PATCH v5 15/15] tests/qtest: Add s390x PCI boot test to cdrom-test.c
Date: Mon, 9 Mar 2026 18:11:44 +0100 [thread overview]
Message-ID: <cd84ed2d-9ed3-4a0f-8c1c-0092eca84cf8@redhat.com> (raw)
In-Reply-To: <bd10a0b8-2116-4785-9069-a0f3c622c0f9@redhat.com>
On 09/03/2026 17.53, Thomas Huth wrote:
> On 09/03/2026 17.49, Thomas Huth wrote:
>> On 09/03/2026 01.36, jrossi@linux.ibm.com wrote:
>>> From: Jared Rossi <jrossi@linux.ibm.com>
>>>
>>> Add a rudimentary test for s390x IPL to verify that a guest may boot using
>>> virtio-blk-pci device.
>>>
>>> Reviewed-by: Thomas Huth <thuth@redhat.com>
>>> Signed-off-by: Jared Rossi <jrossi@linux.ibm.com>
>>> ---
>>> tests/qtest/cdrom-test.c | 7 +++++++
>>> 1 file changed, 7 insertions(+)
>>>
>>> diff --git a/tests/qtest/cdrom-test.c b/tests/qtest/cdrom-test.c
>>> index 56e2d283a9..a65854d2bc 100644
>>> --- a/tests/qtest/cdrom-test.c
>>> +++ b/tests/qtest/cdrom-test.c
>>> @@ -246,6 +246,13 @@ static void add_s390x_tests(void)
>>> "-drive if=none,id=d2,media=cdrom,file=",
>>> test_cdboot);
>>> }
>>> + if (qtest_has_device("virtio-blk-pci")) {
>>> + qtest_add_data_func("cdrom/boot/pci-bus-with-bootindex",
>>> + "-device virtio-scsi -device virtio-serial "
>>> + "-device virtio-blk-pci,drive=d1,bootindex=1 "
>>> + "-drive if=none,id=d1,media=cdrom,file=",
>>> + test_cdboot);
>>> + }
>>> }
>>
>> Hi Jared!
>>
>> While testing your series, it seems like the cdrom-test is now triggering
>> a segmentation fault in QEMU here ... not sure whether I did something
>> wrong on my side while building the bios, or whether there is a bug
>> somewhere? Does this qtest work for you with this v5 series?
>
> Ah, it's working on my s390x LPAR, but it's failing on my x86 laptop ...
> maybe there is some endianness issue left somewhere?
Yes, it's a missing swap of endianness data, this patch fixes it:
diff --git a/hw/s390x/ipl.c b/hw/s390x/ipl.c
--- a/hw/s390x/ipl.c
+++ b/hw/s390x/ipl.c
@@ -524,9 +524,9 @@ static bool s390_build_iplb(DeviceState *dev_st,
IplParameterBlock *iplb)
switch (devtype) {
case PCI_DEVTYPE_VIRTIO:
- iplb->len = S390_IPLB_MIN_PCI_LEN;
+ iplb->len = cpu_to_be32(S390_IPLB_MIN_PCI_LEN);
iplb->pbt = S390_IPL_TYPE_PCI;
- iplb->pci.fid = pbdev->fid;
+ iplb->pci.fid = cpu_to_be32(pbdev->fid);
break;
default:
return false;
If you agree, I can squash this into patch 13.
Thomas
next prev parent reply other threads:[~2026-03-09 17:12 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-09 0:35 [PATCH v5 00/15] s390x: Add support for virtio-blk-pci IPL device jrossi
2026-03-09 0:35 ` [PATCH v5 01/15] pc-bios/s390-ccw: Fix misattributed function prototypes jrossi
2026-03-09 0:35 ` [PATCH v5 02/15] pc-bios/s390-ccw: Remove redundant vring schid attribute jrossi
2026-03-09 0:35 ` [PATCH v5 03/15] pc-bios/s390-ccw: Always reset virtio device on failed boot attempt jrossi
2026-03-09 0:35 ` [PATCH v5 04/15] s390x: Remove duplicate definitions of IPL types jrossi
2026-03-09 0:35 ` [PATCH v5 05/15] pc-bios/s390-ccw: Store device type independent of sense data jrossi
2026-03-09 0:35 ` [PATCH v5 06/15] pc-bios/s390-ccw: Split virtio-ccw and generic virtio jrossi
2026-03-10 5:28 ` Thomas Huth
2026-03-09 0:35 ` [PATCH v5 07/15] include/hw/s390x: Move CLP definitions for easier BIOS access jrossi
2026-03-09 0:35 ` [PATCH v5 08/15] pc-bios/s390-ccw: Introduce CLP Architecture jrossi
2026-03-09 13:21 ` Matthew Rosato
2026-03-09 17:16 ` Farhan Ali
2026-03-09 0:35 ` [PATCH v5 09/15] s390x: Add definitions for PCI IPL type jrossi
2026-03-09 0:35 ` [PATCH v5 10/15] pc-bios/s390-ccw: Introduce PCI device jrossi
2026-03-09 11:56 ` Thomas Huth
2026-03-09 13:29 ` Matthew Rosato
2026-03-09 17:09 ` Farhan Ali
2026-03-09 0:35 ` [PATCH v5 11/15] pc-bios/s390-ccw: Introduce virtio-pci functions jrossi
2026-03-09 11:59 ` Thomas Huth
2026-03-09 13:53 ` Matthew Rosato
2026-03-09 22:27 ` Eric Farman
2026-03-09 0:35 ` [PATCH v5 12/15] pc-bios/s390-ccw: Add support for virtio-blk-pci IPL jrossi
2026-03-09 0:35 ` [PATCH v5 13/15] s390x: Build IPLB for virtio-pci devices jrossi
2026-03-09 0:36 ` [PATCH v5 14/15] hw: Add "loadparm" property to virtio block PCI devices booting on s390x jrossi
2026-03-09 0:36 ` [PATCH v5 15/15] tests/qtest: Add s390x PCI boot test to cdrom-test.c jrossi
2026-03-09 16:49 ` Thomas Huth
2026-03-09 16:53 ` Thomas Huth
2026-03-09 17:11 ` Thomas Huth [this message]
2026-03-09 18:01 ` Jared Rossi
2026-03-09 14:00 ` [PATCH v5 00/15] s390x: Add support for virtio-blk-pci IPL device Matthew Rosato
2026-03-09 15:40 ` Thomas Huth
2026-03-09 16:17 ` Matthew Rosato
2026-03-23 16:55 ` Thomas Huth
2026-03-24 17:59 ` Jared Rossi
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=cd84ed2d-9ed3-4a0f-8c1c-0092eca84cf8@redhat.com \
--to=thuth@redhat.com \
--cc=alifm@linux.ibm.com \
--cc=farman@linux.ibm.com \
--cc=jjherne@linux.ibm.com \
--cc=jrossi@linux.ibm.com \
--cc=mjrosato@linux.ibm.com \
--cc=mst@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-s390x@nongnu.org \
--cc=zycai@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.