Statistics
| Branch: | Revision:

root / hw / s390x @ feature-archipelago

Name Size
Makefile.objs 232 Bytes
css.c 34.9 kB
css.h 3 kB
event-facility.c 12 kB
ipl.c 6.1 kB
s390-virtio-bus.c 22 kB
s390-virtio-bus.h 5.6 kB
s390-virtio-ccw.c 4.1 kB
s390-virtio-hcall.c 920 Bytes
s390-virtio.c 8.1 kB
s390-virtio.h 972 Bytes
sclp.c 4.9 kB
sclpcpu.c 2.6 kB
sclpquiesce.c 3.3 kB
virtio-ccw.c 41.8 kB
virtio-ccw.h 5.1 kB

Latest revisions

# Date Author Comment
7f00eb30 02/27/2014 10:51 am Thomas Huth

s390x/ipl: Fix crash of ELF images with arbitrary entry points

When loading S390 kernels, the current code expects an ELF file with the
start address 0x10000. Other ELF files cause a segmentation fault. To avoid
these crashes, we should get the start address from the ELF file instead...

f2c55d17 02/27/2014 10:51 am Thomas Huth

s390x/virtio-hcall: Add range check for hypervisor call

The handler for diag 500 did not check whether the requested function
was in the supported range, so illegal values could crash QEMU in the
worst case.

Signed-off-by: Thomas Huth <>...

77319f22 02/27/2014 10:51 am Thomas Huth

s390x/virtio-hcall: Specification exception for illegal subcodes

So far, the DIAG 500 hypervisor call was only setting -EINVAL in
R2 when a guest tried to call this function with an illegal subcode.
This patch now changes the behavior so that a specification exception...

9da45bb2 02/27/2014 10:51 am Christian Borntraeger

s390x/eventfacility: mask out commands

As a followup to commit 5f04c14a10fa7f259bc0808f35a0beda49f7821e
(s390-sclp: Define New SCLP Codes) we should mask the sclp command
not only in base sclp, but also in the event facility.

Based on an initial patch from Ralf Hoppe....

a0fa2cb8 02/27/2014 10:51 am Thomas Huth

s390x/sclp: Fixed the size of sccb and code parameter

The pointer to the SCCB should not be limited to 32 bits only.
In contrast to this, the command word parameter is only 32 bits
(the upper 32 bits should be ignored).

Signed-off-by: Thomas Huth <>...

6e252802 02/27/2014 10:51 am Thomas Huth

s390x/sclp: Add missing checks to SCLP handler

If the 51 most significant bits of the SCCB address are zero or equal to
the prefix, we should throw an specification exception, too.
Also moved the check for privileged mode to sclp_service_call() to have
all program checks in one place now....

65e526c2 02/27/2014 10:51 am Heinz Graalfs

s390x/event-facility: some renaming

Do some renaming to shorten some identifiers and to emphasize sclp.

Signed-off-by: Heinz Graalfs <>
Acked-by: Cornelia Huck <>
Signed-off-by: Christian Borntraeger <>

477a72a1 02/27/2014 10:51 am Heinz Graalfs

s390x/event-facility: code restructure

Code restructure in order to simplify class hierarchy
- remove S390SCLPDevice abstract base class
and move function pointers into new SCLPEventFacilityClass
- implement SCLPEventFacility as SysBusDevice
- use define constants for instance creation strings...

6fbef18a 02/27/2014 10:51 am Heinz Graalfs

s390x/event-facility: add support for live migration

Add support for live migration using VMStateDescription.

Signed-off-by: Heinz Graalfs <>
Reviewed-by: Cornelia Huck <>
Signed-off-by: Christian Borntraeger <>

c804c2a7 02/27/2014 10:51 am Heinz Graalfs

s390x/event-facility: exploit realize/unrealize

init/exit functionality of abstract SCLPEvent class is now exploiting
realize/unrealize.

Signed-off-by: Heinz Graalfs <>
Reviewed-by: Cornelia Huck <>
Signed-off-by: Christian Borntraeger <>

View revisions

Also available in: Atom