Skip to content

Sync vDPA with upstream for RHEL9

Cindy Lu requested to merge lulu6/centos-stream-9:test4 into main

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2055451

build :https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=43228218

Upstream Status: git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git

Test status: Tested by me

Signed-off-by: Cindy Lu lulu@redhat.com

Changes:

a4485d6b (Cindy Lu) vdpa/mlx5: Fix tracking of current number of VQs

8134f2f2 (Cindy Lu) vdpa/mlx5: Fix is_index_valid() to refer to features

4d261a02 (Cindy Lu) vdpa: Protect vdpa reset with cf_mutex

ce18a716 (Cindy Lu) vdpa: Avoid taking cf_mutex lock on get status

859ae003 (Cindy Lu) vdpa/vdpa_sim_net: Report max device capabilities

99e0011e (Cindy Lu) vdpa: Use BIT_ULL for bit operations

36ae6914 (Cindy Lu) vdpa/vdpa_sim: Configure max supported virtqueues

5b858136 (Cindy Lu) vdpa/mlx5: Report max device capabilities

bf1d750a (Cindy Lu) vdpa: Support reporting max device capabilities

5581b870 (Cindy Lu) vdpa/mlx5: Restore cur_num_vqs in case of failure in change_num_qps()

321ba8f1 (Cindy Lu) vdpa: Add support for returning device configuration information

ae127b34 (Cindy Lu) vdpa/mlx5: Support configuring max data virtqueue

a1769eca (Cindy Lu) vdpa/mlx5: Fix config_attr_mask assignment

cfe15098 (Cindy Lu) vdpa: Allow to configure max data virtqueues

eb92682f (Cindy Lu) vdpa: Read device configuration only if FEATURES_OK

6f33dadf (Cindy Lu) vdpa: Sync calls set/get config/status with cf_mutex

10a5f9c2 (Cindy Lu) vdpa/mlx5: Distribute RX virtqueues in RQT object

96917cc5 (Cindy Lu) vdpa: Provide interface to read driver features

1381f2ec (Cindy Lu) vdpa: clean up get_config_size ret value handling

6302dee2 (Cindy Lu) vdpa/mlx5: Fix wrong configuration of virtio_version_1_0

00403893 (Cindy Lu) vdpa: Mark vdpa_config_ops.get_vq_notification as optional

a5e1fdde (Cindy Lu) vdpa: Avoid duplicate call to vp_vdpa get_status

7cce39ec (Cindy Lu) net/mlx5_vdpa: Offer VIRTIO_NET_F_MTU when setting MTU

b55d7642 (Cindy Lu) vdpa: add driver_override support

02d1c8e9 (Cindy Lu) docs: document sysfs ABI for vDPA bus

6c7cb45e (Cindy Lu) ifcvf/vDPA: fix misuse virtio-net device config size for blk dev

0323cfa5 (Cindy Lu) vdpa: Consider device id larger than 31

99e4b044 (Cindy Lu) virtio: always enter drivers/virtio/

e5e79a92 (Cindy Lu) vdpa: check that offsets are within bounds

2b7adf5b (Cindy Lu) vdpa_sim: avoid putting an uninitialized iova_domain

e1aa68f7 (Cindy Lu) vhost-vdpa: clean irqs before reseting vdpa device

ad2226c5 (Cindy Lu) vdpa/mlx5: Forward only packets with allowed MAC address

ea2e02be (Cindy Lu) vdpa/mlx5: Support configuration of MAC

d6905dc6 (Cindy Lu) vdpa/mlx5: Fix clearing of VIRTIO_NET_F_MAC feature bit

bba2e591 (Cindy Lu) vdpa_sim_net: Enable user to set mac address and mtu

f8942b81 (Cindy Lu) vdpa: Enable user to set mac and mtu of vdpa device

eeece887 (Cindy Lu) vdpa: Use kernel coding style for structure comments

277d009a (Cindy Lu) vdpa: Introduce query of device config layout

a3e6f5db (Cindy Lu) vdpa: Introduce and use vdpa device get, set config helpers

4ad68da0 (Cindy Lu) vdpa/mlx5: Propagate link status from device to vdpa driver

621059c0 (Cindy Lu) vdpa/mlx5: Rename control VQ workqueue to vdpa wq

892987f7 (Cindy Lu) vdpa/mlx5: Remove mtu field from vdpa net device

f581d224 (Cindy Lu) vdpa: add new attribute VDPA_ATTR_DEV_MIN_VQ_SIZE

f7f16130 (Cindy Lu) virtio_vdpa: setup correct vq size with callbacks get_vq_num_{max,min}

762cbeb2 (Cindy Lu) vdpa: min vq num of vdpa device cannot be greater than max vq num

f92b3222 (Cindy Lu) vdpa: add new callback get_vq_num_min in vdpa_config_ops

005db76f (Cindy Lu) vp_vdpa: add vq irq offloading support

0d639ec4 (Cindy Lu) vdpa: fix typo

2b5f427d (Cindy Lu) vhost-vdpa: Fix the wrong input in config_cb

d1189554 (Cindy Lu) vhost_vdpa: unset vq irq before freeing irq

6458d1e8 (Cindy Lu) vdpa: potential uninitialized return in vhost_vdpa_va_map()

6bddfa13 (Cindy Lu) vdpa/mlx5: Avoid executing set_vq_ready() if device is reset

657834a8 (Cindy Lu) vdpa/mlx5: Clear ready indication for control VQ

830b9f71 (Cindy Lu) vdpa: Support transferring virtual addressing during DMA mapping

0a77ad32 (Cindy Lu) vdpa: factor out vhost_vdpa_pa_map() and vhost_vdpa_pa_unmap()

72e85616 (Cindy Lu) vdpa: Add an opaque pointer for vdpa_config_ops.dma_map()

48b3faaf (Cindy Lu) vhost-iotlb: Add an opaque pointer for vhost IOTLB

41d9931a (Cindy Lu) vhost-vdpa: Handle the failure of vdpa_reset()

12ee0ef9 (Cindy Lu) vdpa: Add reset callback in vdpa_config_ops

93192807 (Cindy Lu) vdpa: Fix some coding style issues

bb36c47b (Cindy Lu) vdpa: Make use of PFN_PHYS/PFN_UP/PFN_DOWN helper macro

570ec42d (Cindy Lu) vdpa/mlx5: Add multiqueue support

2163ebbc (Cindy Lu) vdpa/mlx5: Add support for control VQ and MAC setting

ef5c9738 (Cindy Lu) vdpa/mlx5: Ensure valid indices are provided

0e86b487 (Cindy Lu) vdpa/mlx5: Decouple virtqueue callback from struct mlx5_vdpa_virtqueue

4b344cc8 (Cindy Lu) vdpa/mlx5: function prototype modifications in preparation to control VQ

74440e5c (Cindy Lu) vdpa/mlx5: Remove redundant header file inclusion

3ebbd00a (Cindy Lu) vDPA/ifcvf: enable multiqueue and control vq

7b28ad68 (Cindy Lu) vDPA/ifcvf: detect and use the onboard number of queues directly

316d66b1 (Cindy Lu) vDPA/ifcvf: implement management netlink framework for ifcvf

1fd4fe81 (Cindy Lu) vDPA/ifcvf: introduce get_dev_type() which returns virtio dev id

Documentation/ABI/testing/sysfs-bus-vdpa | 57 +++ MAINTAINERS | 1 + drivers/Makefile | 3 +- drivers/vdpa/Kconfig | 1 + drivers/vdpa/ifcvf/ifcvf_base.c | 49 +- drivers/vdpa/ifcvf/ifcvf_base.h | 34 +- drivers/vdpa/ifcvf/ifcvf_main.c | 290 +++++++---- drivers/vdpa/mlx5/core/mlx5_vdpa.h | 26 +- drivers/vdpa/mlx5/core/mr.c | 81 ++- drivers/vdpa/mlx5/core/resources.c | 35 ++ drivers/vdpa/mlx5/net/mlx5_vnet.c | 842 ++++++++++++++++++++++++++----- drivers/vdpa/vdpa.c | 400 ++++++++++++++- drivers/vdpa/vdpa_sim/vdpa_sim.c | 54 +- drivers/vdpa/vdpa_sim/vdpa_sim_blk.c | 3 +- drivers/vdpa/vdpa_sim/vdpa_sim_net.c | 40 +- drivers/vdpa/virtio_pci/vp_vdpa.c | 45 +- drivers/vhost/iotlb.c | 20 +- drivers/vhost/vdpa.c | 213 +++++--- drivers/virtio/virtio_vdpa.c | 26 +- include/linux/vdpa.h | 138 +++-- include/linux/vhost_iotlb.h | 3 + include/uapi/linux/vdpa.h | 13 + 22 files changed, 1935 insertions(+), 439 deletions(-)

Merge request reports