From: Zhenzhong Duan Date: Sun, 28 Sep 2025 08:54:28 +0000 (-0400) Subject: vfio/cpr-legacy: drop an erroneous assert X-Git-Tag: v10.2.0-rc1~50^2~10 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=94230948960e56cb47e835266c7cd8df46da03a4;p=thirdparty%2Fqemu.git vfio/cpr-legacy: drop an erroneous assert vfio_legacy_cpr_dma_map() is not only used in post_load on destination but also error recovery path on source side. Assert it for destination is wrong. Fixes: 7e9f21411302 ("vfio/container: restore DMA vaddr") Signed-off-by: Zhenzhong Duan Reviewed-by: Steve Sistare Link: https://lore.kernel.org/qemu-devel/20250928085432.40107-3-zhenzhong.duan@intel.com Signed-off-by: Cédric Le Goater --- diff --git a/hw/vfio/cpr-legacy.c b/hw/vfio/cpr-legacy.c index b4581e8f85..7184c93991 100644 --- a/hw/vfio/cpr-legacy.c +++ b/hw/vfio/cpr-legacy.c @@ -52,8 +52,6 @@ static int vfio_legacy_cpr_dma_map(const VFIOContainer *bcontainer, .size = size, }; - g_assert(cpr_is_incoming()); - if (ioctl(container->fd, VFIO_IOMMU_MAP_DMA, &map)) { return -errno; }