From mboxrd@z Thu Jan 1 00:00:00 1970 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 A9041155345; Wed, 23 Oct 2024 23:04:07 +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=1729724647; cv=none; b=jdksllQslCS5k/+jQzjbql8PAHcIKUVuLHsD8OBvO2ezCqsgfhugD/nuJogf47BPME7g9QHwgBFy2RDkw1ixnACFdEaTxObnMXFNCUgGBQ4PkvXZachfAY4cg08wdyCWMAZBkltSIYs3qg99Thcat6uY5Ns6IkJnUISwZNFJ4dE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729724647; c=relaxed/simple; bh=SW7zk5YIdDFzBZiXaPsu8LMcyr3b9ExBrJBUQkf3olo=; h=Date:From:To:Cc:Subject:Message-Id:In-Reply-To:References: Mime-Version:Content-Type; b=UUONu6fmkUo18HlTdDjiLrfzYJimbk0sd6emJJoOMAPTxrLMoLsJm1wpiZUBiZdG+vFVez66LGRLzRlHZmnKI9QB0bv+qOWsG+tKDD6eatC4vYHjdeL11pTzKfI/8see8cC4+o/6aP/8bqZWBkgq+GpVHEqVOIyfEByCldgqZPw= 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=K3xUv+m/; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="K3xUv+m/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 622E3C4CEC6; Wed, 23 Oct 2024 23:04:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1729724647; bh=SW7zk5YIdDFzBZiXaPsu8LMcyr3b9ExBrJBUQkf3olo=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=K3xUv+m/KQuYP+4Jbr6VP77i2LjZj+ZZpjW5f6vY+ymdzzXKonCFLAFiuQPn4KWF1 FOV4IWRH8CCkN0eVKriG0PL5Kyc4OyDZC1kr5QgWPgbxEF8T3mTepn9ohoTPzMJTuJ BpZQTKPkEJkK/0IQfIixeN9rNU0+UiypaxpSdQgQ= Date: Wed, 23 Oct 2024 16:04:05 -0700 From: Andrew Morton To: Lorenzo Stoakes Cc: Suren Baghdasaryan , "Liam R . Howlett" , Matthew Wilcox , Vlastimil Babka , "Paul E . McKenney" , Jann Horn , David Hildenbrand , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Muchun Song , Richard Henderson , Matt Turner , Thomas Bogendoerfer , "James E . J . Bottomley" , Helge Deller , Chris Zankel , Max Filippov , Arnd Bergmann , linux-alpha@vger.kernel.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, linux-arch@vger.kernel.org, Shuah Khan , Christian Brauner , linux-kselftest@vger.kernel.org, Sidhartha Kumar , Jeff Xu , Christoph Hellwig , linux-api@vger.kernel.org, John Hubbard Subject: Re: [PATCH v3 1/5] mm: pagewalk: add the ability to install PTEs Message-Id: <20241023160405.33995c68f20c141325a8fadb@linux-foundation.org> In-Reply-To: <9be732fd0e897453116b433fe2f468ef7795602e.1729699916.git.lorenzo.stoakes@oracle.com> References: <9be732fd0e897453116b433fe2f468ef7795602e.1729699916.git.lorenzo.stoakes@oracle.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-api@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 Wed, 23 Oct 2024 17:24:38 +0100 Lorenzo Stoakes wrote: > > ... > > Existing mechanism for performing a walk which also installs page table > entries if necessary are heavily duplicated throughout the kernel, How complicated is it to migrate those to use this? > ... > > We explicitly do not allow the existing page walk API to expose this > feature as it is dangerous and intended for internal mm use only. Therefore > we provide a new walk_page_range_mm() function exposed only to > mm/internal.h. > Is this decision compatible with the above migrations?