[dpdk-dev] [PATCH v4] pci: support both PIO and MMIO BAR for legacy virtio on x86
谢华伟(此时此刻)
huawei.xhw at alibaba-inc.com
Tue Oct 13 14:34:00 CEST 2020
> switch (p->dev->kdrv) {
> #ifdef VFIO_PRESENT
> case RTE_PCI_KDRV_VFIO:
> - pci_vfio_ioport_read(p, data, len, offset);
> + pci_uio_ioport_read(p, data, len, offset);
> break;
> #endif
> case RTE_PCI_KDRV_IGB_UIO:
> - pci_uio_ioport_read(p, data, len, offset);
> - break;
> case RTE_PCI_KDRV_UIO_GENERIC:
> pci_uio_ioport_read(p, data, len, offset);
> }
Maxime:
With this patch, virtio PIO/MMIO port RW is directly through user space
instruction instead of vfio ioctl syscall.
/huawei
More information about the dev
mailing list