But yes, this is ugly, we should fix the function and re-define size_t
to be unsigned instead...
Thomas
Agreed.
--
- Collin L Walling
enu=on
was provided on the commandline. Otherwise, return silently.
While we're at it, remove trailing periods from error
messages.
Signed-off-by: Collin L. Walling
---
hw/s390x/ipl.c | 10 ++
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/hw/s390x/ipl.c b/hw/s390x/ipl.
On 02/27/2018 02:18 PM, Cornelia Huck wrote:
On Tue, 27 Feb 2018 10:19:20 -0500
"Collin L. Walling" wrote:
Nit: make the prefix s390x/ipl:, as this is not directly in the bios.
It is possible that certain QEMU configurations may not
create an IPLB (such as when -kernel is provided
enu=on
was provided on the commandline. Otherwise, return silently.
Signed-off-by: Collin L. Walling
---
hw/s390x/ipl.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/hw/s390x/ipl.c b/hw/s390x/ipl.c
index 798e99a..c4addb5 100644
--- a/hw/s390x/ipl.c
+++ b/hw/s390x/ipl.c
@@ -25
On 02/27/2018 04:22 AM, Thomas Huth wrote:
On 27.02.2018 10:12, Cornelia Huck wrote:
On Mon, 26 Feb 2018 14:44:45 -0500
"Collin L. Walling" wrote:
On 02/26/2018 02:29 PM, Collin L. Walling wrote:
On 02/26/2018 01:48 PM, Cornelia Huck wrote:
On Mon, 26 Feb 2018 11:42:29 +0100
T
On 02/26/2018 02:29 PM, Collin L. Walling wrote:
On 02/26/2018 01:48 PM, Cornelia Huck wrote:
On Mon, 26 Feb 2018 11:42:29 +0100
Thomas Huth wrote:
[...]
3 files changed, 66 insertions(+), 4 deletions(-)
+static void s390_ipl_set_boot_menu(S390IPLState *ipl)
+{
+ QemuOptsList *plist
On 02/26/2018 01:48 PM, Cornelia Huck wrote:
On Mon, 26 Feb 2018 11:42:29 +0100
Thomas Huth wrote:
From: "Collin L. Walling"
Set boot menu options for an s390 guest and store them in
the iplb. These options are set via the QEMU command line
option:
-boot menu=on|off[,spl
On 02/23/2018 11:03 AM, Thomas Huth wrote:
On 23.02.2018 16:43, Collin L. Walling wrote:
The s390-ccw firmware needs some information in support of the
boot process which is not available on the native machine.
Examples are the netboot firmware load address and now the
boot menu parameters
linux-4.13.0)
1. linux-4.13.0
2. performance
3. kvm
Signed-off-by: Collin L. Walling
Reviewed-by: Thomas Huth
---
pc-bios/s390-ccw/menu.c | 33 -
1 file changed, 32 insertions(+), 1 deletion(-)
diff --git a/pc-bios/s390-ccw/menu.c b/pc-bios/s390-ccw/menu.c
boot menu
timeout=X set the timeout to X seconds
To explicitly disregard any boot menu options, then menu=off or
must be specified.
Signed-off-by: Collin L. Walling
Reviewed-by: Thomas Huth
---
hw/s390x/ipl.c | 5 +
hw/s390x/ipl.h | 1 +
pc-bios/s390-ccw
Interactive boot menu for scsi. This follows a similar procedure
as the interactive menu for eckd dasd. An example follows:
s390x Enumerated Boot Menu.
3 entries detected. Select from index 0 to 2.
Signed-off-by: Collin L. Walling
Reviewed-by: Thomas Huth
---
hw/s390x/ipl.c
Reads boot menu flag and timeout values from the iplb and
sets the respective fields for the menu.
Signed-off-by: Collin L. Walling
Reviewed-by: Thomas Huth
---
pc-bios/s390-ccw/Makefile | 2 +-
pc-bios/s390-ccw/main.c | 24
pc-bios/s390-ccw/menu.c | 22
boot entries, then the
selection will be booted. Any erroneous input will cancel
the timeout and re-prompt the user.
Signed-off-by: Collin L. Walling
Reviewed-by: Thomas Huth
---
pc-bios/s390-ccw/menu.c | 149 +++-
pc-bios/s390-ccw/s390-ccw.h | 2 +
pc
for loadparm will override all boot menu options.
If loadparm=PROMPT, then the menu will be enabled without a
timeout.
Signed-off-by: Collin L. Walling
Reviewed-by: Janosch Frank
Reviewed-by: Thomas Huth
---
hw/s390x/ipl.c | 52 +
hw/s390x
e at it, remove assignment of the (non control program)
send and receive masks, as those are actually set by the SCLP.
Signed-off-by: Collin L. Walling
Reviewed-by: Thomas Huth
---
pc-bios/s390-ccw/menu.c | 5 +
pc-bios/s390-ccw/s390-ccw.h | 1 +
pc-bios/s390-ccw/sclp.c | 10
BootMapTable
- fixup ipl_scsi to use BootMapTable (referred to as Program Table)
- defined value for maximum table entries
Signed-off-by: Collin L. Walling
Reviewed-by: Thomas Huth
---
pc-bios/s390-ccw/bootmap.c | 60 +-
pc-bios/s390-ccw/bootmap.h | 11
ned-off-by: Collin L. Walling
Reviewed-by: Thomas Huth
---
pc-bios/s390-ccw/bootmap.c | 94 ++---
pc-bios/s390-ccw/bootmap.h | 23 ++-
pc-bios/s390-ccw/menu.c | 10 +
pc-bios/s390-ccw/s390-ccw.h | 2 +
4 files changed, 122 insertions(+), 7
IPL has completed.
Signed-off-by: Viktor Mihajlovski
Signed-off-by: Collin L. Walling
Reviewed-by: Thomas Huth
---
hw/s390x/ipl.c | 18 +-
hw/s390x/ipl.h | 25 +++--
pc-bios/s390-ccw/iplb.h | 18 --
pc-bios/s390-ccw/main.c
e IPL'd from
A loadparm other than 'prompt' will disable the menu and just boot
the specified entry.
If no boot options are specified, we will attempt to use the values
provided by zipl (ECKD DASD only).
Collin L. Walling (13):
s390-ccw: refactor boot map table code
s390-ccw:
Moved:
memcmp from bootmap.h to libc.h (renamed from _memcmp)
strlen from sclp.c to libc.h (renamed from _strlen)
Added C standard functions:
isdigit
Added non C-standard function:
uitoa
atoui
Signed-off-by: Collin L. Walling
Acked-by: Christian Borntraeger
Reviewed-by: Janosch
ECKD DASDs have different IPL structures for CDL and LDL
formats. The current Ipl1 and Ipl2 structs follow the CDL
format, so we prepend "EckdCdl" to them. Boot info for LDL
has been moved to a new struct: EckdLdlIpl1.
Signed-off-by: Collin L. Walling
Acked-by: Janosch Frank
Reviewed-
Add new cylinder/head/sector struct. Use it to calculate
eckd block numbers instead of a BootMapPointer (which used
eckd chs anyway).
Signed-off-by: Collin L. Walling
Reviewed-by: Thomas Huth
---
pc-bios/s390-ccw/bootmap.c | 28 ++--
pc-bios/s390-ccw/bootmap.h | 8
I'll respin 9 and reply to this chain.
--
- Collin L Walling
On 02/23/2018 09:57 AM, Collin L. Walling wrote:
On 02/23/2018 05:11 AM, Christian Borntraeger wrote:
On 02/23/2018 11:07 AM, Thomas Huth wrote:
On 22.02.2018 20:40, Collin L. Walling wrote:
On 02/22/2018 11:45 AM, Collin L. Walling wrote:
On 02/22/2018 10:44 AM, Christian Borntraeger wrote
On 02/23/2018 05:11 AM, Christian Borntraeger wrote:
On 02/23/2018 11:07 AM, Thomas Huth wrote:
On 22.02.2018 20:40, Collin L. Walling wrote:
On 02/22/2018 11:45 AM, Collin L. Walling wrote:
On 02/22/2018 10:44 AM, Christian Borntraeger wrote:
On 02/22/2018 04:40 PM, Collin L. Walling wrote
On 02/22/2018 11:45 AM, Collin L. Walling wrote:
On 02/22/2018 10:44 AM, Christian Borntraeger wrote:
On 02/22/2018 04:40 PM, Collin L. Walling wrote:
On 02/22/2018 07:23 AM, Viktor Mihajlovski wrote:
On 22.02.2018 12:51, Christian Borntraeger wrote:
Series
Acked-by: Christian Borntraeger
On 02/22/2018 10:44 AM, Christian Borntraeger wrote:
On 02/22/2018 04:40 PM, Collin L. Walling wrote:
On 02/22/2018 07:23 AM, Viktor Mihajlovski wrote:
On 22.02.2018 12:51, Christian Borntraeger wrote:
Series
Acked-by: Christian Borntraeger
Thanks!!!
menu on scsi and dasd bootmaps
together.
Shall I whip something up and post what I have as a reply to this email
chain?
--
- Collin L Walling
e at it, remove assignment of the (non control program)
send and receive masks, as those are actually set by the SCLP.
Signed-off-by: Collin L. Walling
---
pc-bios/s390-ccw/menu.c | 5 +
pc-bios/s390-ccw/s390-ccw.h | 1 +
pc-bios/s390-ccw/sclp.c | 10 --
3 files changed, 10 i
for loadparm will override all boot menu options.
If loadparm=PROMPT, then the menu will be enabled without a
timeout.
Signed-off-by: Collin L. Walling
Reviewed-by: Janosch Frank
---
hw/s390x/ipl.c | 44
hw/s390x/ipl.h | 9
IPL has completed.
Signed-off-by: Viktor Mihajlovski
Signed-off-by: Collin L. Walling
---
hw/s390x/ipl.c | 18 +-
hw/s390x/ipl.h | 25 +++--
pc-bios/s390-ccw/iplb.h | 18 --
pc-bios/s390-ccw/main.c | 6 +-
4 files changed
boot menu
timeout=X set the timeout to X seconds
To explicitly disregard any boot menu options, then menu=off or
must be specified.
Signed-off-by: Collin L. Walling
---
hw/s390x/ipl.c | 5 +
hw/s390x/ipl.h | 1 +
pc-bios/s390-ccw/iplb.h | 1 +
pc-bios/s390
menu and just boot
the specified entry.
If no boot options are specified, we will attempt to use the values
provided by zipl (ECKD DASD only).
Collin L. Walling (13):
s390-ccw: refactor boot map table code
s390-ccw: refactor eckd_block_num to use CHS
s390-ccw: refactor IPL structs
s390-ccw: up
linux-4.13.0)
1. linux-4.13.0
2. performance
3. kvm
Signed-off-by: Collin L. Walling
Reviewed-by: Thomas Huth
---
pc-bios/s390-ccw/menu.c | 33 -
1 file changed, 32 insertions(+), 1 deletion(-)
diff --git a/pc-bios/s390-ccw/menu.c b/pc-bios/s390-ccw/menu.c
BootMapTable
- fixup ipl_scsi to use BootMapTable (referred to as Program Table)
- defined value for maximum table entries
Signed-off-by: Collin L. Walling
Reviewed-by: Thomas Huth
---
pc-bios/s390-ccw/bootmap.c | 60 +-
pc-bios/s390-ccw/bootmap.h | 11
Interactive boot menu for scsi. This follows a similar procedure
as the interactive menu for eckd dasd. An example follows:
s390x Enumerated Boot Menu.
3 entries detected. Select from index 0 to 2.
Signed-off-by: Collin L. Walling
Reviewed-by: Thomas Huth
---
hw/s390x/ipl.c
ned-off-by: Collin L. Walling
Reviewed-by: Thomas Huth
---
pc-bios/s390-ccw/bootmap.c | 94 ++---
pc-bios/s390-ccw/bootmap.h | 23 ++-
pc-bios/s390-ccw/menu.c | 5 +++
pc-bios/s390-ccw/s390-ccw.h | 1 +
4 files changed, 116 insertions(+), 7
Reads boot menu flag and timeout values from the iplb and
sets the respective fields for the menu.
Signed-off-by: Collin L. Walling
Reviewed-by: Thomas Huth
---
pc-bios/s390-ccw/Makefile | 2 +-
pc-bios/s390-ccw/main.c | 24
pc-bios/s390-ccw/menu.c | 27
ECKD DASDs have different IPL structures for CDL and LDL
formats. The current Ipl1 and Ipl2 structs follow the CDL
format, so we prepend "EckdCdl" to them. Boot info for LDL
has been moved to a new struct: EckdLdlIpl1.
Signed-off-by: Collin L. Walling
Acked-by: Janosch Frank
Reviewed-
Moved:
memcmp from bootmap.h to libc.h (renamed from _memcmp)
strlen from sclp.c to libc.h (renamed from _strlen)
Added C standard functions:
isdigit
Added non C-standard function:
uitoa
atoui
Signed-off-by: Collin L. Walling
Acked-by: Christian Borntraeger
Reviewed-by: Janosch
Add new cylinder/head/sector struct. Use it to calculate
eckd block numbers instead of a BootMapPointer (which used
eckd chs anyway).
Signed-off-by: Collin L. Walling
Reviewed-by: Thomas Huth
---
pc-bios/s390-ccw/bootmap.c | 28 ++--
pc-bios/s390-ccw/bootmap.h | 8
boot entries, then the
selection will be booted. Any erroneous input will cancel
the timeout and re-prompt the user.
Signed-off-by: Collin L. Walling
Reviewed-by: Thomas Huth
---
pc-bios/s390-ccw/menu.c | 149 +++-
pc-bios/s390-ccw/s390-ccw.h | 2 +
pc
On 02/19/2018 10:52 AM, Viktor Mihajlovski wrote:
On 16.02.2018 23:07, Collin L. Walling wrote:
[...]
diff --git a/hw/s390x/ipl.h b/hw/s390x/ipl.h
index 74469b1..f632c59 100644
--- a/hw/s390x/ipl.h
+++ b/hw/s390x/ipl.h
@@ -60,6 +60,9 @@ typedef struct IplBlockQemuScsi IplBlockQemuScsi
On 02/19/2018 11:19 AM, Collin L. Walling wrote:
On 02/19/2018 11:00 AM, Thomas Huth wrote:
On 19.02.2018 16:40, Collin L. Walling wrote:
On 02/17/2018 02:48 AM, Thomas Huth wrote:
On 16.02.2018 23:07, Collin L. Walling wrote:
[...]
+/**
+ * uitoa:
+ * @num: an integer (base 10) to be
On 02/19/2018 11:00 AM, Thomas Huth wrote:
On 19.02.2018 16:40, Collin L. Walling wrote:
On 02/17/2018 02:48 AM, Thomas Huth wrote:
On 16.02.2018 23:07, Collin L. Walling wrote:
[...]
+/**
+ * uitoa:
+ * @num: an integer (base 10) to be converted.
+ * @str: a pointer to a string to store the
On 02/19/2018 09:17 AM, Christian Borntraeger wrote:
On 02/19/2018 03:15 PM, Christian Borntraeger wrote:
On 02/16/2018 11:07 PM, Collin L. Walling wrote:
It is possible while waiting for multiple types of external
interrupts that we might have pending irqs remaining between
irq consumption
On 02/19/2018 09:15 AM, Christian Borntraeger wrote:
On 02/16/2018 11:07 PM, Collin L. Walling wrote:
It is possible while waiting for multiple types of external
interrupts that we might have pending irqs remaining between
irq consumption and irq-type disabling. Those interrupts
could
On 02/17/2018 02:48 AM, Thomas Huth wrote:
On 16.02.2018 23:07, Collin L. Walling wrote:
[...]
+/**
+ * uitoa:
+ * @num: an integer (base 10) to be converted.
+ * @str: a pointer to a string to store the conversion.
+ * @len: the length of the passed string.
+ *
+ * Given an integer @num
ned-off-by: Collin L. Walling
Reviewed-by: Thomas Huth
---
pc-bios/s390-ccw/bootmap.c | 94 +++---
pc-bios/s390-ccw/bootmap.h | 23 +++-
pc-bios/s390-ccw/menu.c| 5 +++
pc-bios/s390-ccw/menu.h| 1 +
4 files changed, 116 insertions(+), 7 deletion
fault (linux-4.13.0)
1. linux-4.13.0
2. performance
3. kvm
Signed-off-by: Collin L. Walling
Reviewed-by: Thomas Huth
---
pc-bios/s390-ccw/menu.c | 49 -
1 file changed, 48 insertions(+), 1 deletion(-)
diff --git a/pc-bios/s390-ccw/menu.c b/pc
boot entries, then the
selection will be booted. Any erroneous input will cancel
the timeout and re-prompt the user.
Signed-off-by: Collin L. Walling
Reviewed-by: Thomas Huth
---
pc-bios/s390-ccw/menu.c | 146 +++-
pc-bios/s390-ccw/s390-ccw.h | 2 +
pc
al measure, once we've disabled/cleared the control
program's receive mask, we will print an empty string in order
to consume any pending service interrupt.
Signed-off-by: Collin L. Walling
---
pc-bios/s390-ccw/menu.c | 5 +
pc-bios/s390-ccw/s390-ccw.h | 1 +
pc-bios/s390
Moved:
memcmp from bootmap.h to libc.h (renamed from _memcmp)
strlen from sclp.c to libc.h (renamed from _strlen)
Added C standard functions:
isdigit
Added non C-standard function:
uitoa
atoui
Signed-off-by: Collin L. Walling
Acked-by: Christian Borntraeger
Reviewed-by: Janosch
Reads boot menu flag and timeout values from the iplb and
sets the respective fields for the menu.
Signed-off-by: Collin L. Walling
Reviewed-by: Thomas Huth
---
pc-bios/s390-ccw/Makefile | 2 +-
pc-bios/s390-ccw/main.c | 24
pc-bios/s390-ccw/menu.c | 26
Interactive boot menu for scsi. This follows a similar procedure
as the interactive menu for eckd dasd. An example follows:
s390x Enumerated Boot Menu.
3 entries detected. Select from index 0 to 2.
Signed-off-by: Collin L. Walling
Reviewed-by: Thomas Huth
---
pc-bios/s390-ccw
IPL has completed.
Signed-off-by: Viktor Mihajlovski
Signed-off-by: Collin L. Walling
---
hw/s390x/ipl.c | 19 ++-
hw/s390x/ipl.h | 19 +--
pc-bios/s390-ccw/iplb.h | 20 ++--
pc-bios/s390-ccw/main.c | 6 +-
4 files changed, 58
BootMapTable
- fixup ipl_scsi to use BootMapTable (referred to as Program Table)
- defined value for maximum table entries
Signed-off-by: Collin L. Walling
---
pc-bios/s390-ccw/bootmap.c | 60 +-
pc-bios/s390-ccw/bootmap.h | 11 -
2 files changed, 37
for loadparm will override all boot menu options.
If loadparm=PROMPT, then the menu will be enabled without a
timeout.
The absence of any boot options on the command line will flag
to later use the zipl boot loader values.
Signed-off-by: Collin L. Walling
Reviewed-by: Janosch Frank
Reviewed-by
ECKD DASDs have different IPL structures for CDL and LDL
formats. The current Ipl1 and Ipl2 structs follow the CDL
format, so we prepend "EckdCdl" to them. Boot info for LDL
has been moved to a new struct: EckdLdlIpl1.
Signed-off-by: Collin L. Walling
Acked-by: Janosch Frank
Reviewed-
Add new cylinder/head/sector struct. Use it to calculate
eckd block numbers instead of a BootMapPointer (which used
eckd chs anyway).
Signed-off-by: Collin L. Walling
Reviewed-by: Thomas Huth
---
pc-bios/s390-ccw/bootmap.c | 28 ++--
pc-bios/s390-ccw/bootmap.h | 8
e the values
provided by zipl (ECKD DASD only).
Collin L. Walling (12):
s390-ccw: refactor boot map table code
s390-ccw: refactor eckd_block_num to use CHS
s390-ccw: refactor IPL structs
s390-ccw: update libc
s390-ccw: move auxiliary IPL data to separate location
s390-ccw: parse and
-uint8_t reserved2[16];
+uint8_t reserved2[14];
} QEMU_PACKED;
typedef struct QemuIplParameters QemuIplParameters;
Thomas
--
- Collin L Walling
On 02/16/2018 11:20 AM, Thomas Huth wrote:
On 15.02.2018 23:54, Collin L. Walling wrote:
Set boot menu options for an s390 guest and store them in
the iplb. These options are set via the QEMU command line
option:
-boot menu=on|off[,splash-time=X]
or via the libvirt domain xml
On 02/16/2018 11:05 AM, Thomas Huth wrote:
On 15.02.2018 23:54, Collin L. Walling wrote:
Moved:
memcmp from bootmap.h to libc.h (renamed from _memcmp)
strlen from sclp.c to libc.h (renamed from _strlen)
What happened to the renames of _strlen to strlen and _memcmp to memcmp?
The hunks
On 02/16/2018 10:03 AM, David Hildenbrand wrote:
On 15.02.2018 23:54, Collin L. Walling wrote:
[...]
+
static int get_boot_index(int entries)
{
-return 0; /* Implemented next patch */
+int boot_index;
+bool retry = false;
+char tmp[5];
+
+do {
+boot_menu_prompt
On 02/16/2018 07:19 AM, Viktor Mihajlovski wrote:
On 16.02.2018 11:42, Thomas Huth wrote:
On 15.02.2018 23:54, Collin L. Walling wrote:
Some ECKD bootmap code was using structs designed for SCSI.
Even though this works, it confuses readability. Add a new
BootMapTable struct to assist with
al measure, once we've disabled/cleared the control
program's receive mask, we will print an empty string in order
to consume any pending service interrupt.
Signed-off-by: Collin L. Walling
---
pc-bios/s390-ccw/menu.c | 5 +
pc-bios/s390-ccw/s390-ccw.h | 1 +
pc-bios/s390
ned-off-by: Collin L. Walling
Reviewed-by: Thomas Huth
---
pc-bios/s390-ccw/bootmap.c | 94 +++---
pc-bios/s390-ccw/bootmap.h | 23 +++-
pc-bios/s390-ccw/menu.c| 5 +++
pc-bios/s390-ccw/menu.h| 1 +
4 files changed, 116 insertions(+), 7 deletion
Add new cylinder/head/sector struct. Use it to calculate
eckd block numbers instead of a BootMapPointer (which used
eckd chs anyway).
Signed-off-by: Collin L. Walling
---
pc-bios/s390-ccw/bootmap.c | 28 ++--
pc-bios/s390-ccw/bootmap.h | 8 ++--
2 files changed, 20
Interactive boot menu for scsi. This follows a similar procedure
as the interactive menu for eckd dasd. An example follows:
s390x Enumerated Boot Menu.
3 entries detected. Select from index 0 to 2.
Signed-off-by: Collin L. Walling
Reviewed-by: Thomas Huth
---
pc-bios/s390-ccw
e IPL'd from
A loadparm other than 'prompt' will disable the menu and just boot
the specified entry.
If no boot options are specified, we will attempt to use the values
provided by zipl (ECKD DASD only).
Collin L. Walling (12):
s390-ccw: refactor boot map table code
s390-ccw:
for loadparm will override all boot menu options.
If loadparm=PROMPT, then the menu will be enabled without a
timeout.
The absence of any boot options on the command line will flag
to later use the zipl boot loader values.
Signed-off-by: Collin L. Walling
Reviewed-by: Janosch Frank
Reviewed-by
Reads boot menu flag and timeout values from the iplb and
sets the respective fields for the menu.
Signed-off-by: Collin L. Walling
Reviewed-by: Thomas Huth
---
pc-bios/s390-ccw/Makefile | 2 +-
pc-bios/s390-ccw/main.c | 24
pc-bios/s390-ccw/menu.c | 26
boot entries, then the
selection will be booted. Any erroneous input will cancel
the timeout and re-prompt the user.
Signed-off-by: Collin L. Walling
Reviewed-by: Thomas Huth
---
pc-bios/s390-ccw/menu.c | 146 +++-
pc-bios/s390-ccw/s390-ccw.h | 2 +
pc
fault (linux-4.13.0)
1. linux-4.13.0
2. performance
3. kvm
Signed-off-by: Collin L. Walling
Reviewed-by: Thomas Huth
---
pc-bios/s390-ccw/menu.c | 49 -
1 file changed, 48 insertions(+), 1 deletion(-)
diff --git a/pc-bios/s390-ccw/menu.c b/pc
ECKD DASDs have different IPL structures for CDL and LDL
formats. The current Ipl1 and Ipl2 structs follow the CDL
format, so we prepend "EckdCdl" to them. Boot info for LDL
has been moved to a new struct: EckdLdlIpl1.
Signed-off-by: Collin L. Walling
Acked-by: Janosch Frank
Reviewed-
The s390-ccw firmware needs some information in support of the
boot process which is not available on the native machine.
Examples are the netboot firmware load address and now the
boot menu parameters.
While storing that data in unused fields of the IPL parameter block
works, that approach could
BootMapTable
- fixup ipl_scsi to use BootMapTable (referred to as Program Table)
- defined value for maximum table entries
Signed-off-by: Collin L. Walling
---
pc-bios/s390-ccw/bootmap.c | 60 +-
pc-bios/s390-ccw/bootmap.h | 14 +--
2 files changed, 39
Moved:
memcmp from bootmap.h to libc.h (renamed from _memcmp)
strlen from sclp.c to libc.h (renamed from _strlen)
Added C standard functions:
isdigit
Added non C-standard function:
uitoa
atoui
Signed-off-by: Collin L. Walling
Acked-by: Christian Borntraeger
Reviewed-by: Janosch
On 02/15/2018 02:04 AM, Thomas Huth wrote:
On 14.02.2018 16:33, Collin L. Walling wrote:
On 02/14/2018 05:57 AM, David Hildenbrand wrote:
[...]
1. CKC interrupts can be cleared by resetting the CKC
2. SCLP interrupts can be cleared only via delivery (apart from CPU
reset)
So if you have CKC
documenting in qemu-options.hx that s390 treats "splash-time" as the
menu-timeout.
Thoughts?
On 02/05/2018 03:57 PM, Collin L. Walling wrote:
Set boot menu options for an s390 guest and store them in
the iplb. These options are set via the QEMU command line
option:
-boot menu=on|o
On 02/14/2018 05:57 AM, David Hildenbrand wrote:
On 05.02.2018 21:57, Collin L. Walling wrote:
It is possible while waiting for multiple types of external
interrupts that we might have pending irqs remaining between
irq consumption and irq disabling. Those interrupts could
propagate to the
On 02/06/2018 05:13 AM, Viktor Mihajlovski wrote:
On 06.02.2018 10:23, Thomas Huth wrote:
On 05.02.2018 21:57, Collin L. Walling wrote:
[...]
diff --git a/pc-bios/s390-ccw/main.c b/pc-bios/s390-ccw/main.c
index e857ce4..825a1a3 100644
--- a/pc-bios/s390-ccw/main.c
+++ b/pc-bios/s390-ccw/main.c
On 02/06/2018 01:14 AM, Thomas Huth wrote:
On 05.02.2018 21:57, Collin L. Walling wrote:
Moved:
memcmp from bootmap.h to libc.h (renamed from _memcmp)
strlen from sclp.c to libc.h (renamed from _strlen)
Added C standard functions:
isdigit
Added non C-standard function:
itostr
On 02/06/2018 05:13 AM, Viktor Mihajlovski wrote:
On 06.02.2018 10:23, Thomas Huth wrote:
On 05.02.2018 21:57, Collin L. Walling wrote:
[...]
diff --git a/hw/s390x/ipl.c b/hw/s390x/ipl.c
index 0d06fc1..3e3c3b8 100644
--- a/hw/s390x/ipl.c
+++ b/hw/s390x/ipl.c
@@ -399,6 +399,20 @@ void
On 02/06/2018 12:52 AM, Thomas Huth wrote:
On 05.02.2018 21:57, Collin L. Walling wrote:
- replace ScsiMbr in ECKD code with BootMapTable
- fix read_block messages to reflect BMT
- reduce ipl_scsi code with BMT struct
Signed-off-by: Collin L. Walling
---
[...]
@@ -449,10 +451,8 @@ static
On 02/06/2018 05:07 AM, Thomas Huth wrote:
On 05.02.2018 21:57, Collin L. Walling wrote:
It is possible while waiting for multiple types of external
interrupts that we might have pending irqs remaining between
irq consumption and irq disabling. Those interrupts could
propagate to the guest
: error:
comparison of unsigned expression >= 0 is always true [-Werror=type-limits]
IPL_assert(num >= 0, "itostr: cannot convert negative values");
^~
--
- Collin L Walling
Interactive boot menu for scsi. This follows a similar procedure
as the interactive menu for eckd dasd. An example follows:
s390x Enumerated Boot Menu.
3 entries detected. Select from index 0 to 2.
Signed-off-by: Collin L. Walling
Reviewed-by: Thomas Huth
---
pc-bios/s390-ccw
boot entries, then the
selection will be booted. Any erroneous input will cancel
the timeout and re-prompt the user.
Signed-off-by: Collin L. Walling
Reviewed-by: Thomas Huth
---
pc-bios/s390-ccw/menu.c | 150 +++-
pc-bios/s390-ccw/s390-ccw.h | 3 +
pc
ned-off-by: Collin L. Walling
Reviewed-by: Thomas Huth
---
pc-bios/s390-ccw/bootmap.c | 94 +++---
pc-bios/s390-ccw/bootmap.h | 23 +++-
pc-bios/s390-ccw/menu.c| 5 +++
pc-bios/s390-ccw/menu.h| 1 +
4 files changed, 116 insertions(+), 7 deletion
to prevent further
service interrupts from ASCII events and then consume all pending
irqs for a miniscule duration. Once finished, we reset the write
event mask and resume business as usual.
Signed-off-by: Collin L. Walling
---
pc-bios/s390-ccw/menu.c | 16
pc-bios/s390-ccw/sclp.c
- replace ScsiMbr in ECKD code with BootMapTable
- fix read_block messages to reflect BMT
- reduce ipl_scsi code with BMT struct
Signed-off-by: Collin L. Walling
---
pc-bios/s390-ccw/bootmap.c | 53 ++
pc-bios/s390-ccw/bootmap.h | 9 +++-
2 files
Moved:
memcmp from bootmap.h to libc.h (renamed from _memcmp)
strlen from sclp.c to libc.h (renamed from _strlen)
Added C standard functions:
isdigit
Added non C-standard function:
itostr
atoui
Signed-off-by: Collin L. Walling
Acked-by: Christian Borntraeger
Reviewed-by: Janosch
Reads boot menu flag and timeout values from the iplb and
sets the respective fields for the menu.
Signed-off-by: Collin L. Walling
Reviewed-by: Thomas Huth
---
pc-bios/s390-ccw/Makefile | 2 +-
pc-bios/s390-ccw/main.c | 24
pc-bios/s390-ccw/menu.c | 26
fault (linux-4.13.0)
1. linux-4.13.0
2. performance
3. kvm
Signed-off-by: Collin L. Walling
Reviewed-by: Thomas Huth
---
pc-bios/s390-ccw/menu.c | 49 -
1 file changed, 48 insertions(+), 1 deletion(-)
diff --git a/pc-bios/s390-ccw/menu.c b/pc
Add new cylinder/head/sector struct. Use it to calculate
eckd block numbers instead of a BootMapPointer (which used
eckd chs anyway).
Signed-off-by: Collin L. Walling
---
pc-bios/s390-ccw/bootmap.c | 28 ++--
pc-bios/s390-ccw/bootmap.h | 8 ++--
2 files changed, 20
for loadparm will override all boot menu options.
If loadparm=PROMPT, then the menu will be enabled without a
timeout.
The absence of any boot options on the command line will flag
to later use the zipl boot loader values.
Signed-off-by: Collin L. Walling
Reviewed-by: Janosch Frank
Reviewed-by
ECKD DASDs have different IPL structures for CDL and LDL
formats. The current Ipl1 and Ipl2 structs follow the CDL
format, so we prepend "EckdCdl" to them. Boot info for LDL
has been moved to a new struct: EckdLdlIpl1.
Signed-off-by: Collin L. Walling
Acked-by: Janosch Frank
Reviewed-
The s390-ccw firmware needs some information in support of the
boot process which is not available on the native machine.
Examples are the netboot firmware load address and now the
boot menu parameters.
While storing that data in unused fields of the IPL parameter block
works, that approach could
1 - 100 of 180 matches
Mail list logo