[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 2/2] Add -mem-shared option
From: |
Paolo Bonzini |
Subject: |
Re: [PATCH 2/2] Add -mem-shared option |
Date: |
Fri, 29 Nov 2019 18:46:12 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.1 |
On 29/11/19 13:16, Igor Mammedov wrote:
> As for "-m", I'd make it just an alias that translates
> -m/mem-path/mem-prealloc
I think we should just deprecate -mem-path/-mem-prealloc in 5.0. CCing
Thomas as mister deprecation. :)
> combination to appropriate '-object' for '-machine memdev' consumption.
> That should cover compat purposes for old machines and the rest of
> -m options (maxmem/slots) would be aliased to appropriate machine options.
>
> That will allow us to get rid of ad-hoc '-m' parser. After that it would
> be possible to deprecate '-m' in favor of machine properties, but that
> probably will get quite a push back so unless I find compelling reason
> to do it I won't care much as '-m' would be a lightweight shim over
> machine properties.
Well, deprecation and ultimately removal is always a long path.
However, I understand your plan better now and having "-machine memdev"
makes sense if you want to also move/alias "-m maxmem"/"-m slots" from
"-m" to "-machine".
So ultimately you'd have two ways of configuring memory:
- -m N,maxmem=P,slots=Q
" -machine memdev=M,maxmem=P,slots=Q
Paolo
- [PATCH 1/2] memfd: add qemu_memfd_open(), (continued)
- [PATCH 1/2] memfd: add qemu_memfd_open(), Marc-André Lureau, 2019/11/28
- [PATCH 2/2] Add -mem-shared option, Marc-André Lureau, 2019/11/28
- Re: [PATCH 2/2] Add -mem-shared option, Eduardo Habkost, 2019/11/28
- Re: [PATCH 2/2] Add -mem-shared option, Igor Mammedov, 2019/11/28
- Re: [PATCH 2/2] Add -mem-shared option, Marc-André Lureau, 2019/11/28
- Re: [PATCH 2/2] Add -mem-shared option, Igor Mammedov, 2019/11/29
- Re: [PATCH 2/2] Add -mem-shared option, Paolo Bonzini, 2019/11/29
- Re: [PATCH 2/2] Add -mem-shared option, Markus Armbruster, 2019/11/29
- Re: [PATCH 2/2] Add -mem-shared option, Eduardo Habkost, 2019/11/29
- Re: [PATCH 2/2] Add -mem-shared option, Igor Mammedov, 2019/11/29
- Re: [PATCH 2/2] Add -mem-shared option,
Paolo Bonzini <=
Re: [PATCH 0/2] RFC: add -mem-shared option, Eduardo Habkost, 2019/11/28
Re: [PATCH 0/2] RFC: add -mem-shared option, Dr. David Alan Gilbert, 2019/11/28
Re: [PATCH 0/2] RFC: add -mem-shared option, no-reply, 2019/11/28
Re: [PATCH 0/2] RFC: add -mem-shared option, no-reply, 2019/11/29