s390x/pci: rework PCI STORE BLOCK
commit0e7c259adff7e97f829a08a5f146e7ee03b5ae47
authorPierre Morel <pmorel@linux.vnet.ibm.com>
Thu, 30 Nov 2017 12:55:27 +0000 (30 13:55 +0100)
committerCornelia Huck <cohuck@redhat.com>
Thu, 14 Dec 2017 16:56:54 +0000 (14 17:56 +0100)
tree0bbf0d9a836880db990a915b5bafae68ad56b72d
parent8cbd6aab9579a1ce0601049ea4bce5ea37a668ce
s390x/pci: rework PCI STORE BLOCK

Enhance the fault detection.

Fixup the precedence to check the destination path existance
before checking for the source accessibility.

Add the maxstbl entry to both the Query PCI Function Group
response and the PCIBusDevice structure.

Initialize the maxstbl to 128 per default until we get
the actual data from the hardware.

Signed-off-by: Pierre Morel <pmorel@linux.vnet.ibm.com>
Reviewed-by: Yi Min Zhao <zyimin@linux.vnet.ibm.com>
Message-Id: <1512046530-17773-5-git-send-email-pmorel@linux.vnet.ibm.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
hw/s390x/s390-pci-bus.h
hw/s390x/s390-pci-inst.c
hw/s390x/s390-pci-inst.h