{"id":2175428,"url":"http://patchwork.ozlabs.org/api/1.0/patches/2175428/?format=json","project":{"id":14,"url":"http://patchwork.ozlabs.org/api/1.0/projects/14/?format=json","name":"QEMU Development","link_name":"qemu-devel","list_id":"qemu-devel.nongnu.org","list_email":"qemu-devel@nongnu.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20251218062643.624796-4-zhenzhong.duan@intel.com>","date":"2025-12-18T06:26:24","name":"[v6,3/9] vfio/container-legacy: rename vfio_dma_unmap_bitmap() to vfio_legacy_dma_unmap_get_dirty_bitmap()","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"4f9aaf5ffc4014636587fd4ed50987329a8194e4","submitter":{"id":81636,"url":"http://patchwork.ozlabs.org/api/1.0/people/81636/?format=json","name":"Duan, Zhenzhong","email":"zhenzhong.duan@intel.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/qemu-devel/patch/20251218062643.624796-4-zhenzhong.duan@intel.com/mbox/","series":[{"id":485789,"url":"http://patchwork.ozlabs.org/api/1.0/series/485789/?format=json","date":"2025-12-18T06:26:21","name":"vfio: relax the vIOMMU check","version":6,"mbox":"http://patchwork.ozlabs.org/series/485789/mbox/"}],"check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2175428/checks/","tags":{},"headers":{"Return-Path":"<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256\n header.s=Intel header.b=a164f+6i;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org\n (client-ip=209.51.188.17; helo=lists.gnu.org;\n envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=patchwork.ozlabs.org)"],"Received":["from lists.gnu.org (lists.gnu.org [209.51.188.17])\n\t(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4dX11r4Vfsz1y3l\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 18 Dec 2025 17:28:00 +1100 (AEDT)","from localhost ([::1] helo=lists1p.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-devel-bounces@nongnu.org>)\n\tid 1vW7U6-0003M9-DN; Thu, 18 Dec 2025 01:27:34 -0500","from eggs.gnu.org ([2001:470:142:3::10])\n by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <zhenzhong.duan@intel.com>)\n id 1vW7U3-0003Li-L5\n for qemu-devel@nongnu.org; Thu, 18 Dec 2025 01:27:31 -0500","from mgamail.intel.com ([198.175.65.18])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <zhenzhong.duan@intel.com>)\n id 1vW7U1-000176-RU\n for qemu-devel@nongnu.org; Thu, 18 Dec 2025 01:27:31 -0500","from orviesa005.jf.intel.com ([10.64.159.145])\n by orvoesa110.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 17 Dec 2025 22:27:27 -0800","from unknown (HELO gnr-sp-2s-612.sh.intel.com) ([10.112.230.229])\n by orviesa005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 17 Dec 2025 22:27:24 -0800"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1766039250; x=1797575250;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=LfyNeuhUqgjGJ24g/CHR2kKYmIwQdqe2lRcUCbGnYFY=;\n b=a164f+6iHiEWXZxc8t+h5teB96YTeLXQYYLkhg+0mtiQRffvTFZNVVPs\n JNGRMA0kN91eQOgrYFZp2iyTAEHaki4bx8tCORbM9U5LiezEE5n9rQYPT\n VoZq1/Fb/8k3RS3aUHadsSmHEHIqlYjYtxCs22yhQlgD91SpK8LkkH7FX\n y1rnw+HZn0dmaoKpdcSdc/jAR/Qs7OkYtKO20b8+3gMT6GiV5+NoY5FoU\n RNiHEd7+7cvRAfsd5/oVZH3ZVm7RBujgYQmOZlyxRBHfUJKRVp1MCfn4g\n EmHIPuC85Z6F3gUXcSCxFPe6j8j5AzliP9K+dZNeo8gbGe5C44bcjjW5K A==;","X-CSE-ConnectionGUID":["SlWRCxEjS+6QH3IZb0KmgQ==","7fxD/4gpRs26NYBg4nu2Aw=="],"X-CSE-MsgGUID":["CDh0CAKkSi+quGftjllx0g==","vnUEN+cCRSmCZZUxpxLSTg=="],"X-IronPort-AV":["E=McAfee;i=\"6800,10657,11645\"; a=\"68028517\"","E=Sophos;i=\"6.21,156,1763452800\"; d=\"scan'208\";a=\"68028517\"","E=Sophos;i=\"6.21,156,1763452800\"; d=\"scan'208\";a=\"203569860\""],"X-ExtLoop1":"1","From":"Zhenzhong Duan <zhenzhong.duan@intel.com>","To":"qemu-devel@nongnu.org","Cc":"alex@shazbot.org, clg@redhat.com, mst@redhat.com, jasowang@redhat.com,\n yi.l.liu@intel.com, clement.mathieu--drif@eviden.com,\n eric.auger@redhat.com, joao.m.martins@oracle.com, avihaih@nvidia.com,\n xudong.hao@intel.com, giovanni.cabiddu@intel.com, rohith.s.r@intel.com,\n mark.gross@intel.com, arjan.van.de.ven@intel.com,\n Zhenzhong Duan <zhenzhong.duan@intel.com>","Subject":"[PATCH v6 3/9] vfio/container-legacy: rename vfio_dma_unmap_bitmap()\n to vfio_legacy_dma_unmap_get_dirty_bitmap()","Date":"Thu, 18 Dec 2025 01:26:24 -0500","Message-ID":"<20251218062643.624796-4-zhenzhong.duan@intel.com>","X-Mailer":"git-send-email 2.47.1","In-Reply-To":"<20251218062643.624796-1-zhenzhong.duan@intel.com>","References":"<20251218062643.624796-1-zhenzhong.duan@intel.com>","MIME-Version":"1.0","Content-Type":"text/plain; charset=UTF-8","Content-Transfer-Encoding":"8bit","Received-SPF":"pass client-ip=198.175.65.18;\n envelope-from=zhenzhong.duan@intel.com; helo=mgamail.intel.com","X-Spam_score_int":"-43","X-Spam_score":"-4.4","X-Spam_bar":"----","X-Spam_report":"(-4.4 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001,\n DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,\n RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001,\n RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001,\n SPF_PASS=-0.001 autolearn=ham autolearn_force=no","X-Spam_action":"no action","X-BeenThere":"qemu-devel@nongnu.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"<qemu-devel.nongnu.org>","List-Unsubscribe":"<https://lists.nongnu.org/mailman/options/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>","List-Archive":"<https://lists.nongnu.org/archive/html/qemu-devel>","List-Post":"<mailto:qemu-devel@nongnu.org>","List-Help":"<mailto:qemu-devel-request@nongnu.org?subject=help>","List-Subscribe":"<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=subscribe>","Errors-To":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org","Sender":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org"},"content":"This is to follow naming style in container-legacy.c to have low level functions\nwith vfio_legacy_ prefix.\n\nNo functional changes.\n\nSuggested-by: Cédric Le Goater <clg@redhat.com>\nSigned-off-by: Zhenzhong Duan <zhenzhong.duan@intel.com>\nReviewed-by: Cédric Le Goater <clg@redhat.com>\nReviewed-by: Yi Liu <yi.l.liu@intel.com>\n---\n hw/vfio/container-legacy.c | 10 ++++++----\n 1 file changed, 6 insertions(+), 4 deletions(-)","diff":"diff --git a/hw/vfio/container-legacy.c b/hw/vfio/container-legacy.c\nindex 32c260b345..48bcbc0264 100644\n--- a/hw/vfio/container-legacy.c\n+++ b/hw/vfio/container-legacy.c\n@@ -68,9 +68,10 @@ static int vfio_ram_block_discard_disable(VFIOLegacyContainer *container,\n     }\n }\n \n-static int vfio_dma_unmap_bitmap(const VFIOLegacyContainer *container,\n-                                 hwaddr iova, uint64_t size,\n-                                 IOMMUTLBEntry *iotlb)\n+static int\n+vfio_legacy_dma_unmap_get_dirty_bitmap(const VFIOLegacyContainer *container,\n+                                       hwaddr iova, uint64_t size,\n+                                       IOMMUTLBEntry *iotlb)\n {\n     const VFIOContainer *bcontainer = VFIO_IOMMU(container);\n     struct vfio_iommu_type1_dma_unmap *unmap;\n@@ -141,7 +142,8 @@ static int vfio_legacy_dma_unmap_one(const VFIOLegacyContainer *container,\n     if (iotlb && vfio_container_dirty_tracking_is_started(bcontainer)) {\n         if (!vfio_container_devices_dirty_tracking_is_supported(bcontainer) &&\n             bcontainer->dirty_pages_supported) {\n-            return vfio_dma_unmap_bitmap(container, iova, size, iotlb);\n+            return vfio_legacy_dma_unmap_get_dirty_bitmap(container, iova, size,\n+                                                          iotlb);\n         }\n \n         need_dirty_sync = true;\n","prefixes":["v6","3/9"]}