s390x/pci: let pci devices start in configured mode
commit2c28c490571f61fe8a01e048e5114ad6c08d80a0
authorChristian Borntraeger <borntraeger@de.ibm.com>
Tue, 7 Nov 2017 17:54:55 +0000 (7 18:54 +0100)
committerCornelia Huck <cohuck@redhat.com>
Wed, 8 Nov 2017 11:00:08 +0000 (8 12:00 +0100)
treed14889eea58ad52db525166569452b1a348a1d90
parentb0fbe46ad82982b289a44ee2495b59b0bad8a842
s390x/pci: let pci devices start in configured mode

Currently, to enable a pci device in the guest, the user has to issue
echo 1 > /sys/bus/pci/slots/00000000/power. This is not what people
expect. On an LPAR, the user can put a PCI device in configured or
deconfigured state via IOCDS. The "start in deconfigured state" can be
used for "sharing" a pci function across LPARs. This is not what we are
going to use in KVM, so always start configured.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Acked-by: Yi Min Zhao <zyimin@linux.vnet.ibm.com>
Reviewed-by: Pierre Morel <pmorel@linux.vnet.ibm.com>
Message-Id: <20171107175455.73793-2-borntraeger@de.ibm.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
hw/s390x/s390-pci-bus.c