Statistics
| Branch: | Revision:

root / pc-bios / s390-ccw / virtio.c @ 6683d7bc

History | View | Annotate | Download (7.3 kB)

# Date Author Comment
1e17c2c1 04/26/2013 09:18 pm Alexander Graf

S390: ccw firmware: Add virtio device drivers

In order to boot, we need to be able to access a virtio-blk device through
the CCW bus. Implement support for this.

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 <>...

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 <>