qemu-e2k/include/hw/s390x
Cornelia Huck 80b7a26536 s390x/sclp: properly guard pci-specific functions
If we do not provide zpci, pci reconfiguration via sclp is not available
either. I/O adapter configuration, however, should always be present.

Rename the values that refer to I/O adapter configuration (instead of only
pci) to make things clearer.

Move length checking of the sccb for I/O adapter configuration into the
common sclp code (out of the pci code). This also fixes an issue that
the pci code would refer to a field in the sccb before checking whether
it was actually long enough.

Check for the adapter type in the sccb and return unrecognized adapter
type if the guest tries to issue I/O adapter configure/deconfigure for
a type other than pci or for pci if the zpci facility is not provided.

Reviewed-by: Pierre Morel <pmorel@linux.vnet.ibm.com>
Reviewed-by: Halil Pasic <pasic@linux.vnet.ibm.com>
Acked-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
2017-08-30 18:23:25 +02:00
..
3270-ccw.h s390x/3270: 3270 data stream handling 2017-05-04 10:34:37 +02:00
adapter.h s390x/virtio-ccw: wire up irq routing and irqfds 2014-05-20 13:05:58 +02:00
css-bridge.h s390x/css: realize css_create_sch 2017-05-19 12:29:01 +02:00
css.h s390x/css: generate solicited crw for rchp completion signaling 2017-08-30 18:23:25 +02:00
ebcdic.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
event-facility.h Use #include "..." for our own headers, <...> for others 2016-07-12 16:19:16 +02:00
ioinst.h s390x/css: use macro for event-information pending error recover code 2017-08-30 18:23:25 +02:00
s390-ccw.h s390x/css: introduce and realize ccw-request callback 2017-05-19 12:29:01 +02:00
s390-virtio-ccw.h s390x/kvm: enable guarded storage 2017-07-14 12:29:49 +02:00
s390_flic.h s390x/flic: migrate ais states 2017-07-14 12:29:49 +02:00
sclp.h s390x/sclp: properly guard pci-specific functions 2017-08-30 18:23:25 +02:00
storage-attributes.h s390x/migration: Monitor commands for storage attributes 2017-07-14 12:29:47 +02:00
storage-keys.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00