From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751811AbdAMN5v (ORCPT ); Fri, 13 Jan 2017 08:57:51 -0500 Received: from mail-pf0-f195.google.com ([209.85.192.195]:34016 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751698AbdAMN5u (ORCPT ); Fri, 13 Jan 2017 08:57:50 -0500 From: Balbir Singh X-Google-Original-From: Balbir Singh Date: Fri, 13 Jan 2017 19:27:41 +0530 To: =?iso-8859-1?B?Suly9G1l?= Glisse Cc: akpm@linux-foundation.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, John Hubbard , Russell King , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Martin Schwidefsky , Heiko Carstens , Yoshinori Sato , Rich Felker , Chris Metcalf , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" Subject: Re: [HMM v16 01/15] mm/memory/hotplug: convert device bool to int to allow for more flags v2 Message-ID: <20170113135741.GA26827@localhost.localdomain> References: <1484238642-10674-1-git-send-email-jglisse@redhat.com> <1484238642-10674-2-git-send-email-jglisse@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1484238642-10674-2-git-send-email-jglisse@redhat.com> User-Agent: Mutt/1.7.1 (2016-10-04) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 12, 2017 at 11:30:28AM -0500, Jérôme Glisse wrote: > When hotpluging memory we want more informations on the type of memory and > its properties. Replace the device boolean flag by an int and define a set > of flags. > > New property for device memory is an opt-in flag to allow page migration > from and to a ZONE_DEVICE. Existing user of ZONE_DEVICE are not expecting > page migration to work for their pages. New changes to page migration i > changing that and we now need a flag to explicitly opt-in page migration. Given that ZONE_DEVICE is dependent on X86_64, do we need to touch all architectures? I guess we could selectively enable things as we enable ZONE_DEVICE for other architectures? Balbir Singh.