From nobody Tue Feb 10 14:33:19 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.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 Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 176891269380794.25674623261932; Tue, 20 Jan 2026 04:38:13 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1viAzc-0001yW-Iq; Tue, 20 Jan 2026 07:37:56 -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 1viAz6-0001ag-Cp; Tue, 20 Jan 2026 07:37:31 -0500 Received: from isrv.corpit.ru ([212.248.84.144]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1viAyy-0002XV-Op; Tue, 20 Jan 2026 07:37:21 -0500 Received: from tsrv.corpit.ru (tsrv.tls.msk.ru [192.168.177.2]) by isrv.corpit.ru (Postfix) with ESMTP id BB8081802C2; Tue, 20 Jan 2026 15:21:33 +0300 (MSK) Received: from think4mjt.tls.msk.ru (mjtthink.wg.tls.msk.ru [192.168.177.146]) by tsrv.corpit.ru (Postfix) with ESMTP id 42D1935174B; Tue, 20 Jan 2026 15:21:51 +0300 (MSK) From: Michael Tokarev To: qemu-devel@nongnu.org Cc: Michael Tokarev , qemu-trivial@nongnu.org Subject: [PULL 3/9] qemu-options.hx: use KiB, MiB, GiB for power-of-2 units Date: Tue, 20 Jan 2026 15:21:40 +0300 Message-ID: <20260120122150.2254321-4-mjt@tls.msk.ru> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260120122150.2254321-1-mjt@tls.msk.ru> References: <20260120122150.2254321-1-mjt@tls.msk.ru> 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 (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=212.248.84.144; envelope-from=mjt@tls.msk.ru; helo=isrv.corpit.ru X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, 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 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-ZM-MESSAGEID: 1768912705387154100 Use MiB &Co instead of MB &Co when the talk is about power-of-two-based sizes, in qemu-options.hx. Resolves: https://gitlab.com/qemu-project/qemu/-/issues/3222 Signed-off-by: Michael Tokarev Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- qemu-options.hx | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/qemu-options.hx b/qemu-options.hx index ec92723f10..455b8be890 100644 --- a/qemu-options.hx +++ b/qemu-options.hx @@ -305,9 +305,9 @@ SRST with break-before-make sequences are considerable and also if guest workloads are read intensive. The size here specifies how many pag= es to break at a time and needs to be a valid block size which is - 1GB/2MB/4KB, 32MB/16KB and 512MB/64KB for 4KB/16KB/64KB PAGE_SIZE - respectively. Be wary of specifying a higher size as it will have = an - impact on the memory. By default, this feature is disabled + 1GiB/2MiB/4KiB, 32MiB/16KiB and 512MiB/64KiB for 4KiB/16KiB/64KiB + PAGE_SIZE respectively. Be wary of specifying a higher size as it = will + have an impact on the memory. By default, this feature is disabled (eager-split-size=3D0). =20 ``notify-vmexit=3Drun|internal-error|disable,notify-window=3Dn`` @@ -564,7 +564,7 @@ SRST =20 lat is latency value in nanoseconds. bw is bandwidth value, the possible value and units are NUM[M\|G\|T], mean that the bandwidth - value are NUM byte per second (or MB/s, GB/s or TB/s depending on + value are NUM byte per second (or MiB/s, GiB/s or TiB/s depending on used suffix). Note that if latency or bandwidth value is 0, means the corresponding latency or bandwidth information is not provided. =20 @@ -579,10 +579,10 @@ SRST For example, the following options describe 2 NUMA nodes. Node 0 has 2 cpus and a ram, node 1 has only a ram. The processors in node 0 access memory in node 0 with access-latency 5 nanoseconds, - access-bandwidth is 200 MB/s; The processors in NUMA node 0 access + access-bandwidth is 200 MiB/s; The processors in NUMA node 0 access memory in NUMA node 1 with access-latency 10 nanoseconds, - access-bandwidth is 100 MB/s. And for memory side cache information, - NUMA node 0 and 1 both have 1 level memory cache, size is 10KB, + access-bandwidth is 100 MiB/s. And for memory side cache information, + NUMA node 0 and 1 both have 1 level memory cache, size is 10KiB, policy is write-back, the cache Line size is 8 bytes: =20 :: @@ -739,8 +739,8 @@ SRST amount of memory. Note that maxmem must be aligned to the page size. =20 For example, the following command-line sets the guest startup RAM - size to 1GB, creates 3 slots to hotplug additional memory and sets - the maximum memory the guest can reach to 4GB: + size to 1GiB, creates 3 slots to hotplug additional memory and sets + the maximum memory the guest can reach to 4GiB: =20 .. parsed-literal:: =20 @@ -1696,7 +1696,7 @@ SRST Specify bandwidth throttling limits in bytes per second, either for all request types or for reads or writes only. Small values can lead to timeouts or hangs inside the guest. A safe minimum - for disks is 2 MB/s. + for disks is 2 MiB/s. =20 ``bps_max=3Dbm,bps_rd_max=3Drm,bps_wr_max=3Dwm`` Specify bursts in bytes per second, either for all request types --=20 2.47.3