Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2831028pxk; Tue, 15 Sep 2020 03:35:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwdRQjPsy+x63otE+IrrwEZShOdbg7rzBhhF89g2VhdE6kPkojC6MFaH7swJS+42RCb5IQn X-Received: by 2002:a17:906:4cc7:: with SMTP id q7mr19604937ejt.437.1600166106936; Tue, 15 Sep 2020 03:35:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600166106; cv=none; d=google.com; s=arc-20160816; b=jBSOCTX0g1CVqkf6mmPwRuawg7VhSej82rWIeQBeZFU+Y5ylftY3dZYRpHeCVLUI4H IUq3S7D2MWZr6CrY1uLqm/Hbal41E7Ccw9LF+fmhVBG8ghrj8jr+Ktk9rTVEcvkGGcU1 7vxCCTutmEHBbunM7nJ4TyvR8q4t/fqcTCeMYivlPicGPbBeh/NWRi105bh9bBsx8GsM Cpg15D5fyHuaNanWuG8jB6vNwh7ROL8KW7aQNEqxot+jBJQ90LxpCmpy/Rmb32N4fOrO OT8qyYmCX5KV6ph0QVNW/eoumAQQv/ipru3CX1DQGEMfOIFJ249dr5s4g7ehyA2kKc4m IzrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=QQePa8Srh1hYmWbP57cP+I1tpi7xA5tdZNCkjRbimHE=; b=yhyILCEFKDXO8lKy164Pq4pQPanQYpsmrU6Xb5oSNTgMZJzicOCsyJb6VEF9r5mYpe zeDLcz+d6jxk4bsA8CUaf4DuIXk4ygiFBQHURtDyRYuMnS9vYPI85oPDKzE709z2ATCo Y9xrKe+dDpyccrZ+0GrYd9+VU64grcOMio/sxf4g44RW0GQ1h9mR7DoQkDVpgx0Da8Jw GAo2CutbDkgB5Cmt4ZWPXhAslyNu7ePy9hKchNyPNFMtcTSfGXf7RSWFRc2wE2L2OVcZ luUCCTLI36mpg5cu9DPumYPYibg+CYXi7fjqIrE6/XL28k2jqJOpIvGsJdn7V0LcNQa7 cxZw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e12si8807168ejb.104.2020.09.15.03.34.43; Tue, 15 Sep 2020 03:35:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726265AbgIOKbu (ORCPT + 99 others); Tue, 15 Sep 2020 06:31:50 -0400 Received: from mx2.suse.de ([195.135.220.15]:56026 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726153AbgIOKbu (ORCPT ); Tue, 15 Sep 2020 06:31:50 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 02318B0F2; Tue, 15 Sep 2020 10:32:04 +0000 (UTC) Date: Tue, 15 Sep 2020 12:31:45 +0200 From: Oscar Salvador To: Laurent Dufour Cc: akpm@linux-foundation.org, David Hildenbrand , mhocko@suse.com, Greg Kroah-Hartman , linux-mm@kvack.org, "Rafael J . Wysocki" , nathanl@linux.ibm.com, cheloha@linux.ibm.com, Tony Luck , Fenghua Yu , linux-ia64@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH v3 2/3] mm: don't rely on system state to detect hot-plug operations Message-ID: <20200915103145.GB30015@linux> References: <20200915094143.79181-1-ldufour@linux.ibm.com> <20200915094143.79181-3-ldufour@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200915094143.79181-3-ldufour@linux.ibm.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 15, 2020 at 11:41:42AM +0200, Laurent Dufour wrote: > [1] According to Oscar Salvador, using this qemu command line, ACPI memory > hotplug operations are raised at SYSTEM_SCHEDULING state: I would like to stress that this is not the only way we can end up hotplugging memor while state = SYSTEM_SCHEDULING. According to David, we can end up doing this if we reboot a VM with hotplugged memory. (And I have seen other virtualization technologies do the same) > Fixes: 4fbce633910e ("mm/memory_hotplug.c: make register_mem_sect_under_node() a callback of walk_memory_range()") > Signed-off-by: Laurent Dufour > Reviewed-by: David Hildenbrand > Cc: stable@vger.kernel.org > Cc: Greg Kroah-Hartman > Cc: "Rafael J. Wysocki" > Cc: Andrew Morton > Cc: Michal Hocko > Cc: Oscar Salvador Reviewed-by: Oscar Salvador -- Oscar Salvador SUSE L3