[PATCH 0/6] ifcvf/vDPA: support query device config space through netlink
From: Zhu Lingshan <hidden>
Date: 2022-06-02 02:48:23
This series allows userspace to query device config space through
netlink, to get multi-queue, feature bits, device features and
driver features.
This series also has fixed some issues of misusing
VDPA_ATTR_DEV_SUPPORTED_FEATURES, this should be used for virtio devices
than the management device.
Please help review.
Thanks!
Zhu Lingshan
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/ifcvf: support userspace to query device feature bits
vDPA: !FEATURES_OK should not block querying device config space
vDPA: answer num of queue pairs = 1 to userspace when VIRTIO_NET_F_MQ
== 0
vDPA: fix 'cast to restricted le16' warnings in
vdpa_dev_net_config_fill()
drivers/vdpa/ifcvf/ifcvf_base.c | 20 ++++++++++++++++++--
drivers/vdpa/ifcvf/ifcvf_base.h | 3 +++
drivers/vdpa/ifcvf/ifcvf_main.c | 3 +++
drivers/vdpa/vdpa.c | 32 +++++++++++++++-----------------
include/uapi/linux/vdpa.h | 1 +
5 files changed, 40 insertions(+), 19 deletions(-)
--
2.31.1