All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] Conditionally read fields in dev cfg space
@ 2022-09-09  8:57 Zhu Lingshan
  2022-09-09  8:57 ` [PATCH 1/4] vDPA: allow userspace to query features of a vDPA device Zhu Lingshan
                   ` (3 more replies)
  0 siblings, 4 replies; 28+ messages in thread
From: Zhu Lingshan @ 2022-09-09  8:57 UTC (permalink / raw)
  To: jasowang, mst; +Cc: virtualization, netdev, kvm, Zhu Lingshan

This series intends to read the fields in virtio-net device
configuration space conditionally on the feature bits,
this means:

MTU exists if VIRTIO_NET_F_MTU is set
MAC exists if VIRTIO_NET_F_NET is set
MQ exists if VIRTIO_NET_F_MQ or VIRTIO_NET_F_RSS is set.

This series report device features to userspace and invokes
vdpa_config_ops.get_config() than vdpa_get_config_unlocked()
to read the device config spcae, so no raeces in
vdpa_set_features_unlocked()

Thanks!

Zhu Lingshan (4):
  vDPA: allow userspace to query features of a vDPA device
  vDPA: only report driver features if  FEATURES_OK is set
  vDPA: check VIRTIO_NET_F_RSS for max_virtqueue_paris's presence
  vDPA: Conditionally read MTU and MAC in dev cfg space

 drivers/vdpa/vdpa.c       | 68 ++++++++++++++++++++++++++++++---------
 include/uapi/linux/vdpa.h |  4 +++
 2 files changed, 56 insertions(+), 16 deletions(-)

-- 
2.31.1


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

end of thread, other threads:[~2022-09-21  7:53 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-09  8:57 [PATCH 0/4] Conditionally read fields in dev cfg space Zhu Lingshan
2022-09-09  8:57 ` [PATCH 1/4] vDPA: allow userspace to query features of a vDPA device Zhu Lingshan
2022-09-20  2:02   ` Jason Wang
2022-09-20  2:02     ` Jason Wang
2022-09-20  9:58     ` Zhu, Lingshan
2022-09-21  2:17       ` Jason Wang
2022-09-21  2:17         ` Jason Wang
2022-09-21  5:59         ` Zhu, Lingshan
2022-09-21  7:44           ` Jason Wang
2022-09-21  7:44             ` Jason Wang
2022-09-21  7:51             ` Zhu, Lingshan
2022-09-09  8:57 ` [PATCH 2/4] vDPA: only report driver features if FEATURES_OK is set Zhu Lingshan
2022-09-20  2:16   ` Jason Wang
2022-09-20  2:16     ` Jason Wang
2022-09-20  5:46     ` Zhu, Lingshan
2022-09-21  2:14       ` Jason Wang
2022-09-21  2:14         ` Jason Wang
2022-09-21  5:38         ` Zhu, Lingshan
2022-09-21  7:43           ` Jason Wang
2022-09-21  7:43             ` Jason Wang
2022-09-21  7:53             ` Zhu, Lingshan
2022-09-09  8:57 ` [PATCH 3/4] vDPA: check VIRTIO_NET_F_RSS for max_virtqueue_paris's presence Zhu Lingshan
2022-09-20  2:17   ` Jason Wang
2022-09-20  2:17     ` Jason Wang
2022-09-20  9:54     ` Zhu, Lingshan
2022-09-09  8:57 ` [PATCH 4/4] vDPA: Conditionally read MTU and MAC in dev cfg space Zhu Lingshan
2022-09-20  2:17   ` Jason Wang
2022-09-20  2:17     ` Jason Wang

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.