Re: [PATCH REPOST v3 78/80] hostmem: fix strict bind policy

2020-01-28 Thread Halil Pasic
On Tue, 28 Jan 2020 13:07:40 +0100 Igor Mammedov wrote: > On Mon, 27 Jan 2020 15:41:45 +0100 > Halil Pasic wrote: > > > On Mon, 27 Jan 2020 08:39:25 +0100 > > Igor Mammedov wrote: [..] > > > > > > one should be able to use memory-backend property to make it work > > > instead of -m convenienc

Re: [PATCH REPOST v3 78/80] hostmem: fix strict bind policy

2020-01-28 Thread Igor Mammedov
On Mon, 27 Jan 2020 15:41:45 +0100 Halil Pasic wrote: > On Mon, 27 Jan 2020 08:39:25 +0100 > Igor Mammedov wrote: > > > On Fri, 24 Jan 2020 20:17:48 +0100 > > Halil Pasic wrote: > > > > > On Thu, 23 Jan 2020 12:38:43 +0100 > > > Igor Mammedov wrote: > > > > > > > With main RAM now conve

Re: [PATCH REPOST v3 78/80] hostmem: fix strict bind policy

2020-01-27 Thread Halil Pasic
On Mon, 27 Jan 2020 08:39:25 +0100 Igor Mammedov wrote: > On Fri, 24 Jan 2020 20:17:48 +0100 > Halil Pasic wrote: > > > On Thu, 23 Jan 2020 12:38:43 +0100 > > Igor Mammedov wrote: > > > > > With main RAM now converted to hostmem backends, there is no > > > point in keeping global mem_prealloc

Re: [PATCH REPOST v3 78/80] hostmem: fix strict bind policy

2020-01-26 Thread Igor Mammedov
On Fri, 24 Jan 2020 20:17:48 +0100 Halil Pasic wrote: > On Thu, 23 Jan 2020 12:38:43 +0100 > Igor Mammedov wrote: > > > With main RAM now converted to hostmem backends, there is no > > point in keeping global mem_prealloc around, so alias > > -mem-prealloc to "memory-backend.prealloc=on" > > m

Re: [PATCH REPOST v3 78/80] hostmem: fix strict bind policy

2020-01-24 Thread Halil Pasic
On Thu, 23 Jan 2020 12:38:43 +0100 Igor Mammedov wrote: > With main RAM now converted to hostmem backends, there is no > point in keeping global mem_prealloc around, so alias > -mem-prealloc to "memory-backend.prealloc=on" > machine compat[*] property and make mem_prealloc a local > variable to

[PATCH REPOST v3 78/80] hostmem: fix strict bind policy

2020-01-23 Thread Igor Mammedov
When option -mem-prealloc is used with one or more memory-backend objects, created backends may not obey configured bind policy or creation may fail after kernel attempts to move pages according to bind policy. Reason is in file_ram_alloc(), which will pre-allocate any descriptor based RAM if globa