Statistics
| Branch: | Revision:

root / pc-bios @ 0c1fecdd

Latest revisions

# Date Author Comment
685d49a6 04/26/2013 09:18 pm Alexander Graf

S390: ccw firmware: Add bootmap interpreter

On s390, there is an architected boot map format that we can read to
boot a certain entry off the disk. Implement a simple reader for this
that always boots the first (default) entry.

Signed-off-by: Alexander Graf <>

b462fcd5 04/26/2013 09:18 pm Alexander Graf

S390: ccw firmware: Add Makefile

This patch adds a makefile, so we can build our ccw firmware. Also
add the resulting binaries to .gitignore, so that nobody is annoyed
they might be in the tree.

Signed-off-by: Alexander Graf <>

7f61cbc1 04/26/2013 09:18 pm Christian Borntraeger

s390-ccw.img: replace while loop with a disabled wait on s390 bios

dont waste cpu power on an error condition. Lets stop the guest
with a disabled wait.

Signed-off-by: Christian Borntraeger <>
Signed-off-by: Alexander Graf <>

6328801f 04/26/2013 09:18 pm Christian Borntraeger

s390-ccw.img: Take care of the elf->img transition

We have to call strip with s390-ccw.elf as input and
s390-ccw.img as output

Signed-off-by: Christian Borntraeger <>
Signed-off-by: Alexander Graf <>

dc03640b 04/26/2013 09:18 pm Christian Borntraeger

s390-ccw.img: Fix compile warning in s390 ccw virtio code

Lets fix this gcc warning:

virtio.c: In function ‘vring_send_buf’:
virtio.c:125:35: error: operation on ‘vr->next_idx’ may be undefined
[-Werror=sequence-point]

Signed-off-by: Christian Borntraeger <>...

22d67ab5 04/26/2013 09:18 pm Cornelia Huck

s390-ccw.img: Detect devices with stsch.

stsch is the canonical way to detect devices. As a bonus, we can
abort the loop if we get cc 3, and we need to check only the valid
devices (dnv set).

Signed-off-by: Cornelia Huck <>
Signed-off-by: Alexander Graf <>

776e7f0f 04/26/2013 09:18 pm Cornelia Huck

s390-ccw.img: Enhance drain_irqs().

- Use tpi + tsch to get interrupts.
- Return an error if the irb indicates problems.

Signed-off-by: Cornelia Huck <>
Signed-off-by: Alexander Graf <>

0f3f1f30 04/26/2013 09:18 pm Cornelia Huck

s390-ccw.img: Rudimentary error checking.

Try to handle at least some of the errors that may happen.

Signed-off-by: Cornelia Huck <>
Signed-off-by: Alexander Graf <>

abbbe3de 04/26/2013 09:18 pm Cornelia Huck

s390-ccw.img: Get queue config from host.

Ask the host about the configuration instead of guessing it.

Signed-off-by: Cornelia Huck <>
Signed-off-by: Alexander Graf <>

0c1fecdd 04/26/2013 09:18 pm Alexander Graf

S390: ccw firmware: Add compiled blob

Now that we have all the source code ready, add a compiled blob into
the QEMU source tree, so that people without access to an s390 compiler
can run the s390-ccw firmware.

Signed-off-by: Alexander Graf <>

View revisions

Also available in: Atom