From 5f2bf4e170b4c9cf87232877def874ddaf71b4ac Mon Sep 17 00:00:00 2001 From: thomas Date: Sat, 6 Dec 2025 12:58:05 +0000 Subject: [PATCH] [Hygon] target/i386: csv: Remove all nodes within dma unmapping addr range If [start, end] covers many dma nodes range, we should remove all of them from the list. Currently only remove the first node met the condition, thus would casue the rest nodes not be removed, their dma mapping are left. Signed-off-by: yangwencheng --- target/i386/csv.c | 1 - 1 file changed, 1 deletion(-) diff --git a/target/i386/csv.c b/target/i386/csv.c index bdf93f6f23..2a6f71ff75 100644 --- a/target/i386/csv.c +++ b/target/i386/csv.c @@ -358,7 +358,6 @@ void csv3_shared_region_dma_unmap(uint64_t start, uint64_t end) QTAILQ_REMOVE(&s->dma_map_regions_list, pos, list); g_free(pos); } - break; } if ((start + size) <= curr_end) { break; -- Gitee