[Qemu-devel] [PATCH v2] pc: allow raising low memory via max-ram-below-4g option

2016-06-02 Thread Gerd Hoffmann
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

Re: [Qemu-devel] [PATCH v2] pc: allow raising low memory via max-ram-below-4g option

2016-01-23 Thread Michael S. Tsirkin
On Fri, Jan 22, 2016 at 11:51:54AM +0100, Gerd Hoffmann wrote: > Hi, > > > > > I wonder whether we should just bite the bullet and ask management to > > > > maintain the physical memory map for us, instead of trying to give us > > > > hints. > > > > > > I doubt this simplified things, given

Re: [Qemu-devel] [PATCH v2] pc: allow raising low memory via max-ram-below-4g option

2016-01-22 Thread Gerd Hoffmann
Hi, > > > I wonder whether we should just bite the bullet and ask management to > > > maintain the physical memory map for us, instead of trying to give us > > > hints. > > > > I doubt this simplified things, given the backward compatibility > > constrains we have. > > > > cheers, > > Gerd

Re: [Qemu-devel] [PATCH v2] pc: allow raising low memory via max-ram-below-4g option

2016-01-21 Thread Michael S. Tsirkin
On Thu, Jan 21, 2016 at 08:48:53AM +0100, Gerd Hoffmann wrote: > On Mi, 2016-01-20 at 19:25 +0200, Michael S. Tsirkin wrote: > > On Wed, Jan 20, 2016 at 03:15:04PM -0200, Eduardo Habkost wrote: > > > On Wed, Jan 20, 2016 at 01:34:29PM -0200, Eduardo Habkost wrote: > > > [...] > > > > Considering

Re: [Qemu-devel] [PATCH v2] pc: allow raising low memory via max-ram-below-4g option

2016-01-20 Thread Gerd Hoffmann
On Mi, 2016-01-20 at 19:25 +0200, Michael S. Tsirkin wrote: > On Wed, Jan 20, 2016 at 03:15:04PM -0200, Eduardo Habkost wrote: > > On Wed, Jan 20, 2016 at 01:34:29PM -0200, Eduardo Habkost wrote: > > [...] > > > Considering that we never supported > > > gigabyte_align && max_ram_below_4g > 3G ||

Re: [Qemu-devel] [PATCH v2] pc: allow raising low memory via max-ram-below-4g option

2016-01-20 Thread Gerd Hoffmann
Hi, > > + *qemu -M pc,max-ram-below-4g=2G -m 4G -> 2048M low, 2048M high > I assume max-ram-below-4g > 3.5G was unsupported before, and we > are breaking compatibility intentionally. max-ram-below-4g did only reduce memory, so max-ram-below-4g > 3.5G (or max-ram-below-4g > 3G with

Re: [Qemu-devel] [PATCH v2] pc: allow raising low memory via max-ram-below-4g option

2016-01-20 Thread Eduardo Habkost
On Wed, Jan 20, 2016 at 01:34:29PM -0200, Eduardo Habkost wrote: [...] > Considering that we never supported > gigabyte_align && max_ram_below_4g > 3G || > max_ram_below_4g > 3.5G > before, we could simply remove the MachineClass::gigabyte_align > field from pc_piix, and just do the following:

Re: [Qemu-devel] [PATCH v2] pc: allow raising low memory via max-ram-below-4g option

2016-01-20 Thread Michael S. Tsirkin
On Wed, Jan 20, 2016 at 03:15:04PM -0200, Eduardo Habkost wrote: > On Wed, Jan 20, 2016 at 01:34:29PM -0200, Eduardo Habkost wrote: > [...] > > Considering that we never supported > > gigabyte_align && max_ram_below_4g > 3G || > > max_ram_below_4g > 3.5G > > before, we could simply remove the

Re: [Qemu-devel] [PATCH v2] pc: allow raising low memory via max-ram-below-4g option

2016-01-20 Thread Eduardo Habkost
On Wed, Jan 20, 2016 at 03:55:33PM +0100, Gerd Hoffmann wrote: > Hi, > > > > + *qemu -M pc,max-ram-below-4g=2G -m 4G -> 2048M low, 2048M > > > high > > > I assume max-ram-below-4g > 3.5G was unsupported before, and we > > are breaking compatibility intentionally. > >

Re: [Qemu-devel] [PATCH v2] pc: allow raising low memory via max-ram-below-4g option

2016-01-19 Thread Eduardo Habkost
On Fri, Jan 08, 2016 at 01:58:03PM +0100, Gerd Hoffmann wrote: > 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

Re: [Qemu-devel] [PATCH v2] pc: allow raising low memory via max-ram-below-4g option

2016-01-14 Thread Eric Blake
On 01/08/2016 05:58 AM, Gerd Hoffmann wrote: > 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 >

Re: [Qemu-devel] [PATCH v2] pc: allow raising low memory via max-ram-below-4g option

2016-01-11 Thread Gerd Hoffmann
On Fr, 2016-01-08 at 19:32 +0100, Laszlo Ersek wrote: > On 01/08/16 18:45, Igor Mammedov wrote: > > On Fri, 8 Jan 2016 13:58:03 +0100 > > Gerd Hoffmann wrote: > > > >> This patch extends the functionality of the max-ram-below-4g option > >> to also allow increasing lowmem.

Re: [Qemu-devel] [PATCH v2] pc: allow raising low memory via max-ram-below-4g option

2016-01-11 Thread Marcel Apfelbaum
On 01/08/2016 02:58 PM, Gerd Hoffmann wrote: 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

Re: [Qemu-devel] [PATCH v2] pc: allow raising low memory via max-ram-below-4g option

2016-01-11 Thread Laszlo Ersek
On 01/11/16 09:26, Gerd Hoffmann wrote: > On Fr, 2016-01-08 at 19:32 +0100, Laszlo Ersek wrote: >> On 01/08/16 18:45, Igor Mammedov wrote: >>> On Fri, 8 Jan 2016 13:58:03 +0100 >>> Gerd Hoffmann wrote: >>> This patch extends the functionality of the max-ram-below-4g

Re: [Qemu-devel] [PATCH v2] pc: allow raising low memory via max-ram-below-4g option

2016-01-08 Thread Igor Mammedov
On Fri, 8 Jan 2016 13:58:03 +0100 Gerd Hoffmann wrote: > 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

Re: [Qemu-devel] [PATCH v2] pc: allow raising low memory via max-ram-below-4g option

2016-01-08 Thread Laszlo Ersek
On 01/08/16 18:45, Igor Mammedov wrote: > On Fri, 8 Jan 2016 13:58:03 +0100 > Gerd Hoffmann wrote: > >> 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

[Qemu-devel] [PATCH v2] pc: allow raising low memory via max-ram-below-4g option

2016-01-08 Thread Gerd Hoffmann
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

[Qemu-devel] [PATCH v2] pc: allow raising low memory via max-ram-below-4g option

2015-11-03 Thread Gerd Hoffmann
This patch extends the functionality of the max-ram-below-4g option to also allow increasing lowmem. 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. Signed-off-by: Gerd Hoffmann