[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 2/2] s390x/pci: use PCI_MSIX_FLAGS on retrieving
From: |
Christian Borntraeger |
Subject: |
Re: [Qemu-devel] [PATCH 2/2] s390x/pci: use PCI_MSIX_FLAGS on retrieving the MSIX entries |
Date: |
Mon, 22 Feb 2016 14:15:07 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 |
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 <address@hidden>
> CC: Cornelia Huck <address@hidden>
> CC: Christian Borntraeger <address@hidden>
> ---
> 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?