aboutsummaryrefslogtreecommitdiff
path: root/hw/sh4
diff options
context:
space:
mode:
authorCornelia Huck <cohuck@redhat.com>2017-07-06 17:13:14 +0200
committerCornelia Huck <cohuck@redhat.com>2017-08-30 18:23:25 +0200
commit80b7a265362c870f95fb5ca1f7e7a02c0fa0db3e (patch)
tree854932d6cc1e81fea496caae0224d09935cac791 /hw/sh4
parentd32bd032d8fde41281aae34c16a4aa97e9acfeac (diff)
downloadqemu-80b7a265362c870f95fb5ca1f7e7a02c0fa0db3e.zip
qemu-80b7a265362c870f95fb5ca1f7e7a02c0fa0db3e.tar.gz
qemu-80b7a265362c870f95fb5ca1f7e7a02c0fa0db3e.tar.bz2
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>
Diffstat (limited to 'hw/sh4')
0 files changed, 0 insertions, 0 deletions