Received: from eggs.gnu.org ([2001:4830:134:3::10]:37137) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aY6Ho-00085K-80 for qemu-devel@nongnu.org; Tue, 23 Feb 2016 01:17:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aY6Hi-0005iU-E7 for qemu-devel@nongnu.org; Tue, 23 Feb 2016 01:17:27 -0500 Received: from e18.ny.us.ibm.com ([129.33.205.208]:42610) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aY6Hi-0005hy-8r for qemu-devel@nongnu.org; Tue, 23 Feb 2016 01:17:22 -0500 Received: from localhost by e18.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 23 Feb 2016 01:17:20 -0500 Date: Tue, 23 Feb 2016 14:17:11 +0800 From: Yi Min Zhao Message-ID: <20160223141711.277bfb16@oc0525210443> In-Reply-To: <56CB09DB.7070604@de.ibm.com> References: <1455895091-7589-1-git-send-email-richard.weiyang@gmail.com> <1455895091-7589-3-git-send-email-richard.weiyang@gmail.com> <56CB09DB.7070604@de.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 2/2] s390x/pci: use PCI_MSIX_FLAGS on retrieving the MSIX entries List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Christian Borntraeger Cc: qemu-trivial@nongnu.org, Cornelia Huck , qemu-devel@nongnu.org, Wei Yang =E4=BA=8E Mon, 22 Feb 2016 14:15:07 +0100 Christian Borntraeger =E5=86=99=E9=81=93: > On 02/19/2016 04:18 PM, Wei Yang wrote: > > Even PCI_CAP_FLAGS has the same value as PCI_MSIX_FLAGS, the later one = is > > the more proper on retrieving MSIX entries. > >=20 > > This patch uses PCI_MSIX_FLAGS to retrieve the MSIX entries. > >=20 > > Signed-off-by: Wei Yang > > CC: Cornelia Huck > > CC: Christian Borntraeger > > --- > > hw/s390x/s390-pci-bus.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > >=20 > > diff --git a/hw/s390x/s390-pci-bus.c b/hw/s390x/s390-pci-bus.c > > index 132588b..9d40039 100644 > > --- a/hw/s390x/s390-pci-bus.c > > +++ b/hw/s390x/s390-pci-bus.c > > @@ -523,7 +523,7 @@ static int s390_pcihost_setup_msix(S390PCIBusDevice= *pbdev) > > return 0; > > } > >=20 > > - ctrl =3D pci_host_config_read_common(pbdev->pdev, pos + PCI_CAP_FL= AGS, > > + ctrl =3D pci_host_config_read_common(pbdev->pdev, pos + PCI_MSIX_F= LAGS, > > pci_config_size(pbdev->pdev), sizeof(ctrl)); > > table =3D pci_host_config_read_common(pbdev->pdev, pos + PCI_MSIX_= TABLE, > > pci_config_size(pbdev->pdev), sizeof(table)); > >=20 >=20 > looks sane. > Yi Min, can you ack/nack? >=20 >=20 It looks sane to me. A little change.