]> git.ipfire.org Git - thirdparty/qemu.git/commit
vl: Round argument of -m up to multiple of 8KiB
authorMarkus Armbruster <armbru@redhat.com>
Wed, 15 Aug 2012 11:12:19 +0000 (13:12 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 21 Aug 2012 20:42:32 +0000 (15:42 -0500)
commitfd21cc14f57247339be0ebf3e0845e431aa5aedc
treea6613c7d73967f5df8dfec0f18ae210f1aaac95f
parentcfeb9958c8f4f99f08222a47fe42ea73acb41ecc
vl: Round argument of -m up to multiple of 8KiB

Partial pages make little sense and don't work.  Ensure the RAM size
is a multiple of any possible target's page size.

Fixes

    $ qemu-system-x86_64 -nodefaults -S -vnc :0 -m 0.8
    qemu-system-x86_64: /work/armbru/qemu/exec.c:2255: register_subpage: Assertion `existing->mr->subpage || existing->mr == &io_mem_unassigned' failed.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
(cherry picked from commit ff961015529437f4b83fca0a92069aebcf533c9c)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
vl.c