[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH v4 8/8] hv_balloon: try to merge system ram resources
On Fri, Sep 11, 2020 at 12:34:59PM +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: Wei Liu <wei.liu@xxxxxxxxxx> >Cc: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> >Cc: Michal Hocko <mhocko@xxxxxxxx> >Cc: "K. Y. Srinivasan" <kys@xxxxxxxxxxxxx> >Cc: Haiyang Zhang <haiyangz@xxxxxxxxxxxxx> >Cc: Stephen Hemminger <sthemmin@xxxxxxxxxxxxx> >Cc: Wei Liu <wei.liu@xxxxxxxxxx> >Cc: Pankaj Gupta <pankaj.gupta.linux@xxxxxxxxx> >Cc: Baoquan He <bhe@xxxxxxxxxx> >Signed-off-by: David Hildenbrand <david@xxxxxxxxxx> Reviewed-by: Wei Yang <richard.weiyang@xxxxxxxxxxxxxxxxx> >--- > drivers/hv/hv_balloon.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/drivers/hv/hv_balloon.c b/drivers/hv/hv_balloon.c >index 3c0d52e244520..b64d2efbefe71 100644 >--- a/drivers/hv/hv_balloon.c >+++ b/drivers/hv/hv_balloon.c >@@ -726,7 +726,7 @@ static void hv_mem_hot_add(unsigned long start, unsigned >long size, > > nid = memory_add_physaddr_to_nid(PFN_PHYS(start_pfn)); > ret = add_memory(nid, PFN_PHYS((start_pfn)), >- (HA_CHUNK << PAGE_SHIFT), MHP_NONE); >+ (HA_CHUNK << PAGE_SHIFT), MEMHP_MERGE_RESOURCE); > > if (ret) { > pr_err("hot_add memory failed error is %d\n", ret); >-- >2.26.2 -- Wei Yang Help you, Help me
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |