Skip to content
  • Don Slutz's avatar
    pc & q35: Add new machine opt max-ram-below-4g · c87b1520
    Don Slutz authored
    
    
    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: default avatarDon Slutz <dslutz@verizon.com>
    Reviewed-by: default avatarMichael S. Tsirkin <mst@redhat.com>
    Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
    
    MST: fix 32 bit
    c87b1520