Received: by 2002:a05:7208:c250:b0:86:f851:443 with SMTP id w16csp48880rbd; Tue, 11 Jun 2024 12:38:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUEqAcF7Ai5qg1HaDA6dIkDQBbKPqgG28ENQbeyk4u9WqjOAjDByYs8kWaSfRIDDWfHyIA1z5WTXnANgUKWZAUrLOxFbichnV1HLxa1QA== X-Google-Smtp-Source: AGHT+IG/azBa/hR6aylBbowcT6ZKOb05HqY+8z6xIIhYiPaFJLpvSyb0aS7eWZO3aYZXs1p0VA5J X-Received: by 2002:a92:c244:0:b0:374:a6a3:333b with SMTP id e9e14a558f8ab-375803ab3f5mr158220595ab.28.1718134732892; Tue, 11 Jun 2024 12:38:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718134732; cv=pass; d=google.com; s=arc-20160816; b=maYPb4SfTpBMc1zchVg1fWj4IE7lH5Bx1V2vCA1/AOWoto4FF8UpKriCjX7NFPh8ex gxNWpCT1MmtjvbJp6ITPbX8fm7oJU+kmD0Zr8zhCErK3n6b1a3UrmEWjn3M+peCMxOEs rVzlsY6mzv4wsRPyHKusjfvSGi+ZVAkedWPnqng7Tr78Y7h5vmK1PQEWKKWI4oLGy2k5 9s6fkD/uRrVdO72EGcXCAVMTk3dJgmSsSX7To5oh68+aqrr8utkSlt+MEnsZBiCqe7e9 NtVe4ogH0U3SI1dyS1lzpTi3gxImGALZRmVmNCeXS97CkFlOKTM+cvNZ/R0PKYcmyDiv LPYw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=BKSoQBeqyVLDXP1a0GwgL1NP6+fOBxoLMJmMe1bwmyI=; fh=H6CH34hcYenSB7FXrgY3SiQWBl/4Errpy/cWaxiK6f8=; b=ZArSekK5byPPbb5JASEZCs3ulmW1pCusZEIgUR5jz/xWNWEI5iGFMiVHIIdRmr9DPP zvrufwk+zGFtPniSDCz9IZ8vha3e2Ub7Ylcu0kCCcsQJfLLca043ahWT/qHoyzZcW+st Ox0Ur9bh4FepD7Bo4cQ+831xO3HRuCeN4dRTz0YH9aB5iP2HMBM6OfktDMVXSTmEzj90 SQeQb5VgcN+hlTzUGaFTmMluFtrdfK9q6XkQEke47Kez2mh5QL30R9TtTX9tWBcIV6+3 MU7lc9Guu+n5MfcuiK+HVORVavFW4KUNKHG7qei3QDkgTxyirXQc8rjmW2pwTjiokfdT uvBg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=JB948CVY; arc=pass (i=1 dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-210518-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210518-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6f95eb24807si481823a12.329.2024.06.11.12.38.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 12:38:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-210518-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=JB948CVY; arc=pass (i=1 dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-210518-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210518-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 799EC286553 for ; Tue, 11 Jun 2024 19:36:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3166D81AD2; Tue, 11 Jun 2024 19:36:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="JB948CVY" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 25F183A27B; Tue, 11 Jun 2024 19:36:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718134573; cv=none; b=Sw4wm3LAfPv+IXqW3L3a8zGQijJtafZoE9MVMMzBFgQOKq9gl8IZbG5p2A1A36IJk4clD1r6ctx5GrEWJwz3Sh/XWKkMEvAGZSb5jz4TNzjRb12cuDG9U+jb51z6do7RVVcZZJRIqg2Kl2w8WibkfgtobZpgFDbh09r7dTAyUxk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718134573; c=relaxed/simple; bh=GdA6KT5UlfpnGhC3psTeDTcc9QB/a0N+IRhJ64cOBEU=; h=Date:From:To:Cc:Subject:Message-Id:In-Reply-To:References: Mime-Version:Content-Type; b=WTusb77Dtgm/OxnEMrzlxsPHP6k4KWmdZ4sC3DeO84Isl+MHS7lVuntUvGvOQAZV5RuePVip/hRzoBQl+estIhfmUxhl09DZoI4MUyrWaA5bXq5BgYbH9e0qbAPmevPHMmpY+MCIQSEp3iQwy/GG8JR2iYhCRQWNbQM8uPCM7v0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=JB948CVY; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C5183C2BD10; Tue, 11 Jun 2024 19:36:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1718134572; bh=GdA6KT5UlfpnGhC3psTeDTcc9QB/a0N+IRhJ64cOBEU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=JB948CVYmQmTc/5A4rHdUtUx98VRAUbQLgcPx7ZLb7Ixz24iZxaAzJDVfs+JRO5YW CCPvVl85B+g0dyiNojTR+kxGEPc9ZgbqQD2ZBp34OLwozipdz5vU+CNeaE3NaT5REm svy2ZcgGUGTCQSvDFEiwKvklcemFxCLjWAbltRSA= Date: Tue, 11 Jun 2024 12:36:11 -0700 From: Andrew Morton To: David Hildenbrand Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-hyperv@vger.kernel.org, virtualization@lists.linux.dev, xen-devel@lists.xenproject.org, kasan-dev@googlegroups.com, Mike Rapoport , Oscar Salvador , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , "Michael S. Tsirkin" , Jason Wang , Xuan Zhuo , Eugenio =?ISO-8859-1?Q?P=E9rez?= , Juergen Gross , Stefano Stabellini , Oleksandr Tyshchenko , Alexander Potapenko , Marco Elver , Dmitry Vyukov Subject: Re: [PATCH v1 2/3] mm/memory_hotplug: initialize memmap of !ZONE_DEVICE with PageOffline() instead of PageReserved() Message-Id: <20240611123611.36d0633c65ec8171152fe803@linux-foundation.org> In-Reply-To: <824c319a-530e-4153-80f5-20e2c463fa81@redhat.com> References: <20240607090939.89524-1-david@redhat.com> <20240607090939.89524-3-david@redhat.com> <824c319a-530e-4153-80f5-20e2c463fa81@redhat.com> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Tue, 11 Jun 2024 11:42:56 +0200 David Hildenbrand wrote: > > We'll leave the ZONE_DEVICE case alone for now. > > > > @Andrew, can we add here: > > "Note that self-hosted vmemmap pages will no longer be marked as > reserved. This matches ordinary vmemmap pages allocated from the buddy > during memory hotplug. Now, really only vmemmap pages allocated from > memblock during early boot will be marked reserved. Existing > PageReserved() checks seem to be handling all relevant cases correctly > even after this change." Done, thanks.