All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH V5 0/6] ifcvf/vDPA: support query device config space through netlink
@ 2022-08-12 10:44 Zhu Lingshan
  2022-08-12 10:44 ` [PATCH V5 1/6] vDPA/ifcvf: get_config_size should return a value no greater than dev implementation Zhu Lingshan
                   ` (6 more replies)
  0 siblings, 7 replies; 30+ messages in thread
From: Zhu Lingshan @ 2022-08-12 10:44 UTC (permalink / raw)
  To: jasowang, mst
  Cc: virtualization, netdev, kvm, parav, xieyongji, gautam.dawar,
	Zhu Lingshan

This series allows userspace to query device config space of vDPA
devices and the management devices through netlink,
to get multi-queue, feature bits and etc.

This series has introduced a new netlink attr
VDPA_ATTR_VDPA_DEV_SUPPORTED_FEATURES, this should be used to query
features of vDPA  devices than the management device.

Please help review.

Thanks!
Zhu Lingshan

Changes rom V4:
(1) Read MAC, MTU, MQ conditionally (Michael)
(2) If VIRTIO_NET_F_MAC not set, don't report MAC to userspace
(3) If VIRTIO_NET_F_MTU not set, report 1500 to userspace
(4) Add comments to the new attr
VDPA_ATTR_VDPA_DEV_SUPPORTED_FEATURES(Michael)
(5) Add comments for reporting the device status as LE(Michael)

Changes from V3:
(1)drop the fixes tags(Parva)
(2)better commit log for patch 1/6(Michael)
(3)assign num_queues to max_supported_vqs than max_vq_pairs(Jason)
(4)initialize virtio pci capabilities in the probe() function.

Changes from V2:
Add fixes tags(Parva)

Changes from V1:
(1) Use __virito16_to_cpu(true, xxx) for the le16 casting(Jason)
(2) Add a comment in ifcvf_get_config_size(), to explain
why we should return the minimum value of
sizeof(struct virtio_net_config) and the onboard
cap size(Jason)
(3) Introduced a new attr VDPA_ATTR_VDPA_DEV_SUPPORTED_FEATURES
(4) Show the changes of iproute2 output before and after 5/6 patch(Jason)
(5) Fix cast warning in vdpa_fill_stats_rec() 

Zhu Lingshan (6):
  vDPA/ifcvf: get_config_size should return a value no greater than dev
    implementation
  vDPA/ifcvf: support userspace to query features and MQ of a management
    device
  vDPA: allow userspace to query features of a vDPA device
  vDPA: !FEATURES_OK should not block querying device config space
  vDPA: Conditionally read fields in virtio-net dev config space
  fix 'cast to restricted le16' warnings in vdpa.c

 drivers/vdpa/ifcvf/ifcvf_base.c |  13 ++-
 drivers/vdpa/ifcvf/ifcvf_base.h |   2 +
 drivers/vdpa/ifcvf/ifcvf_main.c | 142 +++++++++++++++++---------------
 drivers/vdpa/vdpa.c             |  82 ++++++++++++------
 include/uapi/linux/vdpa.h       |   3 +
 5 files changed, 149 insertions(+), 93 deletions(-)

-- 
2.31.1


^ permalink raw reply	[flat|nested] 30+ messages in thread

end of thread, other threads:[~2022-08-19  0:05 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-12 10:44 [PATCH V5 0/6] ifcvf/vDPA: support query device config space through netlink Zhu Lingshan
2022-08-12 10:44 ` [PATCH V5 1/6] vDPA/ifcvf: get_config_size should return a value no greater than dev implementation Zhu Lingshan
2022-08-12 10:44 ` [PATCH V5 2/6] vDPA/ifcvf: support userspace to query features and MQ of a management device Zhu Lingshan
2022-08-12 10:44 ` [PATCH V5 3/6] vDPA: allow userspace to query features of a vDPA device Zhu Lingshan
2022-08-12 10:44 ` [PATCH V5 4/6] vDPA: !FEATURES_OK should not block querying device config space Zhu Lingshan
2022-08-16  7:41   ` Si-Wei Liu
2022-08-16  7:41     ` Si-Wei Liu
2022-08-16  8:23     ` Michael S. Tsirkin
2022-08-16  8:23       ` Michael S. Tsirkin
     [not found]     ` <f2864c96-cddd-129e-7dd8-a3743fe7e0d0@intel.com>
2022-08-16  8:41       ` Michael S. Tsirkin
2022-08-16  8:41         ` Michael S. Tsirkin
2022-08-16  8:46         ` Zhu, Lingshan
2022-08-16 22:48       ` Si-Wei Liu
     [not found]         ` <a488a17a-b716-52aa-cc31-2e51f8f972d2@intel.com>
2022-08-17  6:14           ` Michael S. Tsirkin
2022-08-17  6:14             ` Michael S. Tsirkin
2022-08-17  6:23             ` Zhu, Lingshan
2022-08-17 18:48               ` Si-Wei Liu
     [not found]                 ` <b2430d3b-4ca2-a19c-da39-da91da732c02@intel.com>
2022-08-19  0:04                   ` Si-Wei Liu
2022-08-16 21:13     ` Michael S. Tsirkin
2022-08-16 21:13       ` Michael S. Tsirkin
2022-08-16 22:09       ` Si-Wei Liu
2022-08-16 22:09         ` Si-Wei Liu
2022-08-12 10:44 ` [PATCH V5 5/6] vDPA: Conditionally read fields in virtio-net dev " Zhu Lingshan
2022-08-12 10:45 ` [PATCH V5 6/6] fix 'cast to restricted le16' warnings in vdpa.c Zhu Lingshan
2022-08-12 11:14 ` [PATCH V5 0/6] ifcvf/vDPA: support query device config space through netlink Michael S. Tsirkin
2022-08-12 11:14   ` Michael S. Tsirkin
2022-08-12 11:17   ` Michael S. Tsirkin
2022-08-12 11:17     ` Michael S. Tsirkin
2022-08-12 11:41     ` Zhu, Lingshan
2022-08-15  9:36       ` Zhu, Lingshan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.