s390x/pci: return real state during listing PCI
commit88bfa2166ac0b14483a2a2c667499bf3617aebf0
authorYi Min Zhao <zyimin@linux.vnet.ibm.com>
Wed, 16 Dec 2015 09:36:31 +0000 (16 17:36 +0800)
committerCornelia Huck <cornelia.huck@de.ibm.com>
Wed, 13 Jan 2016 09:53:42 +0000 (13 10:53 +0100)
tree05d97e4765873ca0af73c54b5db96cf84931bb67
parent1789f4e37c78d408dfa61655dfd8b397554152f9
s390x/pci: return real state during listing PCI

At present, list_pci() shows all PCI devices as being in configured
state. As devices can be deconfigured by the guest, we need to show
the real configuration status instead.

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