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=-9.7 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY,URIBL_BLOCKED autolearn=ham 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 00B20C433E2 for ; Wed, 16 Sep 2020 12:53:02 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id ADBA422272 for ; Wed, 16 Sep 2020 12:53:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org ADBA422272 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kIWvY-0001q5-Mo; Wed, 16 Sep 2020 12:52:48 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kIWvX-0001pu-MQ for xen-devel@lists.xenproject.org; Wed, 16 Sep 2020 12:52:47 +0000 X-Inumbo-ID: 6b06f330-d877-4884-ab9a-88bd693b4378 Received: from out30-45.freemail.mail.aliyun.com (unknown [115.124.30.45]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 6b06f330-d877-4884-ab9a-88bd693b4378; Wed, 16 Sep 2020 12:52:46 +0000 (UTC) X-Alimail-AntiSpam: AC=PASS; BC=-1|-1; BR=01201311R811e4; CH=green; DM=||false|; DS=||; FP=0|-1|-1|-1|0|-1|-1|-1; HT=e01e04400; MF=richard.weiyang@linux.alibaba.com; NM=1; PH=DS; RN=20; SR=0; TI=SMTPD_---0U97x1PB_1600260761; Received: from localhost(mailfrom:richard.weiyang@linux.alibaba.com fp:SMTPD_---0U97x1PB_1600260761) by smtp.aliyun-inc.com(127.0.0.1); Wed, 16 Sep 2020 20:52:41 +0800 Date: Wed, 16 Sep 2020 20:52:41 +0800 From: Wei Yang To: David Hildenbrand Cc: linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org, linux-mm@kvack.org, linux-hyperv@vger.kernel.org, xen-devel@lists.xenproject.org, linux-acpi@vger.kernel.org, linux-nvdimm@lists.01.org, linux-s390@vger.kernel.org, Andrew Morton , Juergen Gross , Andrew Morton , Michal Hocko , Boris Ostrovsky , Stefano Stabellini , Roger Pau =?iso-8859-1?Q?Monn=E9?= , Julien Grall , Pankaj Gupta , Baoquan He , Wei Yang Subject: Re: [PATCH v4 7/8] xen/balloon: try to merge system ram resources Message-ID: <20200916125241.GA48127@L-31X9LVDL-1304.local> References: <20200911103459.10306-1-david@redhat.com> <20200911103459.10306-8-david@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200911103459.10306-8-david@redhat.com> X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Reply-To: Wei Yang Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" On Fri, Sep 11, 2020 at 12:34:58PM +0200, David Hildenbrand wrote: >Let's try to merge system ram resources we add, to minimize the number >of resources in /proc/iomem. We don't care about the boundaries of >individual chunks we added. > >Reviewed-by: Juergen Gross >Cc: Andrew Morton >Cc: Michal Hocko >Cc: Boris Ostrovsky >Cc: Juergen Gross >Cc: Stefano Stabellini >Cc: Roger Pau Monné >Cc: Julien Grall >Cc: Pankaj Gupta >Cc: Baoquan He >Signed-off-by: David Hildenbrand Reviewed-by: Wei Yang >--- > drivers/xen/balloon.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/drivers/xen/balloon.c b/drivers/xen/balloon.c >index 9f40a294d398d..b57b2067ecbfb 100644 >--- a/drivers/xen/balloon.c >+++ b/drivers/xen/balloon.c >@@ -331,7 +331,7 @@ static enum bp_state reserve_additional_memory(void) > mutex_unlock(&balloon_mutex); > /* add_memory_resource() requires the device_hotplug lock */ > lock_device_hotplug(); >- rc = add_memory_resource(nid, resource, MHP_NONE); >+ rc = add_memory_resource(nid, resource, MEMHP_MERGE_RESOURCE); > unlock_device_hotplug(); > mutex_lock(&balloon_mutex); > >-- >2.26.2 -- Wei Yang Help you, Help me