]> git.proxmox.com Git - mirror_qemu.git/commit - hw/i386/pc_piix.c
pc: allow raising low memory via max-ram-below-4g option
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 2 Jun 2016 08:48:25 +0000 (10:48 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 6 Jun 2016 16:57:06 +0000 (18:57 +0200)
commit8156d480861e937768d7d9ac0b73c1e74c368f1d
treeb0e78971775be6a523bf0d1055b3bd3d2e703eda
parent46e7b70699d8bf4db08c8bb5111974318dd5416d
pc: allow raising low memory via max-ram-below-4g option

This patch extends the functionality of the max-ram-below-4g option
to also allow increasing lowmem.  Use case: Give as much memory as
possible to legacy non-PAE guests.

While being at it also rework the lowmem calculation logic and add a
longish comment describing how it works and what the compatibility
constrains are.

Note:  This is a incompatible change.  When setting max-ram-below-4g to
a value larger than 3.5G (or 3G with gigabyte alignment) it has no
effect on older qemu versions: qemu silently ignores it.  With the patch
applied it actually has an effect and changes the ram layout.  Highly
unlikely to hit in practive though as there is no reason start old qemu
versions that way.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Message-Id: <1464857305-26675-1-git-send-email-kraxel@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/i386/pc.c
hw/i386/pc_piix.c