[dpdk-dev] [EXT] [PATCH v6 0/2] support for VFIO-PCI VF token interface
Vamsi Krishna Attunuru
vattunuru at marvell.com
Tue Apr 14 15:18:02 CEST 2020
> -----Original Message-----
> From: Haiyue Wang <haiyue.wang at intel.com>
> Sent: Tuesday, April 14, 2020 8:51 AM
> To: dev at dpdk.org; thomas at monjalon.net; Vamsi Krishna Attunuru
> <vattunuru at marvell.com>; Jerin Jacob Kollanukkaran <jerinj at marvell.com>;
> alex.williamson at redhat.com; david.marchand at redhat.com
> Cc: Haiyue Wang <haiyue.wang at intel.com>
> Subject: [EXT] [PATCH v6 0/2] support for VFIO-PCI VF token interface
>
> External Email
>
> ----------------------------------------------------------------------
> v6: Drop the Fixes tag in uuid, since the file has been
> moved to another place, not suitable to apply on stable.
> And this is not a bug, just some kind of enhancement.
>
> v5: 1. Add the VF token parse error handling.
> 2. Split into two patches for different logic module.
> 3. Add more comments into the code for explaining the design.
> 4. Drop the ABI change workaround, this patch set focuses on code review.
> https://urldefense.proofpoint.com/v2/url?u=https-
> 3A__patchwork.dpdk.org_cover_68364_&d=DwIDaQ&c=nKjWec2b6R0mOyP
> az7xtfQ&r=WllrYaumVkxaWjgKto6E_rtDQshhIhik2jkvzFyRhW8&m=SxW07R9
> V0iyd_fAAZm4bU3jimkCD0khdQeabCt9pESg&s=mAkB5KtaFDGFdmqfNZV4dy
> w1A8Xy61tm22TNM8kGSrQ&e=
>
> v4: 1. Ignore rte_vfio_setup_device ABI check since it is
> for Linux driver use.
> https://urldefense.proofpoint.com/v2/url?u=https-
> 3A__patchwork.dpdk.org_patch_68255_&d=DwIDaQ&c=nKjWec2b6R0mOyP
> az7xtfQ&r=WllrYaumVkxaWjgKto6E_rtDQshhIhik2jkvzFyRhW8&m=SxW07R9
> V0iyd_fAAZm4bU3jimkCD0khdQeabCt9pESg&s=Qv5ArXmk_WeQn1bTnM6JS
> XpNp3NEhuenHP1VsjUPzGE&e=
>
> v3: Fix the Travis build failed:
> (1). rte_uuid.h:97:55: error: unknown type name ‘size_t’
> (2). rte_uuid.h:58:2: error: implicit declaration of function ‘memcpy’
> https://urldefense.proofpoint.com/v2/url?u=https-
> 3A__patchwork.dpdk.org_patch_68254_&d=DwIDaQ&c=nKjWec2b6R0mOyP
> az7xtfQ&r=WllrYaumVkxaWjgKto6E_rtDQshhIhik2jkvzFyRhW8&m=SxW07R9
> V0iyd_fAAZm4bU3jimkCD0khdQeabCt9pESg&s=8U5HwQ-j-
> dkzQPk3E99wJauItTQLH0f48qay37pnTZ8&e=
>
> v2: Fix the FreeBSD build error.
> https://urldefense.proofpoint.com/v2/url?u=https-
> 3A__patchwork.dpdk.org_patch_68240_&d=DwIDaQ&c=nKjWec2b6R0mOyP
> az7xtfQ&r=WllrYaumVkxaWjgKto6E_rtDQshhIhik2jkvzFyRhW8&m=SxW07R9
> V0iyd_fAAZm4bU3jimkCD0khdQeabCt9pESg&s=7gq0iGeXay4YQ4ydHRdCZ9_
> oWDRQFtGOxGu3chq0z_s&e=
>
> v1: Update the commit message.
> https://urldefense.proofpoint.com/v2/url?u=https-
> 3A__patchwork.dpdk.org_patch_68237_&d=DwIDaQ&c=nKjWec2b6R0mOyP
> az7xtfQ&r=WllrYaumVkxaWjgKto6E_rtDQshhIhik2jkvzFyRhW8&m=SxW07R9
> V0iyd_fAAZm4bU3jimkCD0khdQeabCt9pESg&s=ibSeCUMMleRvQRH9WvJDYV
> TfBAt-Fi4lgfdTBOZ5xwc&e=
>
> RFC v2: https://urldefense.proofpoint.com/v2/url?u=https-
> 3A__patchwork.dpdk.org_patch_68114_&d=DwIDaQ&c=nKjWec2b6R0mOyP
> az7xtfQ&r=WllrYaumVkxaWjgKto6E_rtDQshhIhik2jkvzFyRhW8&m=SxW07R9
> V0iyd_fAAZm4bU3jimkCD0khdQeabCt9pESg&s=JmSNjqCLE3Xh0_VymptqrViX
> VlRgpFN_PZMvM6C2X2s&e=
> Based on Vamsi's RFC v1, and Alex's patch for Qemu
> [https://urldefense.proofpoint.com/v2/url?u=https-
> 3A__lore.kernel.org_lkml_20200204161737.34696b91-
> 40w520.home_&d=DwIDaQ&c=nKjWec2b6R0mOyPaz7xtfQ&r=WllrYaumVkx
> aWjgKto6E_rtDQshhIhik2jkvzFyRhW8&m=SxW07R9V0iyd_fAAZm4bU3jimkCD
> 0khdQeabCt9pESg&s=7tRxVtn0y5xpxqC38hgAB7Bjz7kHR8mbD-
> pIFgP1E7o&e= ]:
> Use the devarg to pass-down the VF token.
>
> RFC v1: https://urldefense.proofpoint.com/v2/url?u=https-
> 3A__patchwork.dpdk.org_patch_66281_&d=DwIDaQ&c=nKjWec2b6R0mOyP
> az7xtfQ&r=WllrYaumVkxaWjgKto6E_rtDQshhIhik2jkvzFyRhW8&m=SxW07R9
> V0iyd_fAAZm4bU3jimkCD0khdQeabCt9pESg&s=riYbXycUMPQxA30y75nRzs08
> f2wM-uAGcQEnK9ENR7w&e= by Vamsi.
>
> Haiyue Wang (2):
> eal: add uuid dependent header files explicitly
> eal: support for VFIO-PCI VF token
>
> drivers/bus/pci/linux/pci_vfio.c | 74 ++++++++++++++++++++++++++++++-
> lib/librte_eal/freebsd/eal.c | 3 +-
> lib/librte_eal/include/rte_uuid.h | 2 + lib/librte_eal/include/rte_vfio.h | 21
> ++++++++-
> lib/librte_eal/linux/eal_vfio.c | 20 +++++++--
> 5 files changed, 113 insertions(+), 7 deletions(-)
>
> --
> 2.26.0
Tested following combinations:
* Both PF & VFs are with DPDK (Single process & multi process)
* PF is with DPDK & VFs are with Kernel driver
* PF is with kernel driver & VFs are with DPDK
Tested-by: Vamsi Attunuru <vattunuru at marvell.com>
More information about the dev
mailing list