Add more vDPA callbacks. [s/g]et_vq_state is added in patch 1, including a new control mechanism to read data from the DPU. suspend is added in patch 2. Link to v1: https://lore.kernel.org/virtualization/20230402125219.1084754-1-alvaro.karsz@xxxxxxxxxxxxx/ Link to v2: https://lore.kernel.org/virtualization/20230409091024.3437405-1-alvaro.karsz@xxxxxxxxxxxxx/ Link to v3: https://lore.kernel.org/virtualization/20230410100237.3499578-1-alvaro.karsz@xxxxxxxxxxxxx/ Changelog: v2: - Remove wmb() from snet_ctrl_read_from_dpu - Patch 1. v3: - Usage of spinlocks to serialize access to control registers - Patch 1. v4: - Rename struct snet_vq -> struct vdpa_vq_state from inital_state to vq_state - Patch 1. Alvaro Karsz (2): vdpa/snet: support getting and setting VQ state vdpa/snet: support the suspend vDPA callback drivers/vdpa/solidrun/Makefile | 1 + drivers/vdpa/solidrun/snet_ctrl.c | 330 +++++++++++++++++++++++++++++ drivers/vdpa/solidrun/snet_hwmon.c | 2 +- drivers/vdpa/solidrun/snet_main.c | 127 ++++++----- drivers/vdpa/solidrun/snet_vdpa.h | 20 +- 5 files changed, 409 insertions(+), 71 deletions(-) create mode 100644 drivers/vdpa/solidrun/snet_ctrl.c -- 2.34.1 _______________________________________________ Virtualization mailing list Virtualization@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linuxfoundation.org/mailman/listinfo/virtualization