Message ID | 20250110-asi-rfc-v2-v2-13-8419288bc805@google.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 D9AB4E7719C for <linux-mm@archiver.kernel.org>; Fri, 10 Jan 2025 18:41:26 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 027556B00CF; Fri, 10 Jan 2025 13:41:19 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id F19DE6B00D0; Fri, 10 Jan 2025 13:41:18 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id CFC306B00D1; Fri, 10 Jan 2025 13:41:18 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id AFFA86B00CF for <linux-mm@kvack.org>; Fri, 10 Jan 2025 13:41:18 -0500 (EST) Received: from smtpin28.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 76AC2C0DB2 for <linux-mm@kvack.org>; Fri, 10 Jan 2025 18:41:18 +0000 (UTC) X-FDA: 82992409836.28.D49F9DD Received: from mail-wm1-f73.google.com (mail-wm1-f73.google.com [209.85.128.73]) by imf30.hostedemail.com (Postfix) with ESMTP id 9C9C380023 for <linux-mm@kvack.org>; Fri, 10 Jan 2025 18:41:16 +0000 (UTC) Authentication-Results: imf30.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=IuS+C7VL; spf=pass (imf30.hostedemail.com: domain of 3ymmBZwgKCOUQHJRTHUINVVNSL.JVTSPUbe-TTRcHJR.VYN@flex--jackmanb.bounces.google.com designates 209.85.128.73 as permitted sender) smtp.mailfrom=3ymmBZwgKCOUQHJRTHUINVVNSL.JVTSPUbe-TTRcHJR.VYN@flex--jackmanb.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1736534476; 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-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=DqQy0/uo7rp5xt5hxwNN280PfwFL6RX7EFGPCdWY0es=; b=nAFYLSC0fcqZcMn6KDYpjX9sBPJ2hpyrSauXpXrBi/NfrlZI7jEyd4OOSG1Sl/5tGcVt/E SzHF+BCmx1vletSIKMtd4x8W3iKcqaYAByjPUJm6hj29sjdZ6TwIwIKIxWFql9PCB5tZt1 lAqgpWZVV00Cxkz4+93bf7X+uLmKf5o= ARC-Authentication-Results: i=1; imf30.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=IuS+C7VL; spf=pass (imf30.hostedemail.com: domain of 3ymmBZwgKCOUQHJRTHUINVVNSL.JVTSPUbe-TTRcHJR.VYN@flex--jackmanb.bounces.google.com designates 209.85.128.73 as permitted sender) smtp.mailfrom=3ymmBZwgKCOUQHJRTHUINVVNSL.JVTSPUbe-TTRcHJR.VYN@flex--jackmanb.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1736534476; a=rsa-sha256; cv=none; b=aZcoKzuuUxZTU/O1D+/ysOP+RbUV9mfrA4fVui2mGv36eiK+DyhEzcmYU90MEeoPKffpW4 NeiF8nCN3joYPjO7KWw3sbuT33O9ykdkO6AiwyeQ9CSHHKogLe3FiQMabtAs3wEnlicxnr w3JoKs+DTn/AGJ5hYPQCAz7jRG2DUjc= Received: by mail-wm1-f73.google.com with SMTP id 5b1f17b1804b1-4361f371908so16547485e9.0 for <linux-mm@kvack.org>; Fri, 10 Jan 2025 10:41:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1736534475; x=1737139275; darn=kvack.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=DqQy0/uo7rp5xt5hxwNN280PfwFL6RX7EFGPCdWY0es=; b=IuS+C7VLSuum2Vgr2Y1kVz1a/sOQ4c7jm885o+iVMfSj2l4GIe1ikC+jeI+7x/fe5C E30MXOT86WIFVUDSlR//LhnXxu+NOQfuG1bUznTsg8fRORisknXFGn6TDs5GVv8xwI6H MqsSUuKUkZ6c33URm/CS+ASNWTzCqob9zR6new/BptVZVGxHF2tcjXbFoiLrjd4pduss Ea6xKUFs9veWgFqkqF/YpYdeJeBNtCLaTSejjiqUxlWtq7PieUtWPO4UkJq6rz2EZXOu mgaxwmfUEQoUTOgCfZufQLlSc+xDzky+Z9Xa9v7xlpS3P7aKhS/+GY7+Ggpdg7z7VN3e 3zbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736534475; x=1737139275; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=DqQy0/uo7rp5xt5hxwNN280PfwFL6RX7EFGPCdWY0es=; b=h/EWj878ndCfbfgs7e/iQqp3KeXoysK1sVcmFiDsW+JO2E+UpsEaAwhHx1aNxMgDTC XFMZrQ+Q11GA/W2U6KwlRILaaGF1xsJfjJF1Lh5KtbNdWTgnnQsxWuQ2rg4Q7wS23P4u PETeixG2YmAanXhqh5T0iJbF4bNW9p4/M9fYJuK8VEDpktdvxAP8KfBsVE7KxReIRJGP hBpnSMCz3+biSDTpvOTri5EGoc+Ga+ST0Rm7pzP7tDzAY3NsgZce6gP0r9a9orhd8i29 quoCeu1nN69f3vBd+HDWn4kXjlm//bK+EFFATilMdgimhs4SpiP4gREyuVBFggB5NDDw 5s8A== X-Forwarded-Encrypted: i=1; AJvYcCWC+TENTRMFGCycp78gQ0l8L81z77nqsyD0qt3OhsMVXHDdpGb1Qy0PHIk8B3k+GCclBM1yeNY1+w==@kvack.org X-Gm-Message-State: AOJu0Yxv3GQ7rmex4s69wxYOzx+pgtkg6FACyvdpnx+FxTevv1pjKSWl Gy0PZf3+pucDb0KPFcxPlGSE2yF4IKFLI2t0jWkW1FovXjlAS1ZRKSbN0+xjhRbQYSZ+9zZaMf1 qMdoSSyY81A== X-Google-Smtp-Source: AGHT+IEHMyjAf4Ii6uANDaoYyo5ZkF+D1/fwKOgm4kaaSXfegc+L5vVxTYn6WIEloGlJDmt93RFbSdb2jTZqKA== X-Received: from wmbjt19.prod.google.com ([2002:a05:600c:5693:b0:435:4bd2:1dcd]) (user=jackmanb job=prod-delivery.src-stubby-dispatcher) by 2002:a05:600c:4e44:b0:434:e9ee:c3d with SMTP id 5b1f17b1804b1-436e27070b1mr106983675e9.20.1736534474969; Fri, 10 Jan 2025 10:41:14 -0800 (PST) Date: Fri, 10 Jan 2025 18:40:39 +0000 In-Reply-To: <20250110-asi-rfc-v2-v2-0-8419288bc805@google.com> Mime-Version: 1.0 References: <20250110-asi-rfc-v2-v2-0-8419288bc805@google.com> X-Mailer: b4 0.15-dev Message-ID: <20250110-asi-rfc-v2-v2-13-8419288bc805@google.com> Subject: [PATCH RFC v2 13/29] mm: Add __PAGEFLAG_FALSE From: Brendan Jackman <jackmanb@google.com> To: 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>, Andy Lutomirski <luto@kernel.org>, Peter Zijlstra <peterz@infradead.org>, Richard Henderson <richard.henderson@linaro.org>, Matt Turner <mattst88@gmail.com>, Vineet Gupta <vgupta@kernel.org>, Russell King <linux@armlinux.org.uk>, Catalin Marinas <catalin.marinas@arm.com>, Will Deacon <will@kernel.org>, Guo Ren <guoren@kernel.org>, Brian Cain <bcain@quicinc.com>, Huacai Chen <chenhuacai@kernel.org>, WANG Xuerui <kernel@xen0n.name>, Geert Uytterhoeven <geert@linux-m68k.org>, Michal Simek <monstr@monstr.eu>, Thomas Bogendoerfer <tsbogend@alpha.franken.de>, Dinh Nguyen <dinguyen@kernel.org>, Jonas Bonn <jonas@southpole.se>, Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>, Stafford Horne <shorne@gmail.com>, "James E.J. Bottomley" <James.Bottomley@HansenPartnership.com>, Helge Deller <deller@gmx.de>, Michael Ellerman <mpe@ellerman.id.au>, Nicholas Piggin <npiggin@gmail.com>, Christophe Leroy <christophe.leroy@csgroup.eu>, Naveen N Rao <naveen@kernel.org>, Madhavan Srinivasan <maddy@linux.ibm.com>, Paul Walmsley <paul.walmsley@sifive.com>, Palmer Dabbelt <palmer@dabbelt.com>, Albert Ou <aou@eecs.berkeley.edu>, Heiko Carstens <hca@linux.ibm.com>, Vasily Gorbik <gor@linux.ibm.com>, Alexander Gordeev <agordeev@linux.ibm.com>, Christian Borntraeger <borntraeger@linux.ibm.com>, Sven Schnelle <svens@linux.ibm.com>, Yoshinori Sato <ysato@users.sourceforge.jp>, Rich Felker <dalias@libc.org>, John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>, "David S. Miller" <davem@davemloft.net>, Andreas Larsson <andreas@gaisler.com>, Richard Weinberger <richard@nod.at>, Anton Ivanov <anton.ivanov@cambridgegreys.com>, Johannes Berg <johannes@sipsolutions.net>, Chris Zankel <chris@zankel.net>, Max Filippov <jcmvbkbc@gmail.com>, Arnd Bergmann <arnd@arndb.de>, Andrew Morton <akpm@linux-foundation.org>, Juri Lelli <juri.lelli@redhat.com>, Vincent Guittot <vincent.guittot@linaro.org>, Dietmar Eggemann <dietmar.eggemann@arm.com>, Steven Rostedt <rostedt@goodmis.org>, Ben Segall <bsegall@google.com>, Mel Gorman <mgorman@suse.de>, Valentin Schneider <vschneid@redhat.com>, Uladzislau Rezki <urezki@gmail.com>, Christoph Hellwig <hch@infradead.org>, Masami Hiramatsu <mhiramat@kernel.org>, Mathieu Desnoyers <mathieu.desnoyers@efficios.com>, Mike Rapoport <rppt@kernel.org>, Arnaldo Carvalho de Melo <acme@kernel.org>, Namhyung Kim <namhyung@kernel.org>, Mark Rutland <mark.rutland@arm.com>, Alexander Shishkin <alexander.shishkin@linux.intel.com>, Jiri Olsa <jolsa@kernel.org>, Ian Rogers <irogers@google.com>, Adrian Hunter <adrian.hunter@intel.com>, Dennis Zhou <dennis@kernel.org>, Tejun Heo <tj@kernel.org>, Christoph Lameter <cl@linux.com>, Sean Christopherson <seanjc@google.com>, Paolo Bonzini <pbonzini@redhat.com>, Ard Biesheuvel <ardb@kernel.org>, Josh Poimboeuf <jpoimboe@kernel.org>, Pawan Gupta <pawan.kumar.gupta@linux.intel.com> Cc: x86@kernel.org, linux-kernel@vger.kernel.org, linux-alpha@vger.kernel.org, linux-snps-arc@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-csky@vger.kernel.org, linux-hexagon@vger.kernel.org, loongarch@lists.linux.dev, linux-m68k@lists.linux-m68k.org, linux-mips@vger.kernel.org, linux-openrisc@vger.kernel.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, linux-um@lists.infradead.org, linux-arch@vger.kernel.org, linux-mm@kvack.org, linux-trace-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, kvm@vger.kernel.org, linux-efi@vger.kernel.org, Brendan Jackman <jackmanb@google.com> Content-Type: text/plain; charset="utf-8" X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 9C9C380023 X-Rspam-User: X-Stat-Signature: 1atpqnjqq9kgjxfkiedjb8atgz1nic6f X-HE-Tag: 1736534476-51243 X-HE-Meta: U2FsdGVkX1+iJlJTLi9/ZDwrqzpOmvNrtKsqff4h0BBoNNM0H51fuRM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h3emD97xqVBNLxK/AAEKuwdnZOuRN3xKHfMbW/v7vqO0MByHZeYg8fJ8AQ5Li2Fh29aCcD+v+uTrwM1GVo1X/ORAlmoYIbJ5OS24xEEUl16qJPjOmJ9GJLoc5/1PWghj2Lhbpfh0J91HIgSGS8ivPvbLmHVzcEotq8JdhqmDNDdwtZd4+lsjJe6I94Narwp7/LmpkPs3Tx5PuSQaupUl9mc3jhfCl6iHx8a5j0KdGDxy5Z44PrUsyc8vLthNBpiogLHtY748bNECC/HY/GOKff+gNfUgTiimgCss7wkMS0YUuhBo4LIA1er1h2GUuJ2HuUYyfaigp87noONHdEMskPGg1nySz2JRVmJo1FaOEH8H7oA3GZz2IubiH8xVnTv0IZrgdHsZy1++uuyaTN9bkbDmFJ5xpyYoT2c7suJoK3ObDAp+NtdstG83lnZ7k5aEZLSd6XAvLqa5ceT7/ZiVkY= 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> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
Address Space Isolation (ASI)
|
expand
|
diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h index cc839e4365c18223e68c35efd0f67e7650708e8b..7ee9a0edc6d21708fc93dfa8913dc1ae9478dee3 100644 --- a/include/linux/page-flags.h +++ b/include/linux/page-flags.h @@ -484,6 +484,10 @@ static inline int Page##uname(const struct page *page) { return 0; } FOLIO_SET_FLAG_NOOP(lname) \ static inline void SetPage##uname(struct page *page) { } +#define __SETPAGEFLAG_NOOP(uname, lname) \ +static inline void __folio_set_##lname(struct folio *folio) { } \ +static inline void __SetPage##uname(struct page *page) { } + #define CLEARPAGEFLAG_NOOP(uname, lname) \ FOLIO_CLEAR_FLAG_NOOP(lname) \ static inline void ClearPage##uname(struct page *page) { } @@ -506,6 +510,9 @@ static inline int TestClearPage##uname(struct page *page) { return 0; } #define TESTSCFLAG_FALSE(uname, lname) \ TESTSETFLAG_FALSE(uname, lname) TESTCLEARFLAG_FALSE(uname, lname) +#define __PAGEFLAG_FALSE(uname, lname) TESTPAGEFLAG_FALSE(uname, lname) \ + __SETPAGEFLAG_NOOP(uname, lname) __CLEARPAGEFLAG_NOOP(uname, lname) + __PAGEFLAG(Locked, locked, PF_NO_TAIL) FOLIO_FLAG(waiters, FOLIO_HEAD_PAGE) FOLIO_FLAG(referenced, FOLIO_HEAD_PAGE)
__PAGEFLAG_FALSE is a non-atomic equivalent of PAGEFLAG_FALSE. Checkpatch-args: --ignore=COMPLEX_MACRO Signed-off-by: Brendan Jackman <jackmanb@google.com> --- include/linux/page-flags.h | 7 +++++++ 1 file changed, 7 insertions(+)