[dpdk-dev] [PATCH v6] net/virtio: fix rxq intr config fails using vfio-pci

Thomas Monjalon thomas at monjalon.net
Sat Nov 11 15:34:13 CET 2017


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: stable at dpdk.org
> CC: jianfeng.tan at intel.com
> CC: yliu at fridaylinux.org
> CC: maxime.coquelin at redhat.com
> 
> Fixes: cb482cb3a305 ("net/virtio: fix MAC address read")
> Signed-off-by: Zhiyong Yang <zhiyong.yang at intel.com>
> Acked-by: Jianfeng Tan <jianfeng.tan at intel.com>
> Acked-by: Maxime Coquelin <maxime.coquelin at redhat.com>

Applied, thanks



More information about the dev mailing list