On Fri, Sep 21, 2018 at 7:24 AM David Hildenbrand <david@xxxxxxxxxx> wrote: [..] > > Remove the PageReserved flag sounds more reasonable. > > And Could we still have a flag to identify it is a device private memory, or > > where these pages coming from? > > We could use a page type for that or what you proposed. (as I said, we > might have to change hibernation code to skip the pages once we drop the > reserved flag). I think it would be reasonable to reject all ZONE_DEVICE pages in saveable_page().