[dpdk-dev] [PATCH] vfio: add hotplug support
Eelco Chaudron
echaudro at redhat.com
Fri Mar 17 12:07:18 CET 2017
On 16/03/17 11:51, Alejandro Lucero wrote:
> Current device hotplug is just when using UIO. This patch adds
> same functionality with VFIO.
>
> It has been validated through tests using IOMMU and also with VFIO
> and no-iommu mode.
>
> Signed-off-by: Alejandro Lucero <alejandro.lucero at netronome.com>
> ---
> lib/librte_eal/common/eal_common_pci.c | 2 +-
> lib/librte_eal/linuxapp/eal/eal_pci.c | 5 +-
> lib/librte_eal/linuxapp/eal/eal_pci_init.h | 1 +
> lib/librte_eal/linuxapp/eal/eal_pci_vfio.c | 82 ++++++++++-
> lib/librte_eal/linuxapp/eal/eal_vfio.c | 193 +++++++++++++++++++------
> lib/librte_eal/linuxapp/eal/eal_vfio.h | 11 +-
> lib/librte_eal/linuxapp/eal/eal_vfio_mp_sync.c | 23 ++-
> lib/librte_ether/rte_ethdev.c | 2 +-
> 8 files changed, 263 insertions(+), 56 deletions(-)
Thanks Alex for providing this patch to add the VFIO hotplug
functionality, and to incorporate my offline review comments.
I also tested this patch in combination with Open vSwitch 2.70's hotplug
feature and did not see any problems.
//Eelco
Reviewed-by: Eelco Chaudron <echaudro at redhat.com>
Tested-by: Eelco Chaudron <echaudro at redhat.com>
More information about the dev
mailing list