Pasic
-M: Pierre Morel
+M: Jason Herne
Acked-by: Jason J. Herne
--
-- Jason J. Herne (jjhe...@linux.ibm.com)
On 8/27/20 6:07 AM, Thomas Huth wrote:
On 07/02/2020 15.02, Jason J. Herne wrote:
On 2/7/20 6:28 AM, Christian Borntraeger wrote:
Jason,
can you run objdump -Sdr on jump2ipl.o on a broken variant?
To keep the volume lower, I've only pasted the output that I think
you're interested
On 8/25/20 7:38 AM, Thomas Huth wrote:
On 19/08/2020 12.46, Janosch Frank wrote:
On 8/19/20 11:45 AM, Cornelia Huck wrote:
On Wed, 19 Aug 2020 11:32:34 +0200
Janosch Frank wrote:
On 8/17/20 7:51 PM, Jason J. Herne wrote:
On 8/17/20 12:30 PM, Cornelia Huck wrote:
On Mon, 17 Aug 2020 10:17
On 8/17/20 12:30 PM, Cornelia Huck wrote:
On Mon, 17 Aug 2020 10:17:34 -0400
"Jason J. Herne" wrote:
The POP states that the IPLB location is only written to 0x14 for
list-directed IPL. Some operating systems expect 0x14 to not change on
boot and will fail IPL if it does chan
The POP states that the IPLB location is only written to 0x14 for
list-directed IPL. Some operating systems expect 0x14 to not change on
boot and will fail IPL if it does change.
Fixes: 9bfc04f9ef6802fff0
Signed-off-by: Jason J. Herne
Reviewed-by: Janosch Frank
---
pc-bios/s390-ccw/jump2ipl.c
On 2/25/20 6:13 AM, Christian Borntraeger wrote:
On 25.02.20 11:23, Jason J. Herne wrote:
On 2/13/20 1:24 PM, Christian Borntraeger wrote:
...
diff --git a/pc-bios/s390-ccw/jump2ipl.c b/pc-bios/s390-ccw/jump2ipl.c
index da13c43cc0..8839226803 100644
--- a/pc-bios/s390-ccw/jump2ipl.c
+++ b/pc
static void jump_to_IPL_2(void)
{
ResetInfo *current = 0;
void (*ipl)(void) = (void *) (uint64_t) current->ipl_continue;
*current = save;
ipl(); /* should not return */
}
--
-- Jason J. Herne (jjhe...@linux.ibm.com)
On 2/6/20 5:09 AM, Christian Borntraeger wrote:
On 05.02.20 19:21, Jason J. Herne wrote:
This fixes vfio-ccw when booting non-Linux operating systems. Without this
struct being packed, a few extra bytes of low core memory get overwritten when
we assign a value to memory address 0
0x2
}
334: 18 00 lr %r0,%r0
336: eb bf b1 08 00 04 lmg %r11,%r15,264(%r11)
33c: 07 fe br %r14
33e: 07 07 nopr%r7
--
-- Jason J. Herne (jjhe...@linux.ibm.com)
: Fix reset psw mask")
CC: Janosch Frank
Signed-off-by: Jason J. Herne
---
pc-bios/s390-ccw/jump2ipl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pc-bios/s390-ccw/jump2ipl.c b/pc-bios/s390-ccw/jump2ipl.c
index da13c43cc0..1e9eaa037f 100644
--- a/pc-bios/s390-ccw/jump
img b/pc-bios/s390-ccw.img
index
ba054828d35d72fd1ed5521a48f43f593a1c291f..a0234bf748e10fdfaab27b8a751bee1db1865256
100644
GIT binary patch
literal 42608
zcmeHwd3==B){GbBJ*5+(^t*kmRPCW
...
I've tested this build with signature entries in the bootmap and everything
appears to work.
--
-- Jaso
On 5/6/19 4:08 AM, Christian Borntraeger wrote:
On 03.05.19 11:34, Thomas Huth wrote:
On 29/04/2019 15.09, Jason J. Herne wrote:
Newer versions of zipl have the ability to write signature entries to the boot
script for secure boot. We don't yet support secure boot, but we need to skip
over
bootloader.
Signed-off-by: Jason J. Herne
Reviewed-by: Farhan Ali
---
pc-bios/s390-ccw/bootmap.c | 19 +--
pc-bios/s390-ccw/bootmap.h | 10 ++
2 files changed, 23 insertions(+), 6 deletions(-)
diff --git a/pc-bios/s390-ccw/bootmap.c b/pc-bios/s390-ccw/bootmap.c
index 7aef65a
On 4/5/19 9:26 AM, Thomas Huth wrote:
On 05/04/2019 15.11, Jason J. Herne wrote:
On 4/5/19 3:52 AM, Thomas Huth wrote:
On 05/04/2019 08.58, Thomas Huth wrote:
[...]
while running my s390-ccw bios tests, I noticed that network booting
seems to be broken now. This used to work before:
s390x
On 4/5/19 3:52 AM, Thomas Huth wrote:
On 05/04/2019 08.58, Thomas Huth wrote:
On 04/04/2019 16.34, Jason J. Herne wrote:
This is to support booting from vfio-ccw dasd devices. We basically implement
the real hardware ipl procedure. This allows for booting Linux guests on
vfio-ccw devices
Allows guest to boot from a vfio configured real dasd device.
Signed-off-by: Jason J. Herne
Reviewed-by: Cornelia Huck
---
MAINTAINERS | 1 +
docs/devel/s390-dasd-ipl.txt | 133
pc-bios/s390-ccw/Makefile| 2 +-
pc-bios/s390-ccw/dasd-ipl.c
Now that we have a Channel I/O library let's modify virtio boot code to
make use of it for running channel programs.
Signed-off-by: Jason J. Herne
Reviewed-by: Cornelia Huck
Acked-by: Thomas Huth
---
pc-bios/s390-ccw/virtio.c | 57 ++-
1 file
addr [0]=: 0x
cyl & head addr [1]=: 0x
cyl & head addr [2]=: 0x
The Sense Data section is currently only printed for ECKD DASD.
Signed-off-by: Jason J. Herne
Reviewed-by: Cornelia Huck
---
pc-bios/s390-
When the user does not specify which device to boot from then we end
up guessing. Instead of simply grabbing the first available device let's
be a little bit smarter and only choose devices that might be bootable
like disk, and not console devices.
Signed-off-by: Jason J. Herne
---
pc-bios/s390
as well
remove that call from virtio.c : run_ccw(). This requires adding some
additional enable_subchannel calls to not break calls to
virtio_is_supported().
Signed-off-by: Jason J. Herne
Reviewed-by: Cornelia Huck
Reviewed-by: Thomas Huth
---
pc-bios/s390-ccw/main.c| 16 ++--
pc-bios
Introduce inline functions to convert between pointers and unsigned 32-bit
ints. These are used to hide the ugliness required to avoid compiler
warnings.
Signed-off-by: Jason J. Herne
Acked-by: Cornelia Huck
Reviewed-by: Thomas Huth
---
pc-bios/s390-ccw/helper.h | 31
wording.
Signed-off-by: Jason J. Herne
Reviewed-by: Farhan Ali
Reviewed-by: Cornelia Huck
---
pc-bios/s390-ccw/main.c | 85 ++--
tests/boot-serial-test.c | 2 +-
2 files changed, 47 insertions(+), 40 deletions(-)
diff --git a/pc-bios/s390-ccw
The dasd IPL procedure needs to execute a few previously unused
channel commands. Let's define them and their associated data
structures.
Signed-off-by: Jason J. Herne
Acked-by: Cornelia Huck
Acked-by: Thomas Huth
---
pc-bios/s390-ccw/cio.h | 23 +++
1 file changed, 23
Create a separate library for channel i/o related code. This decouples
channel i/o operations from virtio and allows us to make use of them for
the real dasd boot path.
Signed-off-by: Jason J. Herne
Reviewed-by: Cornelia Huck
Reviewed-by: Thomas Huth
---
pc-bios/s390-ccw/Makefile| 2
dasd device.
Signed-off-by: Jason J. Herne
Reviewed-by: Cornelia Huck
Reviewed-by: Farhan Ali
---
pc-bios/s390-ccw/cio.c | 144
pc-bios/s390-ccw/cio.h | 130 ++-
pc-bios/s390-ccw/s390-ccw.h | 1 +
pc
Add bootindex property and iplb data for vfio-ccw devices. This allows us to
forward boot information into the bios for vfio-ccw devices.
Refactor s390_get_ccw_device() to return device type. This prevents us from
having to use messy casting logic in several places.
Signed-off-by: Jason J. Herne
Create a boot_setup function to handle getting boot information from
the machine/hypervisor. This decouples common boot logic from the
virtio code path and allows us to make use of it for the real dasd boot
scenario.
Signed-off-by: Jason J. Herne
Acked-by: Halil Pasic
Reviewed-by: Collin
Create a new header for basic architecture specific definitions and add a
mapping of low core memory. This mapping will be used by the real dasd boot
process.
Signed-off-by: Jason J. Herne
Acked-by: Cornelia Huck
Reviewed-by: Thomas Huth
---
pc-bios/s390-ccw/main.c | 2 +
pc-bios/s390
We need a method for finding the subchannel of a dasd device. Let's
modify find_dev to handle this since it mostly does what we need. Up to
this point find_dev has been specific to only virtio devices.
Signed-off-by: Jason J. Herne
Acked-by: Halil Pasic
Reviewed-by: Cornelia Huck
---
pc-bios
Add proper typedefs to all structs and modify all bit fields to use consistent
formatting.
Signed-off-by: Jason J. Herne
Reviewed-by: Collin Walling
Reviewed-by: Farhan Ali
Acked-by: Cornelia Huck
Reviewed-by: Thomas Huth
---
pc-bios/s390-ccw/cio.h | 114
Move channel i/o setup code out to a separate function. This decouples cio
setup from the virtio code path and allows us to make use of it for booting
dasd devices.
Signed-off-by: Jason J. Herne
Acked-by: Halil Pasic
Reviewed-by: Collin Walling
Reviewed-by: Farhan Ali
Reviewed-by: Thomas Huth
end of sense data status array
- Reorganized patch order slightly
- Other misc wording/spelling fixups
Jason J. Herne (16):
s390 vfio-ccw: Add bootindex property and IPLB data
s390-bios: decouple cio setup from virtio
s390-bios: decouple common boot logic from virtio
s390-bios: Clean up
On 3/29/19 4:33 AM, Thomas Huth wrote:
On 13/03/2019 17.31, Jason J. Herne wrote:
s/tansfers/transfers/
Will fix this, and the other typos you've pointed out.
...
+static char prefix_page[PAGE_SIZE * 2]
+__attribute__((__aligned__(PAGE_SIZE * 2)));
+
+static void
On 3/27/19 6:47 AM, Thomas Huth wrote:
On 13/03/2019 17.31, Jason J. Herne wrote:
Add verbose error output for when unexpected i/o errors happen. This eases the
burden of debugging and reporting i/o errors. No error information is printed
in the success case, here is an example of what
On 3/13/19 12:31 PM, Jason J. Herne wrote:
This is to support booting from vfio-ccw dasd devices. We basically implement
the real hardware ipl procedure. This allows for booting Linux guests on
vfio-ccw devices.
vfio-ccw's channel program prefetch algorithm complicates ipl because most ipl
Move channel i/o setup code out to a separate function. This decouples cio
setup from the virtio code path and allows us to make use of it for booting
dasd devices.
Signed-off-by: Jason J. Herne
Acked-by: Halil Pasic
Reviewed-by: Collin Walling
Reviewed-by: Farhan Ali
Reviewed-by: Thomas Huth
We need a method for finding the subchannel of a dasd device. Let's
modify find_dev to handle this since it mostly does what we need. Up to
this point find_dev has been specific to only virtio devices.
Signed-off-by: Jason J. Herne
Acked-by: Halil Pasic
Reviewed-by: Cornelia Huck
---
pc-bios
wording.
Signed-off-by: Jason J. Herne
Reviewed-by: Farhan Ali
Reviewed-by: Cornelia Huck
---
pc-bios/s390-ccw/main.c | 85 ++--
tests/boot-serial-test.c | 2 +-
2 files changed, 47 insertions(+), 40 deletions(-)
diff --git a/pc-bios/s390-ccw
. Details on the ipl process and
how we worked around this issue can be found in docs/devel/s390-dasd-ipl.txt.
Changelog
==
v5
- Whitespace changes and comments.
- Added newlines to printed strings in patch 15.
Jason J. Herne (15):
s390 vfio-ccw: Add bootindex property and IPLB data
s390
Create a separate library for channel i/o related code. This decouples
channel i/o operations from virtio and allows us to make use of them for
the real dasd boot path.
Signed-off-by: Jason J. Herne
Reviewed-by: Cornelia Huck
---
pc-bios/s390-ccw/Makefile| 2 +-
pc-bios/s390-ccw/cio.c
Add bootindex property and iplb data for vfio-ccw devices. This allows us to
forward boot information into the bios for vfio-ccw devices.
Refactor s390_get_ccw_device() to return device type. This prevents us from
having to use messy casting logic in several places.
Signed-off-by: Jason J. Herne
On 3/13/19 12:21 PM, Cornelia Huck wrote:
On Wed, 13 Mar 2019 12:10:50 -0400
"Jason J. Herne" wrote:
On 3/13/19 10:04 AM, Eric Farman wrote:
+static void run_readipl(SubChannelId schid)
+{
+if (do_cio(schid, 0x00, CCW_FMT0)) {
+panic("dasd-ipl: Failed to run R
Create a boot_setup function to handle getting boot information from
the machine/hypervisor. This decouples common boot logic from the
virtio code path and allows us to make use of it for the real dasd boot
scenario.
Signed-off-by: Jason J. Herne
Acked-by: Halil Pasic
Reviewed-by: Collin
Introduce inline functions to convert between pointers and unsigned 32-bit
ints. These are used to hide the ugliness required to avoid compiler
warnings.
Signed-off-by: Jason J. Herne
Acked-by: Cornelia Huck
Reviewed-by: Thomas Huth
---
pc-bios/s390-ccw/helper.h | 31
Add proper typedefs to all structs and modify all bit fields to use consistent
formatting.
Signed-off-by: Jason J. Herne
Reviewed-by: Collin Walling
Reviewed-by: Farhan Ali
Acked-by: Cornelia Huck
Reviewed-by: Thomas Huth
---
pc-bios/s390-ccw/cio.h | 114
Create a new header for basic architecture specific definitions and add a
mapping of low core memory. This mapping will be used by the real dasd boot
process.
Signed-off-by: Jason J. Herne
Acked-by: Cornelia Huck
---
pc-bios/s390-ccw/main.c | 2 +
pc-bios/s390-ccw/s390-arch.h | 90
dasd device.
Signed-off-by: Jason J. Herne
Reviewed-by: Cornelia Huck
---
pc-bios/s390-ccw/cio.c | 144
pc-bios/s390-ccw/cio.h | 130 ++-
pc-bios/s390-ccw/s390-ccw.h | 1 +
pc-bios/s390-ccw/start.S
The dasd IPL procedure needs to execute a few previously unused
channel commands. Let's define them and their associated data
structures.
Signed-off-by: Jason J. Herne
Acked-by: Cornelia Huck
---
pc-bios/s390-ccw/cio.h | 23 +++
1 file changed, 23 insertions(+)
diff --git
addr [0]=: 0x
cyl & head addr [1]=: 0x
cyl & head addr [2]=: 0x
The Sense Data section is currently only printed for ECKD DASD.
Signed-off-by: Jason J. Herne
Reviewed-by: Cornelia Huck
---
pc-bios/s390-
Now that we have a Channel I/O library let's modify virtio boot code to
make use of it for running channel programs.
Signed-off-by: Jason J. Herne
Reviewed-by: Cornelia Huck
---
pc-bios/s390-ccw/virtio.c | 57 ++-
1 file changed, 27 insertions(+), 30
Allows guest to boot from a vfio configured real dasd device.
Signed-off-by: Jason J. Herne
Reviewed-by: Cornelia Huck
---
MAINTAINERS | 1 +
docs/devel/s390-dasd-ipl.txt | 133 +++
pc-bios/s390-ccw/Makefile| 2 +-
pc-bios/s390-ccw/dasd-ipl.c | 249
as well
remove that call from virtio.c : run_ccw(). This requires adding some
additional enable_subchannel calls to not break calls to
virtio_is_supported().
Signed-off-by: Jason J. Herne
Reviewed-by: Cornelia Huck
---
pc-bios/s390-ccw/main.c| 16 ++--
pc-bios/s390-ccw/netmain.c | 1
wline. All of them appear to be before an if
statement's closing brace. Can you explain why you feel these are needed? I don't really
see any improvement in readability with these newlines.
--
-- Jason J. Herne (jjhe...@linux.ibm.com)
On 3/12/19 6:38 AM, Cornelia Huck wrote:
On Mon, 11 Mar 2019 11:21:19 -0400
"Jason J. Herne" wrote:
Add bootindex property and iplb data for vfio-ccw devices. This allows us to
forward boot information into the bios for vfio-ccw devices.
Refactor s390_get_ccw_device() to return d
On 3/11/19 1:33 PM, Cornelia Huck wrote:
On Mon, 11 Mar 2019 11:21:18 -0400
"Jason J. Herne" wrote:
This is to support booting from vfio-ccw dasd devices. We basically implement
the real hardware ipl procedure. This allows for booting Linux guests on
vfio-ccw devices.
vfio-ccw
Add proper typedefs to all structs and modify all bit fields to use consistent
formatting.
Signed-off-by: Jason J. Herne
Reviewed-by: Collin Walling
Reviewed-by: Farhan Ali
Acked-by: Cornelia Huck
Reviewed-by: Thomas Huth
---
pc-bios/s390-ccw/cio.h | 114
Introduce inline functions to convert between pointers and unsigned 32-bit
ints. These are used to hide the ugliness required to avoid compiler
warnings.
Signed-off-by: Jason J. Herne
Acked-by: Cornelia Huck
Reviewed-by: Thomas Huth
---
pc-bios/s390-ccw/helper.h | 31
Now that we have a Channel I/O library let's modify virtio boot code to
make use of it for running channel programs.
Signed-off-by: Jason J. Herne
---
pc-bios/s390-ccw/virtio.c | 49 +++
1 file changed, 20 insertions(+), 29 deletions(-)
diff --git
Move channel i/o setup code out to a separate function. This decouples cio
setup from the virtio code path and allows us to make use of it for booting
dasd devices.
Signed-off-by: Jason J. Herne
Acked-by: Halil Pasic
Reviewed-by: Collin Walling
Reviewed-by: Farhan Ali
Reviewed-by: Thomas Huth
hen it is provided
15/16:
- Added support for CU_TYPE_DASD_2107
16/16:
- Merged with various earlier patches
Jason J. Herne (15):
s390 vfio-ccw: Add bootindex property and IPLB data
s390-bios: decouple cio setup from virtio
s390-bios: decouple common boot logic from virtio
s390-bios: Extend find_
as well
remove that call from virtio.c : run_ccw(). This requires adding some
additional enable_subchannel calls to not break calls to
virtio_is_supported().
Signed-off-by: Jason J. Herne
---
pc-bios/s390-ccw/main.c| 16 ++--
pc-bios/s390-ccw/netmain.c | 1 +
pc-bios/s390-ccw/virtio.c
We need a method for finding the subchannel of a dasd device. Let's
modify find_dev to handle this since it mostly does what we need. Up to
this point find_dev has been specific to only virtio devices.
Signed-off-by: Jason J. Herne
Acked-by: Halil Pasic
Reviewed-by: Cornelia Huck
---
pc-bios
Add bootindex property and iplb data for vfio-ccw devices. This allows us to
forward boot information into the bios for vfio-ccw devices.
Refactor s390_get_ccw_device() to return device type. This prevents us from
having to use messy casting logic in several places.
Signed-off-by: Jason J. Herne
Create a separate library for channel i/o related code. This decouples
channel i/o operations from virtio and allows us to make use of them for
the real dasd boot path.
Signed-off-by: Jason J. Herne
---
pc-bios/s390-ccw/Makefile| 2 +-
pc-bios/s390-ccw/cio.c | 44
The dasd IPL procedure needs to execute a few previously unused
channel commands. Let's define them and their associated data
structures.
Signed-off-by: Jason J. Herne
Acked-by: Cornelia Huck
---
pc-bios/s390-ccw/cio.h | 23 +++
1 file changed, 23 insertions(+)
diff --git
Create a new header for basic architecture specific definitions and add a
mapping of low core memory. This mapping will be used by the real dasd boot
process.
Signed-off-by: Jason J. Herne
Acked-by: Cornelia Huck
---
pc-bios/s390-ccw/main.c | 2 +
pc-bios/s390-ccw/s390-arch.h | 90
wording.
Signed-off-by: Jason J. Herne
Reviewed-by: Farhan Ali
Reviewed-by: Cornelia Huck
---
pc-bios/s390-ccw/main.c | 85 ++--
tests/boot-serial-test.c | 2 +-
2 files changed, 47 insertions(+), 40 deletions(-)
diff --git a/pc-bios/s390-ccw
dasd device.
Signed-off-by: Jason J. Herne
---
pc-bios/s390-ccw/cio.c | 144
pc-bios/s390-ccw/cio.h | 130 ++-
pc-bios/s390-ccw/s390-ccw.h | 1 +
pc-bios/s390-ccw/start.S| 29 +
4 files
addr [0]=: 0x
cyl & head addr [1]=: 0x
cyl & head addr [2]=: 0x
Signed-off-by: Jason J. Herne
---
pc-bios/s390-ccw/cio.c | 237 +++-
pc-bios/s390-ccw/libc.h | 11 +++
2 files changed, 247 insertion
Allows guest to boot from a vfio configured real dasd device.
Signed-off-by: Jason J. Herne
Reviewed-by: Cornelia Huck
---
MAINTAINERS | 1 +
docs/devel/s390-dasd-ipl.txt | 133 +++
pc-bios/s390-ccw/Makefile| 2 +-
pc-bios/s390-ccw/dasd-ipl.c | 250
Create a boot_setup function to handle getting boot information from
the machine/hypervisor. This decouples common boot logic from the
virtio code path and allows us to make use of it for the real dasd boot
scenario.
Signed-off-by: Jason J. Herne
Acked-by: Halil Pasic
Reviewed-by: Collin
On 3/4/19 1:35 PM, Cornelia Huck wrote:
On Fri, 1 Mar 2019 13:59:31 -0500
"Jason J. Herne" wrote:
Add verbose error output for when unexpected i/o errors happen. This eases the
burden of debugging and reporting i/o errors. No error information is printed
in the success
On 3/4/19 1:25 PM, Cornelia Huck wrote:
On Fri, 1 Mar 2019 13:59:30 -0500
"Jason J. Herne" wrote:
Add struct for format-0 ccws. Support executing format-0 channel
programs and waiting for their completion before continuing execution.
That sentence is a bit confusing.
On 3/7/19 1:15 PM, Eric Farman wrote:
On 03/07/2019 09:38 AM, Jason J. Herne wrote:
On 3/4/19 12:02 PM, Eric Farman wrote:
On 03/01/2019 01:59 PM, Jason J. Herne wrote:
Propagate control unit type from main through the dasd ipl call chain.
The control unit type can be used to determine
On 3/5/19 7:27 AM, Cornelia Huck wrote:
On Fri, 1 Mar 2019 13:59:33 -0500
"Jason J. Herne" wrote:
The boot method is different depending on which device type we are
booting from. Let's examine the control unit type to determine if we're
a virtio device. We'll eventually add a cas
On 3/5/19 7:30 AM, Cornelia Huck wrote:
On Fri, 1 Mar 2019 13:59:32 -0500
"Jason J. Herne" wrote:
Now that we have a Channel I/O library let's modify virtio boot code to
make use of it for running channel programs.
Signed-off-by: Jason J. Herne
---
pc-bios/s390-ccw/vir
On 3/4/19 12:02 PM, Eric Farman wrote:
On 03/01/2019 01:59 PM, Jason J. Herne wrote:
Propagate control unit type from main through the dasd ipl call chain.
The control unit type can be used to determine if we are attempting to
boot from a real dasd device. If something goes wrong we'll want
On 3/5/19 2:22 AM, Thomas Huth wrote:
On 01/03/2019 19.59, Jason J. Herne wrote:
Introduce inline functions to convert between pointers and unsigned 32-bit
ints. These are used to hide the ugliness required to avoid compiler
warnings.
Signed-off-by: Jason J. Herne
Acked-by: Cornelia Huck
On 3/5/19 1:27 AM, Thomas Huth wrote:
On 01/03/2019 19.59, Jason J. Herne wrote:
Create a new header for basic architecture specific definitions and add a
mapping of low core memory. This mapping will be used by the real dasd boot
process.
Signed-off-by: Jason J. Herne
---
pc-bios/s390-ccw
On 3/5/19 1:27 AM, Thomas Huth wrote:
On 01/03/2019 19.59, Jason J. Herne wrote:
Create a new header for basic architecture specific definitions and add a
mapping of low core memory. This mapping will be used by the real dasd boot
process.
Signed-off-by: Jason J. Herne
---
pc-bios/s390-ccw
On 3/5/19 12:51 AM, Thomas Huth wrote:
On 01/03/2019 19.59, Jason J. Herne wrote:
Add proper typedefs to all structs and modify all bit fields to use consistent
formatting.
Signed-off-by: Jason J. Herne
Reviewed-by: Collin Walling
Reviewed-by: Farhan Ali
---
pc-bios/s390-ccw/cio.h
On 3/6/19 10:27 AM, Cornelia Huck wrote:
On Wed, 6 Mar 2019 09:55:40 -0500
"Jason J. Herne" wrote:
On 3/4/19 8:40 AM, Cornelia Huck wrote:
On Fri, 1 Mar 2019 13:59:21 -0500
"Jason J. Herne" wrote:
@@ -532,7 +559,7 @@ void s390_ipl_reset_request(CPUState *cs, enum s3
On 3/4/19 11:09 AM, Farhan Ali wrote:
On 03/01/2019 01:59 PM, Jason J. Herne wrote:
Add bootindex property and iplb data for vfio-ccw devices. This allows us to
forward boot information into the bios for vfio-ccw devices.
Refactor s390_get_ccw_device() to return device type. This prevents us
On 3/4/19 8:40 AM, Cornelia Huck wrote:
On Fri, 1 Mar 2019 13:59:21 -0500
"Jason J. Herne" wrote:
Add bootindex property and iplb data for vfio-ccw devices. This allows us to
forward boot information into the bios for vfio-ccw devices.
Refactor s390_get_ccw_device() to return d
are booting a virtio device or a
real dasd device.
Signed-off-by: Jason J. Herne
---
pc-bios/s390-ccw/cio.c | 141
pc-bios/s390-ccw/cio.h | 127 ++-
pc-bios/s390-ccw/s390-ccw.h | 1 +
pc-bios/s390-ccw/start.S
addr [0]=: 0x
cyl & head addr [1]=: 0x
cyl & head addr [2]=: 0x
Signed-off-by: Jason J. Herne
---
pc-bios/s390-ccw/cio.c | 230
pc-bios/s390-ccw/libc.h | 11 +++
2 files changed, 241 insertions(+)
Create a separate library for channel i/o related code. This decouples
channel i/o operations from virtio and allows us to make use of them for
the real dasd boot path.
Signed-off-by: Jason J. Herne
---
pc-bios/s390-ccw/Makefile| 2 +-
pc-bios/s390-ccw/cio.c | 43
Now that we have a Channel I/O library let's modify virtio boot code to
make use of it for running channel programs.
Signed-off-by: Jason J. Herne
---
pc-bios/s390-ccw/virtio.c | 49 +++
1 file changed, 20 insertions(+), 29 deletions(-)
diff --git
Create a boot_setup function to handle getting boot information from
the machine/hypervisor. This decouples common boot logic from the
virtio code path and allows us to make use of it for the real dasd boot
scenario.
Signed-off-by: Jason J. Herne
Acked-by: Halil Pasic
Reviewed-by: Collin
Add proper typedefs to all structs and modify all bit fields to use consistent
formatting.
Signed-off-by: Jason J. Herne
Reviewed-by: Collin Walling
Reviewed-by: Farhan Ali
---
pc-bios/s390-ccw/cio.h | 152 ++--
pc-bios/s390-ccw/s390-ccw.h | 8
as well
remove that call from virtio.c : run_ccw().
Signed-off-by: Jason J. Herne
---
pc-bios/s390-ccw/main.c | 15 +--
1 file changed, 13 insertions(+), 2 deletions(-)
diff --git a/pc-bios/s390-ccw/main.c b/pc-bios/s390-ccw/main.c
index 0670c14..ed79b7a 100644
--- a/pc-bios/s390-ccw
We need a method for finding the subchannel of a dasd device. Let's
modify find_dev to handle this since it mostly does what we need. Up to
this point find_dev has been specific to only virtio devices.
Signed-off-by: Jason J. Herne
Acked-by: Halil Pasic
Reviewed-by: Cornelia Huck
---
pc-bios
wording.
Signed-off-by: Jason J. Herne
Reviewed-by: Farhan Ali
---
pc-bios/s390-ccw/main.c | 85 ++--
tests/boot-serial-test.c | 2 +-
2 files changed, 47 insertions(+), 40 deletions(-)
diff --git a/pc-bios/s390-ccw/main.c b/pc-bios/s390-ccw/main.c
s390-dasd-ipl.c: Replace all instances of Qemu with QEMU
- Added docs/devel/s390-dasd-ipl.txt to MAINTAINERS
- s390-dasd-ipl.c: Include helper.c for new pointer conversion functions
Jason J. Herne (16):
s390 vfio-ccw: Add bootindex property and IPLB data
s390-bios: decouple cio setup from vir
Add bootindex property and iplb data for vfio-ccw devices. This allows us to
forward boot information into the bios for vfio-ccw devices.
Refactor s390_get_ccw_device() to return device type. This prevents us from
having to use messy casting logic in several places.
Signed-off-by: Jason J. Herne
. Since determining
the control unit type is the very first thing we do with any real dasd device,
this is our most likely point of failure.
Signed-off-by: Jason J. Herne
---
pc-bios/s390-ccw/cio.c | 16 ++--
pc-bios/s390-ccw/cio.h | 6 --
pc-bios/s390-ccw/dasd-ipl.c | 25
Allows guest to boot from a vfio configured real dasd device.
Signed-off-by: Jason J. Herne
---
MAINTAINERS | 1 +
docs/devel/s390-dasd-ipl.txt | 133 +++
pc-bios/s390-ccw/Makefile| 2 +-
pc-bios/s390-ccw/dasd-ipl.c | 249
Create a new header for basic architecture specific definitions and add a
mapping of low core memory. This mapping will be used by the real dasd boot
process.
Signed-off-by: Jason J. Herne
---
pc-bios/s390-ccw/main.c | 2 +
pc-bios/s390-ccw/s390-arch.h | 102
The dasd IPL procedure needs to execute a few previously unused
channel commands. Let's define them and their associated data
structures.
Signed-off-by: Jason J. Herne
Acked-by: Cornelia Huck
---
pc-bios/s390-ccw/cio.h | 23 +++
1 file changed, 23 insertions(+)
diff --git
Introduce inline functions to convert between pointers and unsigned 32-bit
ints. These are used to hide the ugliness required to avoid compiler
warnings.
Signed-off-by: Jason J. Herne
Acked-by: Cornelia Huck
---
pc-bios/s390-ccw/helper.h | 16
1 file changed, 16 insertions
1 - 100 of 383 matches
Mail list logo