Message ID | 20240215103205.2607016-2-ryan.roberts@arm.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1B865C48BEB for <linux-mm@archiver.kernel.org>; Thu, 15 Feb 2024 10:32:27 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 881F98D0013; Thu, 15 Feb 2024 05:32:26 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 8316A8D0001; Thu, 15 Feb 2024 05:32:26 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6FB7C8D0013; Thu, 15 Feb 2024 05:32:26 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 590658D0001 for <linux-mm@kvack.org>; Thu, 15 Feb 2024 05:32:26 -0500 (EST) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 10300120F31 for <linux-mm@kvack.org>; Thu, 15 Feb 2024 10:32:26 +0000 (UTC) X-FDA: 81793673892.05.F82D03A Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by imf04.hostedemail.com (Postfix) with ESMTP id 7434040015 for <linux-mm@kvack.org>; Thu, 15 Feb 2024 10:32:24 +0000 (UTC) Authentication-Results: imf04.hostedemail.com; dkim=none; spf=pass (imf04.hostedemail.com: domain of ryan.roberts@arm.com designates 217.140.110.172 as permitted sender) smtp.mailfrom=ryan.roberts@arm.com; dmarc=pass (policy=none) header.from=arm.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1707993144; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=f6gb/nfiijie/R90uJlYvW3OmZJqXxR5XmD97JtGnxc=; b=IHnJCddOKXHD0A2gai+N3Dqfh2fJATIngBS0pISa6eAlglRQNaHysZtMTH1srz/Rlon7Ma v4pHrcgn+YKDR0KUNyP9x/hxoZjgf7nOGMNQxEMYo+/1uRr26AaH0aklSaqu9kVrGt3zIF mywvw1eLyWBF+xUyrCYjnUbs53pCimk= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1707993144; a=rsa-sha256; cv=none; b=4VtTzCVmV3HmdWXVeCRr5Aofd8Ir8yLelqGndIF3MYUEYD8xCCFmmH9SOOdaAD8r/1kMkh w8yhRnCm5mBBZ/ub/zZVSsAQK4woedEf4gvsiCuvfDgDZRWVxOlpicN1vhcmz/lrCY8PPJ q5os14WcNZufd9TEcNpMuUP7EPhWcUk= ARC-Authentication-Results: i=1; imf04.hostedemail.com; dkim=none; spf=pass (imf04.hostedemail.com: domain of ryan.roberts@arm.com designates 217.140.110.172 as permitted sender) smtp.mailfrom=ryan.roberts@arm.com; dmarc=pass (policy=none) header.from=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 40DFDDA7; Thu, 15 Feb 2024 02:33:04 -0800 (PST) Received: from e125769.cambridge.arm.com (e125769.cambridge.arm.com [10.1.196.26]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 3722C3F7B4; Thu, 15 Feb 2024 02:32:20 -0800 (PST) From: Ryan Roberts <ryan.roberts@arm.com> To: Catalin Marinas <catalin.marinas@arm.com>, Will Deacon <will@kernel.org>, Ard Biesheuvel <ardb@kernel.org>, Marc Zyngier <maz@kernel.org>, James Morse <james.morse@arm.com>, Andrey Ryabinin <ryabinin.a.a@gmail.com>, Andrew Morton <akpm@linux-foundation.org>, Matthew Wilcox <willy@infradead.org>, Mark Rutland <mark.rutland@arm.com>, David Hildenbrand <david@redhat.com>, Kefeng Wang <wangkefeng.wang@huawei.com>, John Hubbard <jhubbard@nvidia.com>, Zi Yan <ziy@nvidia.com>, Barry Song <21cnbao@gmail.com>, Alistair Popple <apopple@nvidia.com>, Yang Shi <shy828301@gmail.com>, Thomas Gleixner <tglx@linutronix.de>, Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>, Dave Hansen <dave.hansen@linux.intel.com>, "H. Peter Anvin" <hpa@zytor.com> Cc: Ryan Roberts <ryan.roberts@arm.com>, linux-arm-kernel@lists.infradead.org, x86@kernel.org, linuxppc-dev@lists.ozlabs.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH v6 01/18] mm: Clarify the spec for set_ptes() Date: Thu, 15 Feb 2024 10:31:48 +0000 Message-Id: <20240215103205.2607016-2-ryan.roberts@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240215103205.2607016-1-ryan.roberts@arm.com> References: <20240215103205.2607016-1-ryan.roberts@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 7434040015 X-Rspam-User: X-Stat-Signature: jm8uh1inbsuierit5oxzg4e4f71oxu3x X-Rspamd-Server: rspam03 X-HE-Tag: 1707993144-543589 X-HE-Meta: U2FsdGVkX1+4S9rIjjOzTMENccPl1Yhp9NRVPOmL41NIB+HEmw0LoEP2//ttdYRKFI5aGofIVjDy0x3tRaS1/hcEwkC3kVY8FVsmEuLx3FIxHx9J1AwIdsRQ/Eu640FKsm4nuqCr4MqKHdf9eIPrH2cQk57Z8kJvCIK777y8mcqTXvxIUy6DOLykvo6urjQma8mKxmX7rUljgMEkVTfJt6hzS5/WajkxFboH4EvAbVI/rR7srV68STyxpuY5IwLy3+iYbB2oi5iJikWDQfzrXQ7YAIXgfgPSknYE2YcT8IFp9J7BDekqvPa5M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2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
Transparent Contiguous PTEs for User Mappings
|
expand
|
diff --git a/include/linux/pgtable.h b/include/linux/pgtable.h index 49ab1f73b5c2..231370e1b80f 100644 --- a/include/linux/pgtable.h +++ b/include/linux/pgtable.h @@ -229,6 +229,10 @@ static inline pte_t pte_next_pfn(pte_t pte) * @pte: Page table entry for the first page. * @nr: Number of pages to map. * + * When nr==1, initial state of pte may be present or not present, and new state + * may be present or not present. When nr>1, initial state of all ptes must be + * not present, and new state must be present. + * * May be overridden by the architecture, or the architecture can define * set_pte() and PFN_PTE_SHIFT. *