From: Xiong Weimin <[email protected]> This series fixes two independent issues in the vDPA simulator:
1. Clear pending_kick on device reset so a deferred kick from a suspended device cannot be replayed after reset/re-init. 2. Hold iommu_lock across the full dma_unmap() path, including the passthrough-to-custom mapping transition, matching dma_map(). Both patches tested on an openEuler VM running kernel 6.16.8: built vdpa_sim.ko from /usr/src/linux-6.16.8 and reloaded vdpa_sim / vdpa_sim_net successfully. Xiong Weimin (2): vdpa_sim: clear pending_kick on device reset vdpa_sim: hold iommu_lock across dma_unmap passthrough transition --- drivers/vdpa/vdpa_sim/vdpa_sim.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 2.43.0

