From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55500) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXqKa-0000zf-Ld for qemu-devel@nongnu.org; Mon, 22 Feb 2016 08:15:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aXqKX-0004kQ-Ed for qemu-devel@nongnu.org; Mon, 22 Feb 2016 08:15:16 -0500 Received: from e06smtp17.uk.ibm.com ([195.75.94.113]:60560) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXqKX-0004kB-3o for qemu-devel@nongnu.org; Mon, 22 Feb 2016 08:15:13 -0500 Received: from localhost by e06smtp17.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 22 Feb 2016 13:15:10 -0000 References: <1455895091-7589-1-git-send-email-richard.weiyang@gmail.com> <1455895091-7589-3-git-send-email-richard.weiyang@gmail.com> From: Christian Borntraeger Message-ID: <56CB09DB.7070604@de.ibm.com> Date: Mon, 22 Feb 2016 14:15:07 +0100 MIME-Version: 1.0 In-Reply-To: <1455895091-7589-3-git-send-email-richard.weiyang@gmail.com> Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit 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: Wei Yang Cc: qemu-trivial@nongnu.org, Cornelia Huck , Yi Min Zhao , qemu-devel@nongnu.org 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. > > This patch uses PCI_MSIX_FLAGS to retrieve the MSIX entries. > > 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(-) > > 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; > } > > - ctrl = pci_host_config_read_common(pbdev->pdev, pos + PCI_CAP_FLAGS, > + ctrl = pci_host_config_read_common(pbdev->pdev, pos + PCI_MSIX_FLAGS, > pci_config_size(pbdev->pdev), sizeof(ctrl)); > table = pci_host_config_read_common(pbdev->pdev, pos + PCI_MSIX_TABLE, > pci_config_size(pbdev->pdev), sizeof(table)); > looks sane. Yi Min, can you ack/nack?