From nobody Tue Nov 26 22:33:43 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1704160732; cv=none; d=zohomail.com; s=zohoarc; b=BB20GOIMQJDUvk7gVqUazAVzsnKaLt3JMQnsjJMVgRbMHrj7FDYjMX/aemeh6C1VCM3/X8lCWX+xGGdXO1enM2BFlTcwEIcpTjqOatVFIdhlSUmaFu/lRw8py07kkXrmO9al0GHJUug4wGOcYQK3nf2hd2xxsN0Zkz4C19qRgTs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1704160732; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=7qyMzlpzWlHoGSx0bplKdPfg7TJkUYYgysQjBpEEncg=; b=Sh3TcVc9HowLXCsQItRAP8lIA+e04zuxuYa4ktbHHBHKZQQtS/mqp3j/6jRFJcYdwMGkcOS/IHKaBdWsTkdZcZr1ncabvLGvyL5o9iQec0N6ctEBLHoQjEjw0I3jFrNV1cI1W4tk+h0pQY1g8kr3xyWNwrl+VGsGslKSdcyykII= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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 lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1704160732519695.4841587225761; Mon, 1 Jan 2024 17:58:52 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rKU39-0003Hb-Rv; Mon, 01 Jan 2024 20:58:35 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rKU38-0003HO-Qd for qemu-devel@nongnu.org; Mon, 01 Jan 2024 20:58:34 -0500 Received: from mail-oa1-x36.google.com ([2001:4860:4864:20::36]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rKU37-00070a-97 for qemu-devel@nongnu.org; Mon, 01 Jan 2024 20:58:34 -0500 Received: by mail-oa1-x36.google.com with SMTP id 586e51a60fabf-20400d5b54eso7076022fac.1 for ; Mon, 01 Jan 2024 17:58:32 -0800 (PST) Received: from stoup.. (124-149-254-207.tpgi.com.au. [124.149.254.207]) by smtp.gmail.com with ESMTPSA id g33-20020a635221000000b0058ee60f8e4dsm19561891pgb.34.2024.01.01.17.58.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Jan 2024 17:58:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704160712; x=1704765512; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=7qyMzlpzWlHoGSx0bplKdPfg7TJkUYYgysQjBpEEncg=; b=wCrmBHiQBmvk9tFIhNgjBNYnvBQ2v9j5Occ7+z4qOupkZyPqGIeiILuSFzaJhnM/Sl ffTVI1GH/uzK3XAZBXhwsdSt7+mhCGsKKd1sw63EI44R2hj0d96Dx1GJfs/JYVkOIymj tIwibiFbrN5yMh+Z0swkLcFwp9UvkIsXjzObyeXLy4Q3fNYRy50dLXXKmnLbWvOkFbop EUR3vpF/wbMerOxM/2B5TA4oxVwIIpVBAQSVYrncE+5ZuqRDAJTdCYP3XVUqivSxJ9F6 STBTglV+Ie7aXXiMc+l3TMaAsgI4Jp5gJM1UR8doZJY1hjViWJumWETp821F5FpywWwl 1+vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704160712; x=1704765512; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7qyMzlpzWlHoGSx0bplKdPfg7TJkUYYgysQjBpEEncg=; b=f+4hfvxu9Xvryp/jLfrC7ZiGtG9YsIxrpSIhGaFSYi2NZ5SJEiugxdEYSj+K7gPlSz lBdd/H1CPp/nuTx5F+Ii65py04wQnqjauYdogkWaoYuq7jt+0Fyrx4uxxm8JOWtusg/c ue3/kuIswi3Aksw3u/YQU1WX7r1UIHtxVBge1J63zrXwQMDlR8rqUg0Z+sXhuhYgTDRH TrfRYHrdKPlaFA7qsHBC3gHujX7VwfpUToFq7JY6EldCPZLO0RAZ3u/Is6J8q3o5+mdV /TShTn1ImhuC69lCfUgd6G2yUM049rfVLcPRFo5DdO1T/7dXdK+c0LLsC943eIzayIyq tCXg== X-Gm-Message-State: AOJu0YyD+w0J+1QoS59w/JJDuSfSXhH+v7sBJ0vun2DaX2wFqXXLTUmG dEt9opAuuJ+QLh0zkSIwt4GFS8YodsW8alWPPrsZwk4vtdg= X-Google-Smtp-Source: AGHT+IERAvOAqKRj6cRuXptjlkI/bmbiVJefHVFdswW3OVZOHLN8smhyxMDvUhSOyw+pi9RglhCPmQ== X-Received: by 2002:a05:6871:5228:b0:1fa:dac9:1cd2 with SMTP id ht40-20020a056871522800b001fadac91cd2mr19439525oac.27.1704160712082; Mon, 01 Jan 2024 17:58:32 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH v3 09/33] linux-user: Remove REAL_HOST_PAGE_ALIGN from mmap.c Date: Tue, 2 Jan 2024 12:57:44 +1100 Message-Id: <20240102015808.132373-10-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240102015808.132373-1-richard.henderson@linaro.org> References: <20240102015808.132373-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" 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=lists.gnu.org; Received-SPF: pass client-ip=2001:4860:4864:20::36; envelope-from=richard.henderson@linaro.org; helo=mail-oa1-x36.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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: 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 @linaro.org) X-ZM-MESSAGEID: 1704160733336100004 We already have qemu_real_host_page_size() in a local variable. Reviewed-by: Philippe Mathieu-Daud=C3=A9 Signed-off-by: Richard Henderson Reviewed-by: Ilya Leoshkevich --- linux-user/mmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-user/mmap.c b/linux-user/mmap.c index 4d3c8717b9..53e5486cc8 100644 --- a/linux-user/mmap.c +++ b/linux-user/mmap.c @@ -585,7 +585,7 @@ abi_long target_mmap(abi_ulong start, abi_ulong len, in= t target_prot, * the hosts real pagesize. Additional anonymous maps * will be created beyond EOF. */ - len =3D REAL_HOST_PAGE_ALIGN(sb.st_size - offset); + len =3D ROUND_UP(sb.st_size - offset, host_page_size); } } =20 --=20 2.34.1