From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C379DC433E1 for ; Thu, 13 Aug 2020 09:49:52 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 7A0D72074D for ; Thu, 13 Aug 2020 09:49:52 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=ffwll.ch header.i=@ffwll.ch header.b="lWi1FzHH" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7A0D72074D Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ffwll.ch Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 164166B0008; Thu, 13 Aug 2020 05:49:52 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 1145F6B000A; Thu, 13 Aug 2020 05:49:52 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0027B6B000C; Thu, 13 Aug 2020 05:49:51 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0004.hostedemail.com [216.40.44.4]) by kanga.kvack.org (Postfix) with ESMTP id DF99D6B0008 for ; Thu, 13 Aug 2020 05:49:51 -0400 (EDT) Received: from smtpin07.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 8B32B8248076 for ; Thu, 13 Aug 2020 09:49:51 +0000 (UTC) X-FDA: 77145073782.07.stone04_1206f8e26ff3 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin07.hostedemail.com (Postfix) with ESMTP id 66E751803F781 for ; Thu, 13 Aug 2020 09:49:51 +0000 (UTC) X-HE-Tag: stone04_1206f8e26ff3 X-Filterd-Recvd-Size: 5194 Received: from mail-wr1-f66.google.com (mail-wr1-f66.google.com [209.85.221.66]) by imf41.hostedemail.com (Postfix) with ESMTP for ; Thu, 13 Aug 2020 09:49:50 +0000 (UTC) Received: by mail-wr1-f66.google.com with SMTP id r2so4675378wrs.8 for ; Thu, 13 Aug 2020 02:49:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=0LlvHfm0fDcpoyyMaORTx/eYLC8CvpylDILZS1NvjiE=; b=lWi1FzHH1BV+EzmrSga7ApiENnWG4rnFNvY55jJnx4HEYYqFbLTyoosig8cHp1FiY+ KzDuXOaac641oazK7Pj5mp5b/e6dsFLKNW4tORrAeiih1MKDWVWE0X2vuI1VAcIyx2P7 Yyv67b5AUWBZMZM3ni5igMfct6/Px27rLKJM8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :content-transfer-encoding:in-reply-to; bh=0LlvHfm0fDcpoyyMaORTx/eYLC8CvpylDILZS1NvjiE=; b=sT/g9dVXgo3WCEb+OfGoT89lxVWjRxvT3HBwpnVOIUw95YOSLDhbqJgxqz0hX6XVhN Wp+UiokDLQQw4StT3NfAPDnHUIJtnutit1KxPKl9LDMhYngNpfIAodkW4BBz/YSMyOmS p+ihtxZ5A3qHKZuIikckU8kkLwbYi9AWTvPFX3wmJAVNfKrDLLP/c94uLnR4FK4RAmE+ jmvqAq4he6dyPQeqSPkAChKCz376dPgqIJv0p84hoRmEcMOlFdEgDU/AGqh97nJdxrHL WYdG8ajka4aQxvhx4/jnKOeLuPdCd8uTiC+XwBbNBKe3PcEvhOZ5oqaPyT70pA/Um4EJ 1MUA== X-Gm-Message-State: AOAM533JBjVe4AlpT+zP+U+fsOL6F+l791qxtO9mP5dPOSsp6p+yuGaQ 5Q/qu5psz6uEPTSFywK0Za+G1w== X-Google-Smtp-Source: ABdhPJycUujEr7rVda86HPb+DkIE8Ht8J0MPhgd4scPfkc4FA7fTcodh9eVHq8K2RnSra1Me1/FpMg== X-Received: by 2002:a5d:4a8a:: with SMTP id o10mr3037067wrq.327.1597312188920; Thu, 13 Aug 2020 02:49:48 -0700 (PDT) Received: from phenom.ffwll.local ([2a02:168:57f4:0:efd0:b9e5:5ae6:c2fa]) by smtp.gmail.com with ESMTPSA id 68sm9267182wra.39.2020.08.13.02.49.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Aug 2020 02:49:48 -0700 (PDT) Date: Thu, 13 Aug 2020 11:49:46 +0200 From: Daniel Vetter To: Roger Pau =?iso-8859-1?Q?Monn=E9?= Cc: Christoph Hellwig , linux-kernel@vger.kernel.org, Oleksandr Andrushchenko , David Airlie , Daniel Vetter , Boris Ostrovsky , Juergen Gross , Stefano Stabellini , Dan Carpenter , Wei Liu , Yan Yankovskyi , dri-devel@lists.freedesktop.org, xen-devel@lists.xenproject.org, linux-mm@kvack.org, David Hildenbrand , Michal Hocko , Dan Williams Subject: Re: [PATCH v4 2/2] xen: add helpers to allocate unpopulated memory Message-ID: <20200813094946.GJ2352366@phenom.ffwll.local> Mail-Followup-To: Roger Pau =?iso-8859-1?Q?Monn=E9?= , Christoph Hellwig , linux-kernel@vger.kernel.org, Oleksandr Andrushchenko , David Airlie , Boris Ostrovsky , Juergen Gross , Stefano Stabellini , Dan Carpenter , Wei Liu , Yan Yankovskyi , dri-devel@lists.freedesktop.org, xen-devel@lists.xenproject.org, linux-mm@kvack.org, David Hildenbrand , Michal Hocko , Dan Williams References: <20200811094447.31208-1-roger.pau@citrix.com> <20200811094447.31208-3-roger.pau@citrix.com> <20200813073337.GA16160@infradead.org> <20200813075420.GC975@Air-de-Roger> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <20200813075420.GC975@Air-de-Roger> X-Operating-System: Linux phenom 5.7.0-1-amd64 X-Rspamd-Queue-Id: 66E751803F781 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam01 Content-Transfer-Encoding: quoted-printable X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Thu, Aug 13, 2020 at 09:54:20AM +0200, Roger Pau Monn=E9 wrote: > On Thu, Aug 13, 2020 at 08:33:37AM +0100, Christoph Hellwig wrote: > > On Tue, Aug 11, 2020 at 11:44:47AM +0200, Roger Pau Monne wrote: > > > If enabled (because ZONE_DEVICE is supported) the usage of the new > > > functionality untangles Xen balloon and RAM hotplug from the usage = of > > > unpopulated physical memory ranges to map foreign pages, which is t= he > > > correct thing to do in order to avoid mappings of foreign pages dep= end > > > on memory hotplug. > >=20 > > So please just select ZONE_DEVICE if this is so much better rather > > than maintaining two variants. >=20 > We still need to other variant for Arm at least, so both need to be > maintained anyway, even if we force ZONE_DEVICE on x86. Why does arm not have ZONE_DEVICE? -Daniel --=20 Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch