From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56281) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eCOBO-0007ME-5y for qemu-devel@nongnu.org; Wed, 08 Nov 2017 06:06:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eCOBK-0005Cc-6o for qemu-devel@nongnu.org; Wed, 08 Nov 2017 06:06:10 -0500 Date: Wed, 8 Nov 2017 12:05:57 +0100 From: Cornelia Huck Message-ID: <20171108120557.42e07dd3.cohuck@redhat.com> In-Reply-To: <20171107175455.73793-2-borntraeger@de.ibm.com> References: <20171107175455.73793-1-borntraeger@de.ibm.com> <20171107175455.73793-2-borntraeger@de.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 1/1] s390x/pci: let pci devices start in configured mode List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Christian Borntraeger Cc: qemu-devel , qemu-s390x , Halil Pasic , Alexander Graf , Richard Henderson , Yi Min Zhao , Pierre Morel On Tue, 7 Nov 2017 18:54:55 +0100 Christian Borntraeger wrote: > 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 > Acked-by: Yi Min Zhao > Reviewed-by: Pierre Morel > --- > hw/s390x/s390-pci-bus.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/hw/s390x/s390-pci-bus.c b/hw/s390x/s390-pci-bus.c > index e7a58e8..2b1e140 100644 > --- a/hw/s390x/s390-pci-bus.c > +++ b/hw/s390x/s390-pci-bus.c > @@ -715,7 +715,7 @@ static void s390_pcihost_hot_plug(HotplugHandler *hotplug_dev, > pbdev->pdev = pdev; > pbdev->iommu = s390_pci_get_iommu(s, pdev->bus, pdev->devfn); > pbdev->iommu->pbdev = pbdev; > - pbdev->state = ZPCI_FS_STANDBY; > + pbdev->state = ZPCI_FS_DISABLED; > > if (s390_pci_msix_init(pbdev)) { > error_setg(errp, "MSI-X support is mandatory " Thanks, queued to s390-fixes.