Re: [PATCH RFC 7/8] mm: allow to control onlining/offlining of memory by a driver

2018-04-13 Thread David Hildenbrand
On 13.04.2018 17:59, Michal Hocko wrote: > On Fri 13-04-18 15:33:28, David Hildenbrand wrote: >> Some devices (esp. paravirtualized) might want to control >> - when to online/offline a memory block >> - how to online memory (MOVABLE/NORMAL) >> - in which granularity to online/offline memory >> >>

Re: [PATCH RFC 7/8] mm: allow to control onlining/offlining of memory by a driver

2018-04-13 Thread David Hildenbrand
On 13.04.2018 17:59, Michal Hocko wrote: > On Fri 13-04-18 15:33:28, David Hildenbrand wrote: >> Some devices (esp. paravirtualized) might want to control >> - when to online/offline a memory block >> - how to online memory (MOVABLE/NORMAL) >> - in which granularity to online/offline memory >> >>

Re: [PATCH RFC 7/8] mm: allow to control onlining/offlining of memory by a driver

2018-04-13 Thread Michal Hocko
On Fri 13-04-18 15:33:28, David Hildenbrand wrote: > Some devices (esp. paravirtualized) might want to control > - when to online/offline a memory block > - how to online memory (MOVABLE/NORMAL) > - in which granularity to online/offline memory > > So let's add a new flag "driver_managed" and

Re: [PATCH RFC 7/8] mm: allow to control onlining/offlining of memory by a driver

2018-04-13 Thread Michal Hocko
On Fri 13-04-18 15:33:28, David Hildenbrand wrote: > Some devices (esp. paravirtualized) might want to control > - when to online/offline a memory block > - how to online memory (MOVABLE/NORMAL) > - in which granularity to online/offline memory > > So let's add a new flag "driver_managed" and