From nobody Sat May 30 18:35:06 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass header.i=@intel.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1779173385; cv=none; d=zohomail.com; s=zohoarc; b=Y/dGG0cnORr5QpayMPXg6R8lCvuI+wxwMTz7NYi8rD8+vdrReUMeEaxW/Qay/XQcq+x0LxShfbUzk5B3wsPgMs5Kf8m/+dYte1Vr6vxtvwJWqNOxr6SBFukmek7k0tGasz7yfcfZ/7Wha0y2o0zvVgaLa3qH6ke831MV4CFPSpA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1779173385; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=lZ68uR+FxwgkVrhYMVvYVwpHXI6e46QH0ILyj05tu8Y=; b=SG0Nn1qDDMb7y4eiWa53egOXNSTC/ovxy7z+vV/AHeA1J+T6TSi+KD82iBLxdsMeaEFoyj3MpGxXTmPYUOEzlGxQqLROXfGQ9id37xTSo5RmxyxshaQYhO81jEc4VxDcyFAZ3qRJEmjXea2ZhrK6pW3m066zbAKuxMfyncniLvw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=@intel.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1779173385607604.8540409279057; Mon, 18 May 2026 23:49:45 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1wPEGj-0004gN-5a; Tue, 19 May 2026 02:49:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1wPEGX-0004e0-Qg for qemu-devel@nongnu.org; Tue, 19 May 2026 02:49:27 -0400 Received: from mgamail.intel.com ([198.175.65.21]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1wPEGS-0007LF-5H for qemu-devel@nongnu.org; Tue, 19 May 2026 02:49:19 -0400 Received: from fmviesa009.fm.intel.com ([10.60.135.149]) by orvoesa113.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 May 2026 23:49:10 -0700 Received: from lxy-clx-4s.sh.intel.com ([10.239.48.22]) by fmviesa009.fm.intel.com with ESMTP; 18 May 2026 23:49:08 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1779173356; x=1810709356; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=hdnlfIlhAbY08Cuup1HuZBd0OKB0di35DH4Xdr/D3yg=; b=nwrqE0Cza1AIwH7lCgDeVlbvu6znitVThexKlyZuKnKFyx+3ajJJO3cp NXR95e6AHByg+fR++/AbMQeuzrn3busjExtTaP2+Xf04q1sNIZfnbypea nSs3x13LBxhZQeavnIL6bHstHlUVDnUwk51jGk0FzBuPbR7tjfmJGtzJ0 0Pk4Z6M+fRlh9MPryDfgiRbWnCTZBGCkBy3Q1Fa3EzNeDtCu1In2hZ2Fs fF7oSDS/71DQCiBfXrn3/L6Uk234Niyd6MjnOoLtk0OrElLIXIdrhuivN QhCBkbirsTOEF3i3owgu3xHvykZM01gTbLOy/wF2DyV+wcwQ78DktVLLz g==; X-CSE-ConnectionGUID: bVwTQKuvRvOw/12WFKTrHQ== X-CSE-MsgGUID: li7QKLU6SgqguejKDC12Pg== X-IronPort-AV: E=McAfee;i="6800,10657,11790"; a="79942075" X-IronPort-AV: E=Sophos;i="6.23,243,1770624000"; d="scan'208";a="79942075" X-CSE-ConnectionGUID: p8ugzGpxSCmNgL84LuqDNQ== X-CSE-MsgGUID: EVDuSiBMQfu8/nwySVPGgA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.23,243,1770624000"; d="scan'208";a="233288695" From: Xiaoyao Li To: Alex Williamson , =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= Cc: xiaoyao.li@intel.com, qemu-devel@nongnu.org Subject: [PATCH] vfio: Clean up vfio_region_unmap() Date: Tue, 19 May 2026 14:35:40 +0800 Message-ID: <20260519063540.1117808-1-xiaoyao.li@intel.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=198.175.65.21; envelope-from=xiaoyao.li@intel.com; helo=mgamail.intel.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.445, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HK_RANDOM_ENVFROM=0.999, HK_RANDOM_FROM=0.999, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_NONE=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 development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @intel.com) X-ZM-MESSAGEID: 1779173388893154100 Content-Type: text/plain; charset="utf-8" Since commit 7429aebe1cff ("vfio/migration: Remove VFIO migration protocol v1"), vfio_region_unmap() lost all its callers. Remove unused vfio_region_unmap(). Signed-off-by: Xiaoyao Li Reviewed-by: C=C3=A9dric Le Goater --- hw/vfio/region.c | 15 --------------- hw/vfio/vfio-region.h | 1 - 2 files changed, 16 deletions(-) diff --git a/hw/vfio/region.c b/hw/vfio/region.c index 0342ca712acd..dbde33918026 100644 --- a/hw/vfio/region.c +++ b/hw/vfio/region.c @@ -468,21 +468,6 @@ no_mmap: return ret; } =20 -void vfio_region_unmap(VFIORegion *region) -{ - int i; - - if (!region->mem) { - return; - } - - for (i =3D 0; i < region->nr_mmaps; i++) { - if (region->mmaps[i].mmap) { - vfio_subregion_unmap(region, i); - } - } -} - void vfio_region_exit(VFIORegion *region) { int i; diff --git a/hw/vfio/vfio-region.h b/hw/vfio/vfio-region.h index 9b21d4ee5ba1..58b236f1133e 100644 --- a/hw/vfio/vfio-region.h +++ b/hw/vfio/vfio-region.h @@ -41,7 +41,6 @@ int vfio_region_setup(Object *obj, VFIODevice *vbasedev, = VFIORegion *region, int index, const char *name, Error **errp); int vfio_region_mmap(VFIORegion *region); void vfio_region_mmaps_set_enabled(VFIORegion *region, bool enabled); -void vfio_region_unmap(VFIORegion *region); void vfio_region_exit(VFIORegion *region); void vfio_region_finalize(VFIORegion *region); =20 --=20 2.43.0