s390x/pci: merge msix init functions
commit857cc71985dcd553a601fb9a0df7919359c23115
authorYi Min Zhao <zyimin@linux.vnet.ibm.com>
Tue, 13 Dec 2016 10:31:25 +0000 (13 18:31 +0800)
committerCornelia Huck <cornelia.huck@de.ibm.com>
Fri, 20 Jan 2017 09:02:02 +0000 (20 10:02 +0100)
tree9723516448dabfe4f3d0cf4191bdc6458cf2db14
parentd2f07120a35ab31715e9c73438705b635873d06a
s390x/pci: merge msix init functions

Currently there're two functions, s390_pci_setup_msix() and
s390_pci_msix_init(), for msix initialization, and being called once
for each zpci device plugging. Let's integrate them.

Moreover msix is mandatory in s390 architecture. So we ensure the pci
device being plugged supports msix. For vfio (which is the only tested
setup so far), nothing changes.

Signed-off-by: Yi Min Zhao <zyimin@linux.vnet.ibm.com>
Reviewed-by: Pierre Morel <pmorel@linux.vnet.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
hw/s390x/s390-pci-bus.c