]> git.proxmox.com Git - mirror_qemu.git/commit - hw/i386/pc_piix.c
piix: gigabyte alignment for ram
authorGerd Hoffmann <kraxel@redhat.com>
Mon, 16 Dec 2013 09:11:28 +0000 (10:11 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 23 Dec 2013 11:12:34 +0000 (13:12 +0200)
commitbb43d3839c29b17a2f5c122114cd4ca978065a18
tree46ca203400f3008c8825ac42292150e80fc4c32d
parentf976b09ea249cccc3fd41c98aaf6512908db0bae
piix: gigabyte alignment for ram

Map 3G (i440fx) of memory below 4G, so the RAM pieces
are nicely aligned to gigabyte borders.

Keep old memory layout for (a) old machine types and (b) in case all
memory fits below 4G and thus we don't have to split RAM into pieces
in the first place.  The later makes sure this change doesn't take
away memory from 32bit guests.

So, with i440fx and up to 3.5 GB of memory, all of it will be mapped
below 4G.  With more than 3.5 GB of memory 3 GB will be mapped below
4G and the remaining amount will be mapped above 4G.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/i386/pc_piix.c