From: Markus Armbruster <armbru@redhat.com>
To: Eric Blake <eblake@redhat.com>
Cc: John Florian <1707297@bugs.launchpad.net>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [Bug 1707297] [NEW] qemu became more picky parsing -m option
Date: Mon, 31 Jul 2017 15:28:45 +0200 [thread overview]
Message-ID: <87tw1s3fci.fsf@dusky.pond.sub.org> (raw)
In-Reply-To: <ce479179-68e6-3a79-01e8-912b6234a2b5@redhat.com> (Eric Blake's message of "Mon, 31 Jul 2017 07:39:13 -0500")
Eric Blake <eblake@redhat.com> writes:
> On 07/31/2017 03:34 AM, Markus Armbruster wrote:
>> John Florian <1707297@bugs.launchpad.net> writes:
>>
>>> Public bug reported:
>>>
>>> With qemu-kvm-2.9.0-3.fc26.x86_64 I am no longer to specify the memory
>>> size using something like "-m 1.00000GiB" but with qemu-
>>> kvm-2.7.1-7.fc25.x86_64 I could without any problem. I now get an error
>>> message like:
>>>
>>> qemu-system-x86_64: -m 1.00000GiB: Parameter 'size' expects a non-negative number below 2^64
>>> Optional suffix k, M, G, T, P or E means kilo-, mega-, giga-, tera-, peta-
>>> and exabytes, respectively.
>>>
>>>
>>> Is this expected or a regression?
>>
>> We recognize suffix "G". Before commit 75cdcd1 (v2.9.0), trailing
>> garbage after a recognized suffix was silently ignored. "1.0G",
>> "1.0GiB", "1.0Garbage-trucks-of-RAM" were all the same to QEMU. No
>> more.
>>
>> All clear?
>
> That said, virsh from libvirt manages to recognize 'G' and 'GiB' as
> synonyms (powers of 2), as well as 'GB' (powers of 10); we could justify
> patching qemu's parser to accept more valid suffixes, particularly since
> 'GiB' is a typical suffix that has seen use (in spite of it not being
> documented).
I wouldn't object to such a patch, as long as it doesn't regress
consistency. Easy if we do "number with suffix" in just one place. We
might already do it, but I can't say offhand. Also, the patch probably
shouldn't change qemu_strtosz_metric().
next prev parent reply other threads:[~2017-07-31 13:28 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-28 20:34 [Qemu-devel] [Bug 1707297] [NEW] qemu became more picky parsing -m option John Florian
2017-07-31 8:34 ` Markus Armbruster
2017-07-31 12:39 ` Eric Blake
2017-07-31 13:28 ` Markus Armbruster [this message]
2017-07-31 13:09 ` [Qemu-devel] [Bug 1707297] " John Florian
2020-09-26 17:04 ` Thomas Huth
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87tw1s3fci.fsf@dusky.pond.sub.org \
--to=armbru@redhat.com \
--cc=1707297@bugs.launchpad.net \
--cc=eblake@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.