Message ID | 20230802151406.3735276-28-willy@infradead.org (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 EC7EFC04FE0 for <linux-mm@archiver.kernel.org>; Wed, 2 Aug 2023 15:14:46 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E264928019D; Wed, 2 Aug 2023 11:14:17 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id D879028019B; Wed, 2 Aug 2023 11:14:17 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id AF25128019F; Wed, 2 Aug 2023 11:14:17 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 7D3CA28019B for <linux-mm@kvack.org>; Wed, 2 Aug 2023 11:14:17 -0400 (EDT) Received: from smtpin22.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 3A0D4B1FE7 for <linux-mm@kvack.org>; Wed, 2 Aug 2023 15:14:17 +0000 (UTC) X-FDA: 81079510554.22.154533D Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf06.hostedemail.com (Postfix) with ESMTP id 5E2D518002E for <linux-mm@kvack.org>; Wed, 2 Aug 2023 15:14:14 +0000 (UTC) Authentication-Results: imf06.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=UOIVkEMN; spf=none (imf06.hostedemail.com: domain of willy@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=willy@infradead.org; dmarc=none ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1690989254; a=rsa-sha256; cv=none; b=yBPlCs2oQWiyjmqhk12vDR2Ye0J3XzC+95OKD6rNc1IQT1xFWeaMbB3FJ7o9qHn77hOzZl T1S4wWiD6stsoMo9LpnKOh9x1FQnP4BX5Y3hyJ0nSQV805K8iFZPn5pJrc6ZvD7InSPG5B wyjyekFpFsclXPVRqsc2xyQyN9J7pcw= ARC-Authentication-Results: i=1; imf06.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b=UOIVkEMN; spf=none (imf06.hostedemail.com: domain of willy@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=willy@infradead.org; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1690989254; 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:dkim-signature; bh=4kjTMLR4yS/6wlkWfd894MUQRkbdXeC/iqVMekxk9eo=; b=8duS6pmWPSNO4c4PlaWDBz5tapQbwQ9QU7fgg3WJRG6frkcWOLhmKaiy/U8fIrffm9vGou 1mwtfy4SRkMeexPUREz6lFOy6DD6o5aF7PRZmSCKiUq6SrJ0d84bSv7N/U6fxRT2E9lqcZ oaOujSDdEj4VAx7oxDC14oiT/lc3MnU= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=4kjTMLR4yS/6wlkWfd894MUQRkbdXeC/iqVMekxk9eo=; b=UOIVkEMNZdOCGJnBsxzHwsX40o rr8/nyntKl6RORHkEVc1Y7ojv/VnFqITY+WiWPjPixGsd1y2B5+NOHhmwf+2hoVCzXh4QzqCB51Jj S4sAYQbo/cu4/lif1d8gBk+xM5TeGeQ7HZ0MQXLvNvnLFEmz/KPVffPBW9bKSD+uPgF+m+QoBoTDx 2kBNipEaB9ZEhOUlwI68RO5gDnOB1PMs9QWwKD0CUH1tSy//cA/SA+GLemgzGXwDKcJj2uRKJLBmf MZXx5Fw05aEfsxobMifW/lp5H8loR+8MXo8bAWCO7qbbTqc+kZfnueekrMvjcRkRcBPjxVf43ti3N TknOGAaw==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1qRDYB-00Ffku-2a; Wed, 02 Aug 2023 15:14:11 +0000 From: "Matthew Wilcox (Oracle)" <willy@infradead.org> To: Andrew Morton <akpm@linux-foundation.org> Cc: "Matthew Wilcox (Oracle)" <willy@infradead.org>, linux-arch@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Mike Rapoport <rppt@kernel.org>, Richard Weinberger <richard@nod.at>, Anton Ivanov <anton.ivanov@cambridgegreys.com>, Johannes Berg <johannes@sipsolutions.net>, linux-um@lists.infradead.org Subject: [PATCH v6 27/38] um: Implement the new page table range API Date: Wed, 2 Aug 2023 16:13:55 +0100 Message-Id: <20230802151406.3735276-28-willy@infradead.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20230802151406.3735276-1-willy@infradead.org> References: <20230802151406.3735276-1-willy@infradead.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: 5E2D518002E X-Stat-Signature: wnprhu78ss339gij13qcsrb6714xjudz X-Rspam-User: X-HE-Tag: 1690989254-619363 X-HE-Meta: U2FsdGVkX1+P/HDWVCZ/Op5vch0b5n9ud38aSir7vlaqArUpRH8XcXsKTYeH9EGcPOPst9ku1KC+QaTRRQwQf3wwb0SRjoEc+13EgFsdEMRgj5MY2z4O6RiM+5M1RnMShsDrkBbQs04p0B/baeEAQMDyvvmL2VKvilFYVb9tpzGcQEm5dIxDxFLWmkJ5MwqLMRAua/Wh0o/L8jAAPW0auO/+WBKxgn0OqM92TtMSlFpm9ux6aqmv3nQA2P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9ms9hsk3SdeDQNy/SLfaxAbSBPU+6xGf/8= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
New page table range API
|
expand
|
diff --git a/arch/um/include/asm/pgtable.h b/arch/um/include/asm/pgtable.h index a70d1618eb35..44f6c76167d9 100644 --- a/arch/um/include/asm/pgtable.h +++ b/arch/um/include/asm/pgtable.h @@ -242,11 +242,7 @@ static inline void set_pte(pte_t *pteptr, pte_t pteval) if(pte_present(*pteptr)) *pteptr = pte_mknewprot(*pteptr); } -static inline void set_pte_at(struct mm_struct *mm, unsigned long addr, - pte_t *pteptr, pte_t pteval) -{ - set_pte(pteptr, pteval); -} +#define PFN_PTE_SHIFT PAGE_SHIFT #define __HAVE_ARCH_PTE_SAME static inline int pte_same(pte_t pte_a, pte_t pte_b) @@ -290,6 +286,7 @@ struct mm_struct; extern pte_t *virt_to_pte(struct mm_struct *mm, unsigned long addr); #define update_mmu_cache(vma,address,ptep) do {} while (0) +#define update_mmu_cache_range(vmf, vma, address, ptep, nr) do {} while (0) /* * Encode/decode swap entries and swap PTEs. Swap PTEs are all PTEs that