]> git.proxmox.com Git - mirror_qemu.git/commit - vl.c
pc & q35: Add new machine opt max-ram-below-4g
authorDon Slutz <dslutz@verizon.com>
Fri, 20 Jun 2014 01:40:25 +0000 (21:40 -0400)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 23 Jun 2014 15:02:41 +0000 (18:02 +0300)
commitc87b1520726f7ae1e698a41f07043d1b539ac88c
tree401b304520238bdcc32867e977eb662b8c4cc196
parent3c2a96699e9fc09b5712dacfe200cdaaff0bb55c
pc & q35: Add new machine opt max-ram-below-4g

This is a pc & q35 only machine opt.

If you add enough PCI devices then all mmio for them will not fit
below 4G which may not be the layout the user wanted. This allows
you to increase the below 4G address space that PCI devices can use
(aka decrease ram below 4G) and therefore in more cases not have any
mmio that is above 4G.

For example using "-machine pc,max-ram-below-4g=2G" on the command
line will limit the amount of ram that is below 4G to 2G.

Note: this machine option cannot be used to increase the amount
of ram below 4G.

Signed-off-by: Don Slutz <dslutz@verizon.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
MST: fix 32 bit
hw/i386/pc.c
hw/i386/pc_piix.c
hw/i386/pc_q35.c
include/hw/i386/pc.h
vl.c