Skip to content

ifcvf/vDPA implement features provisioning

Zhu Lingshan kvm stable virtualization 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest12 patches 3 repliesIn review
  2. v14 patches 10 repliesSuperseded

Changes in v2 from the cover letter

split original patch 1 ~ patch 3 to small patches that are less than 100 lines, so they can be applied to stalbe kernel(Jason)

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12vDPA/ifcvf: decouple hw features manipulators from the adapterdrivers/vdpa/ifcvf/ifcvf_base.c drivers/vdpa/ifcvf/ifcvf_base.h drivers/vdpa/ifcvf/ifcvf_main.c+4 -70 replies
2/12vDPA/ifcvf: decouple config space ops from the adapterdrivers/vdpa/ifcvf/ifcvf_base.c+5 -160 replies
3/12vDPA/ifcvf: alloc the mgmt_dev before the adapterdrivers/vdpa/ifcvf/ifcvf_main.c+14 -170 replies
4/12vDPA/ifcvf: decouple vq IRQ releasers from the adapterdrivers/vdpa/ifcvf/ifcvf_main.c+9 -120 replies
5/12vDPA/ifcvf: decouple config IRQ releaser from the adapterdrivers/vdpa/ifcvf/ifcvf_main.c+10 -120 replies
6/12vDPA/ifcvf: decouple vq irq requester from the adapterdrivers/vdpa/ifcvf/ifcvf_main.c+8 -110 replies
7/12vDPA/ifcvf: decouple config/dev IRQ requester and vectors allocator from the adapterdrivers/vdpa/ifcvf/ifcvf_main.c+9 -120 replies
8/12vDPA/ifcvf: ifcvf_request_irq works on ifcvf_hwdrivers/vdpa/ifcvf/ifcvf_main.c+2 -30 replies
9/12vDPA/ifcvf: manage ifcvf_hw in the mgmt_devdrivers/vdpa/ifcvf/ifcvf_base.h drivers/vdpa/ifcvf/ifcvf_main.c+7 -50 replies
10/12vDPA/ifcvf: allocate the adapter in dev_add()drivers/vdpa/ifcvf/ifcvf_main.c+13 -210 replies
11/12vDPA/ifcvf: retire ifcvf_private_to_vfdrivers/vdpa/ifcvf/ifcvf_base.h drivers/vdpa/ifcvf/ifcvf_main.c+5 -80 replies
12/12vDPA/ifcvf: implement features provisioningdrivers/vdpa/ifcvf/ifcvf_base.c drivers/vdpa/ifcvf/ifcvf_base.h drivers/vdpa/ifcvf/ifcvf_main.c+17 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH V2 00/12] ifcvf/vDPA implement features provisioning

This series implements features provisioning for ifcvf. By applying this series, we allow userspace to create a vDPA device with selected (management device supported) feature bits and mask out others.

Examples:
a)The management device supported features:

$ vdpa mgmtdev show pci/0000:01:00.5
pci/0000:01:00.5:
  supported_classes net
  max_supported_vqs 9
  dev_features MTU MAC MRG_RXBUF CTRL_VQ MQ ANY_LAYOUT VERSION_1 ACCESS_PLATFORM

b)Provision a vDPA device with all supported features:

$ vdpa dev add name vdpa0 mgmtdev pci/0000:01:00.5
$ vdpa/vdpa dev config show vdpa0
vdpa0: mac 00:e8:ca:11:be:05 link up link_announce false max_vq_pairs 4 mtu 1500
  negotiated_features MRG_RXBUF CTRL_VQ MQ VERSION_1 ACCESS_PLATFORM

c)Provision a vDPA device with a subset of the supported features:

$ vdpa dev add name vdpa0 mgmtdev pci/0000:01:00.5 device_features 0x300020020
$ vdpa dev config show vdpa0
mac 00:e8:ca:11:be:05 link up link_announce false
  negotiated_features CTRL_VQ VERSION_1 ACCESS_PLATFORM

Please help review

Thanks

Changes from V1:
split original patch 1 ~ patch 3 to small patches that are less than 100 lines, so they can be applied to stalbe kernel(Jason)

Zhu Lingshan (12):
vDPA/ifcvf: decouple hw features manipulators from the adapter vDPA/ifcvf: decouple config space ops from the adapter vDPA/ifcvf: alloc the mgmt_dev before the adapter vDPA/ifcvf: decouple vq IRQ releasers from the adapter vDPA/ifcvf: decouple config IRQ releaser from the adapter vDPA/ifcvf: decouple vq irq requester from the adapter vDPA/ifcvf: decouple config/dev IRQ requester and vectors allocator
from the adapter
vDPA/ifcvf: ifcvf_request_irq works on ifcvf_hw vDPA/ifcvf: manage ifcvf_hw in the mgmt_dev
vDPA/ifcvf: allocate the adapter in dev_add() vDPA/ifcvf: retire ifcvf_private_to_vf
vDPA/ifcvf: implement features provisioning

 drivers/vdpa/ifcvf/ifcvf_base.c |  32 ++-----
 drivers/vdpa/ifcvf/ifcvf_base.h |  10 +-
 drivers/vdpa/ifcvf/ifcvf_main.c | 162 +++++++++++++++-----------------
 3 files changed, 91 insertions(+), 113 deletions(-)
Signature · 1 line
2.31.1