09/11/2017 10:21, Zhiyong Yang:
> When running l3fwd-power to test virtio rxq interrupt using vfio
> pci noiommu mode, startup fails. In the function virtio_read_caps,
> the code if (flags & PCI_MSIX_ENABLE) intends to double check
> if vfio msix is enabled or not. However, it is not enable at that
> time. So use_msix is assigned to "0", not "1", which causes the
> failure of configuring rxq intr in l3fwd-power.
> This patch adds the function "vtpci_msix_detect" to detect the status
> of msix when interrupt changes happen.
> In the meanwhile, virtio_intr_enable/disable are introduced to wrap
> rte_intr_enable/disable to enhance the ability to detect msix.
> use_msix can indicate three different msix status by:
> VIRTIO_MSIX_NONE (0)
> VIRTIO_MSIX_DISABLED (1)
> VIRTIO_MSIX_ENABLED (2)
> 
> CC: sta...@dpdk.org
> CC: jianfeng....@intel.com
> CC: y...@fridaylinux.org
> CC: maxime.coque...@redhat.com
> 
> Fixes: cb482cb3a305 ("net/virtio: fix MAC address read")
> Signed-off-by: Zhiyong Yang <zhiyong.y...@intel.com>
> Acked-by: Jianfeng Tan <jianfeng....@intel.com>
> Acked-by: Maxime Coquelin <maxime.coque...@redhat.com>

Applied, thanks

Reply via email to