Re: [PATCH 3/3] memory: introduce an option to force onlining of hotplug memory

2020-07-24 Thread Michal Hocko
On Thu 23-07-20 19:39:54, David Hildenbrand wrote: [...] > Yeah, might require some code churn. It just feels wrong to involve > buddy concepts (e.g., onlining pages, calling memory notifiers, exposing > memory block devices) and introducing hacks (forced onlining) just to > get a memmap+identity

Re: [PATCH 3/3] memory: introduce an option to force onlining of hotplug memory

2020-07-23 Thread David Hildenbrand
On 23.07.20 18:22, Roger Pau Monné wrote: > On Thu, Jul 23, 2020 at 05:10:03PM +0200, Jürgen Groß wrote: >> On 23.07.20 15:59, Roger Pau Monné wrote: >>> On Thu, Jul 23, 2020 at 03:22:49PM +0200, David Hildenbrand wrote: On 23.07.20 14:23, Roger Pau Monné wrote: > On Thu, Jul 23, 2020 at

Re: [PATCH 3/3] memory: introduce an option to force onlining of hotplug memory

2020-07-23 Thread Roger Pau Monné
On Thu, Jul 23, 2020 at 05:10:03PM +0200, Jürgen Groß wrote: > On 23.07.20 15:59, Roger Pau Monné wrote: > > On Thu, Jul 23, 2020 at 03:22:49PM +0200, David Hildenbrand wrote: > > > On 23.07.20 14:23, Roger Pau Monné wrote: > > > > On Thu, Jul 23, 2020 at 01:37:03PM +0200, David Hildenbrand wrote:

Re: [PATCH 3/3] memory: introduce an option to force onlining of hotplug memory

2020-07-23 Thread Andrew Cooper
On 23/07/2020 16:10, Jürgen Groß wrote: > On 23.07.20 15:59, Roger Pau Monné wrote: >> On Thu, Jul 23, 2020 at 03:22:49PM +0200, David Hildenbrand wrote: >>> On 23.07.20 14:23, Roger Pau Monné wrote: On Thu, Jul 23, 2020 at 01:37:03PM +0200, David Hildenbrand wrote: > On 23.07.20 10:45,

Re: [PATCH 3/3] memory: introduce an option to force onlining of hotplug memory

2020-07-23 Thread Jürgen Groß
On 23.07.20 15:59, Roger Pau Monné wrote: On Thu, Jul 23, 2020 at 03:22:49PM +0200, David Hildenbrand wrote: On 23.07.20 14:23, Roger Pau Monné wrote: On Thu, Jul 23, 2020 at 01:37:03PM +0200, David Hildenbrand wrote: On 23.07.20 10:45, Roger Pau Monne wrote: Add an extra option to

Re: [PATCH 3/3] memory: introduce an option to force onlining of hotplug memory

2020-07-23 Thread Roger Pau Monné
On Thu, Jul 23, 2020 at 03:22:49PM +0200, David Hildenbrand wrote: > On 23.07.20 14:23, Roger Pau Monné wrote: > > On Thu, Jul 23, 2020 at 01:37:03PM +0200, David Hildenbrand wrote: > >> On 23.07.20 10:45, Roger Pau Monne wrote: > >>> Add an extra option to add_memory_resource that overrides the

Re: [PATCH 3/3] memory: introduce an option to force onlining of hotplug memory

2020-07-23 Thread Jürgen Groß
On 23.07.20 15:47, David Hildenbrand wrote: On 23.07.20 15:22, David Hildenbrand wrote: On 23.07.20 14:23, Roger Pau Monné wrote: On Thu, Jul 23, 2020 at 01:37:03PM +0200, David Hildenbrand wrote: On 23.07.20 10:45, Roger Pau Monne wrote: Add an extra option to add_memory_resource that

Re: [PATCH 3/3] memory: introduce an option to force onlining of hotplug memory

2020-07-23 Thread Jürgen Groß
On 23.07.20 15:39, Roger Pau Monné wrote: On Thu, Jul 23, 2020 at 03:20:55PM +0200, Jürgen Groß wrote: On 23.07.20 15:08, Roger Pau Monné wrote: On Thu, Jul 23, 2020 at 02:28:13PM +0200, Jürgen Groß wrote: On 23.07.20 14:23, Roger Pau Monné wrote: On Thu, Jul 23, 2020 at 01:37:03PM +0200,

Re: [PATCH 3/3] memory: introduce an option to force onlining of hotplug memory

2020-07-23 Thread David Hildenbrand
On 23.07.20 15:22, David Hildenbrand wrote: > On 23.07.20 14:23, Roger Pau Monné wrote: >> On Thu, Jul 23, 2020 at 01:37:03PM +0200, David Hildenbrand wrote: >>> On 23.07.20 10:45, Roger Pau Monne wrote: Add an extra option to add_memory_resource that overrides the memory hotplug online

Re: [PATCH 3/3] memory: introduce an option to force onlining of hotplug memory

2020-07-23 Thread Roger Pau Monné
On Thu, Jul 23, 2020 at 03:20:55PM +0200, Jürgen Groß wrote: > On 23.07.20 15:08, Roger Pau Monné wrote: > > On Thu, Jul 23, 2020 at 02:28:13PM +0200, Jürgen Groß wrote: > > > On 23.07.20 14:23, Roger Pau Monné wrote: > > > > On Thu, Jul 23, 2020 at 01:37:03PM +0200, David Hildenbrand wrote: > > >

Re: [PATCH 3/3] memory: introduce an option to force onlining of hotplug memory

2020-07-23 Thread Roger Pau Monné
On Thu, Jul 23, 2020 at 03:14:31PM +0200, David Hildenbrand wrote: > On 23.07.20 15:08, Roger Pau Monné wrote: > > On Thu, Jul 23, 2020 at 02:28:13PM +0200, Jürgen Groß wrote: > >> On 23.07.20 14:23, Roger Pau Monné wrote: > >>> On Thu, Jul 23, 2020 at 01:37:03PM +0200, David Hildenbrand wrote: >

Re: [PATCH 3/3] memory: introduce an option to force onlining of hotplug memory

2020-07-23 Thread David Hildenbrand
On 23.07.20 14:23, Roger Pau Monné wrote: > On Thu, Jul 23, 2020 at 01:37:03PM +0200, David Hildenbrand wrote: >> On 23.07.20 10:45, Roger Pau Monne wrote: >>> Add an extra option to add_memory_resource that overrides the memory >>> hotplug online behavior in order to force onlining of memory from

Re: [PATCH 3/3] memory: introduce an option to force onlining of hotplug memory

2020-07-23 Thread Jürgen Groß
On 23.07.20 15:08, Roger Pau Monné wrote: On Thu, Jul 23, 2020 at 02:28:13PM +0200, Jürgen Groß wrote: On 23.07.20 14:23, Roger Pau Monné wrote: On Thu, Jul 23, 2020 at 01:37:03PM +0200, David Hildenbrand wrote: On 23.07.20 10:45, Roger Pau Monne wrote: Add an extra option to

Re: [PATCH 3/3] memory: introduce an option to force onlining of hotplug memory

2020-07-23 Thread David Hildenbrand
On 23.07.20 15:08, Roger Pau Monné wrote: > On Thu, Jul 23, 2020 at 02:28:13PM +0200, Jürgen Groß wrote: >> On 23.07.20 14:23, Roger Pau Monné wrote: >>> On Thu, Jul 23, 2020 at 01:37:03PM +0200, David Hildenbrand wrote: On 23.07.20 10:45, Roger Pau Monne wrote: > Add an extra option to

Re: [PATCH 3/3] memory: introduce an option to force onlining of hotplug memory

2020-07-23 Thread Roger Pau Monné
On Thu, Jul 23, 2020 at 02:28:13PM +0200, Jürgen Groß wrote: > On 23.07.20 14:23, Roger Pau Monné wrote: > > On Thu, Jul 23, 2020 at 01:37:03PM +0200, David Hildenbrand wrote: > > > On 23.07.20 10:45, Roger Pau Monne wrote: > > > > Add an extra option to add_memory_resource that overrides the

Re: [PATCH 3/3] memory: introduce an option to force onlining of hotplug memory

2020-07-23 Thread David Hildenbrand
On 23.07.20 14:28, Jürgen Groß wrote: > On 23.07.20 14:23, Roger Pau Monné wrote: >> On Thu, Jul 23, 2020 at 01:37:03PM +0200, David Hildenbrand wrote: >>> On 23.07.20 10:45, Roger Pau Monne wrote: Add an extra option to add_memory_resource that overrides the memory hotplug online

Re: [PATCH 3/3] memory: introduce an option to force onlining of hotplug memory

2020-07-23 Thread Jürgen Groß
On 23.07.20 14:23, Roger Pau Monné wrote: On Thu, Jul 23, 2020 at 01:37:03PM +0200, David Hildenbrand wrote: On 23.07.20 10:45, Roger Pau Monne wrote: Add an extra option to add_memory_resource that overrides the memory hotplug online behavior in order to force onlining of memory from

Re: [PATCH 3/3] memory: introduce an option to force onlining of hotplug memory

2020-07-23 Thread Roger Pau Monné
On Thu, Jul 23, 2020 at 01:37:03PM +0200, David Hildenbrand wrote: > On 23.07.20 10:45, Roger Pau Monne wrote: > > Add an extra option to add_memory_resource that overrides the memory > > hotplug online behavior in order to force onlining of memory from > > add_memory_resource unconditionally. > >

Re: [PATCH 3/3] memory: introduce an option to force onlining of hotplug memory

2020-07-23 Thread David Hildenbrand
On 23.07.20 13:37, David Hildenbrand wrote: > On 23.07.20 10:45, Roger Pau Monne wrote: >> Add an extra option to add_memory_resource that overrides the memory >> hotplug online behavior in order to force onlining of memory from >> add_memory_resource unconditionally. >> >> This is required for

Re: [PATCH 3/3] memory: introduce an option to force onlining of hotplug memory

2020-07-23 Thread David Hildenbrand
On 23.07.20 10:45, Roger Pau Monne wrote: > Add an extra option to add_memory_resource that overrides the memory > hotplug online behavior in order to force onlining of memory from > add_memory_resource unconditionally. > > This is required for the Xen balloon driver, that must run the > online

[PATCH 3/3] memory: introduce an option to force onlining of hotplug memory

2020-07-23 Thread Roger Pau Monne
Add an extra option to add_memory_resource that overrides the memory hotplug online behavior in order to force onlining of memory from add_memory_resource unconditionally. This is required for the Xen balloon driver, that must run the online page callback in order to correctly process the newly