From nobody Tue Feb 10 01:35:44 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.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=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1552206581268846.5494617170345; Sun, 10 Mar 2019 00:29:41 -0800 (PST) Received: from localhost ([127.0.0.1]:41683 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h2tq0-0002Jy-40 for importer@patchew.org; Sun, 10 Mar 2019 04:29:40 -0400 Received: from eggs.gnu.org ([209.51.188.92]:42421) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h2tno-0000di-RX for qemu-devel@nongnu.org; Sun, 10 Mar 2019 04:27:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h2tnm-00015D-5h for qemu-devel@nongnu.org; Sun, 10 Mar 2019 04:27:23 -0400 Received: from ozlabs.org ([2401:3900:2:1::2]:47525) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h2tnj-00012I-Gn; Sun, 10 Mar 2019 04:27:21 -0400 Received: by ozlabs.org (Postfix, from userid 1007) id 44HDqj46Ytz9s5c; Sun, 10 Mar 2019 19:27:13 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gibson.dropbear.id.au; s=201602; t=1552206433; bh=si1aQ5pgP/FbMclpUMtl4VQPCJ9/g1i31hyN6EZAbwA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YFLrF7TEY2JN6g5ofXzvYyUmh/o7SHdDxy9uM42HR3W3MtnULTUG2vHah570dWXCo L3oaMibck4q6bEkQidOKAf6HNdxX6Sb6R61bTcPPP4MtHxIvUUXPyJ/HBWysOgNYKk oRn3xyFvhx24RoxrPCd+yzn2xL+WT/O4MWrnUwTE= From: David Gibson To: peter.maydell@linaro.org Date: Sun, 10 Mar 2019 19:26:05 +1100 Message-Id: <20190310082703.1245-3-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190310082703.1245-1-david@gibson.dropbear.id.au> References: <20190310082703.1245-1-david@gibson.dropbear.id.au> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2401:3900:2:1::2 Subject: [Qemu-devel] [PULL 02/60] vfio/spapr: Rename local systempagesize variable X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: lvivier@redhat.com, Alexey Kardashevskiy , groug@kaod.org, qemu-devel@nongnu.org, qemu-ppc@nongnu.org, David Gibson Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" From: Alexey Kardashevskiy The "systempagesize" name suggests that it is the host system page size while it is the smallest page size of memory backing the guest RAM so let's rename it to stop confusion. This should cause no behavioral change. Signed-off-by: Alexey Kardashevskiy Message-Id: <20190227085149.38596-4-aik@ozlabs.ru> Signed-off-by: David Gibson --- hw/vfio/spapr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/vfio/spapr.c b/hw/vfio/spapr.c index 88437a79e6..57fe758e54 100644 --- a/hw/vfio/spapr.c +++ b/hw/vfio/spapr.c @@ -148,14 +148,14 @@ int vfio_spapr_create_window(VFIOContainer *container, uint64_t pagesize =3D memory_region_iommu_get_min_page_size(iommu_mr); unsigned entries, bits_total, bits_per_level, max_levels; struct vfio_iommu_spapr_tce_create create =3D { .argsz =3D sizeof(crea= te) }; - long systempagesize =3D qemu_getrampagesize(); + long rampagesize =3D qemu_getrampagesize(); =20 /* * The host might not support the guest supported IOMMU page size, * so we will use smaller physical IOMMU pages to back them. */ - if (pagesize > systempagesize) { - pagesize =3D systempagesize; + if (pagesize > rampagesize) { + pagesize =3D rampagesize; } pagesize =3D 1ULL << (63 - clz64(container->pgsizes & (pagesize | (pagesize - 1)))); --=20 2.20.1