qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Jared Rossi <jrossi@linux.ibm.com>
To: Thomas Huth <thuth@redhat.com>,
	qemu-devel@nongnu.org, qemu-s390x@nongnu.org
Cc: frankja@linux.ibm.com, nsg@linux.ibm.com
Subject: Re: [PATCH 0/5] s390x: Add Full Boot Order Support
Date: Sun, 9 Jun 2024 23:58:51 -0400	[thread overview]
Message-ID: <b650a629-6f0b-41fd-93e3-87de48feba94@linux.ibm.com> (raw)
In-Reply-To: <cf48d601-0686-4ebd-a113-1357441db61d@redhat.com>



On 6/7/24 2:19 AM, Thomas Huth wrote:
> On 06/06/2024 21.22, Jared Rossi wrote:
>>
>>
>> On 6/5/24 4:02 AM, Thomas Huth wrote:
>>> On 29/05/2024 17.43, jrossi@linux.ibm.com wrote:
>>>> From: Jared Rossi <jrossi@linux.ibm.com>
>>>>
>>>> This patch set primarily adds support for the specification of 
>>>> multiple boot
>>>> devices, allowing for the guest to automatically use an alternative 
>>>> device on
>>>> a failed boot without needing to be reconfigured. It additionally 
>>>> provides the
>>>> ability to define the loadparm attribute on a per-device bases, 
>>>> which allows
>>>> boot devices to use different loadparm values if needed.
>>>>
>>>> In brief, an IPLB is generated for each designated boot device (up 
>>>> to a maximum
>>>> of 8) and stored in guest memory immediately before BIOS. If a 
>>>> device fails to
>>>> boot, the next IPLB is retrieved and we jump back to the start of 
>>>> BIOS.
>>>>
>>>> Devices can be specified using the standard qemu device tag 
>>>> "bootindex" as with
>>>> other architectures. Lower number indices are tried first, with 
>>>> "bootindex=0"
>>>> indicating the first device to try.
>>>
>>> Is this supposed with multiple scsi-hd devices, too? I tried to boot 
>>> a guest with two scsi disks (attached to a single virtio-scsi-ccw 
>>> adapter) where only the second disk had a bootable installation, but 
>>> that failed...?
>>>
>>>  Thomas
>>>
>>>
>>
>> Hi Thomas,
>>
>> Yes, I would expect that to work. I tried to reproduce this using a 
>> non-bootable scsi disk as the first boot device and then a known-good 
>> bootable scsi disk as the second boot device, with one controller.  
>> In my instance the BIOS was not able to identify the first disk as 
>> bootable and so that device failed to IPL, but it did move on to the 
>> next disk after that, and the guest successfully IPL'd from the 
>> second device.
>>
>> When you say it failed, do you mean the first disk failed to boot (as 
>> expected), but then the guest died without attempting to boot from 
>> the second disk?  Or did something else happen? I am either not 
>> understanding your configuration or I am not understanding your error.
>
> I did this:
>
>  $ ./qemu-system-s390x -bios pc-bios/s390-ccw/s390-ccw.img -accel kvm \
>    -device virtio-scsi-ccw  -drive if=none,id=d2,file=/tmp/bad.qcow2 \
>    -device scsi-hd,drive=d2,bootindex=2 \
>    -drive if=none,id=d8,file=/tmp/good.qcow2 \
>    -device scsi-hd,drive=d8,bootindex=3 -m 4G -nographic
>  LOADPARM=[        ]
>  Using virtio-scsi.
>  Using guessed DASD geometry.
>  Using ECKD scheme (block size   512), CDL
>  No zIPL section in IPL2 record.
>  zIPL load failed.
>
>  Trying next boot device...
>  LOADPARM=[        ]
>  Using virtio-scsi.
>  Using guessed DASD geometry.
>  Using ECKD scheme (block size   512), CDL
>  No zIPL section in IPL2 record.
>  zIPL load failed.
>
> So it claims to try to load from the second disk, but it fails.
> If I change the "bootindex=3" of the second disk to "bootindex=1", it 
> boots perfectly fine, so I'm sure that the installation on good.qcow2 
> is working fine.
>
>  Thomas
>

I am able to reproduce this now; I'll investigate the problem.



      reply	other threads:[~2024-06-10  3:59 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-29 15:43 [PATCH 0/5] s390x: Add Full Boot Order Support jrossi
2024-05-29 15:43 ` [PATCH 1/5] s390x: Create include files for s390x IPL definitions jrossi
2024-06-03 18:51   ` Thomas Huth
2024-05-29 15:43 ` [PATCH 2/5] s390x: Add loadparm to CcwDevice jrossi
2024-06-04 14:27   ` Thomas Huth
2024-06-04 16:27     ` Jared Rossi
2024-06-04 16:59       ` Thomas Huth
2024-06-05  7:49   ` Thomas Huth
2024-05-29 15:43 ` [PATCH 3/5] s390x: Build IPLB chain for multiple boot devices jrossi
2024-06-03 19:03   ` Thomas Huth
2024-06-04 18:26   ` Thomas Huth
2024-06-05 20:01     ` Jared Rossi
2024-06-07  6:11       ` Thomas Huth
2024-05-29 15:43 ` [PATCH 4/5] s390x: Add boot device fallback infrastructure jrossi
2024-06-05  8:20   ` Thomas Huth
2024-06-05 12:13     ` Thomas Huth
2024-05-29 15:43 ` [PATCH 5/5] s390x: Enable and document boot device fallback on panic jrossi
2024-06-05 13:37   ` Thomas Huth
2024-06-05 14:48     ` Jared Rossi
2024-06-07  5:57       ` Thomas Huth
2024-06-16 23:44         ` Jared Rossi
2024-06-20  8:10           ` Thomas Huth
2024-06-17 14:49     ` Christian Borntraeger
2024-06-20  8:14       ` Thomas Huth
2024-06-04 18:35 ` [PATCH 0/5] s390x: Add Full Boot Order Support Thomas Huth
2024-06-05  8:02 ` Thomas Huth
2024-06-06 19:22   ` Jared Rossi
2024-06-07  6:19     ` Thomas Huth
2024-06-10  3:58       ` Jared Rossi [this message]

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=b650a629-6f0b-41fd-93e3-87de48feba94@linux.ibm.com \
    --to=jrossi@linux.ibm.com \
    --cc=frankja@linux.ibm.com \
    --cc=nsg@linux.ibm.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-s390x@nongnu.org \
    --cc=thuth@redhat.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;
as well as URLs for NNTP newsgroup(s).