|
From: | Thomas Huth |
Subject: | Re: [PATCH v4 17/19] pc-bios/s390x: Enable multi-device boot loop |
Date: | Thu, 17 Oct 2024 13:41:43 +0200 |
User-agent: | Mozilla Thunderbird |
On 17/10/2024 03.47, jrossi@linux.ibm.com wrote:
From: Jared Rossi <jrossi@linux.ibm.com> Allow attempts to boot from multiple IPL devices. If the first device fails to IPL, select the pre-built IPLB for the next device in the boot order and attempt to IPL from it. Continue this process until IPL is successful or there are no devices left to try. Signed-off-by: Jared Rossi <jrossi@linux.ibm.com> ---
...
diff --git a/pc-bios/s390-ccw/main.c b/pc-bios/s390-ccw/main.c index 9770290958..da3394de7c 100644 --- a/pc-bios/s390-ccw/main.c +++ b/pc-bios/s390-ccw/main.c @@ -55,6 +55,12 @@ void write_iplb_location(void) } }+static void copy_qipl(void)+{ + QemuIplParameters *early_qipl = (QemuIplParameters *)QIPL_ADDRESS; + memcpy(&qipl, early_qipl, sizeof(QemuIplParameters)); +} + unsigned int get_loadparm_index(void) { return atoi(loadparm_str); @@ -152,6 +158,7 @@ static void menu_setup(void)/* If loadparm was set to any other value, then do not enable menu */if (memcmp(loadparm_str, LOADPARM_EMPTY, LOADPARM_LEN) != 0) { + menu_set_parms(qipl.qipl_flags && ~BOOT_MENU_FLAG_MASK, 0);
That "&&" looks fishy ... should it be a single "&" ? Thomas
[Prev in Thread] | Current Thread | [Next in Thread] |