Message ID | 20240712-asi-rfc-24-v1-15-144b319a40d8@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 12BA7C2BD09 for <linux-mm@archiver.kernel.org>; Fri, 12 Jul 2024 17:01:51 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id EB7A76B00AC; Fri, 12 Jul 2024 13:01:39 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id E40CC6B00AD; Fri, 12 Jul 2024 13:01:39 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C93926B00AE; Fri, 12 Jul 2024 13:01:39 -0400 (EDT) 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 A543D6B00AC for <linux-mm@kvack.org>; Fri, 12 Jul 2024 13:01:39 -0400 (EDT) Received: from smtpin15.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 4316F40C2B for <linux-mm@kvack.org>; Fri, 12 Jul 2024 17:01:39 +0000 (UTC) X-FDA: 82331717118.15.49AE7DE Received: from mail-wr1-f73.google.com (mail-wr1-f73.google.com [209.85.221.73]) by imf09.hostedemail.com (Postfix) with ESMTP id 5489A14001F for <linux-mm@kvack.org>; Fri, 12 Jul 2024 17:01:36 +0000 (UTC) Authentication-Results: imf09.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=1fbbXO6u; dmarc=pass (policy=reject) header.from=google.com; spf=pass (imf09.hostedemail.com: domain of 3b2GRZggKCLIbSUceSfTYggYdW.Ugedafmp-eecnSUc.gjY@flex--jackmanb.bounces.google.com designates 209.85.221.73 as permitted sender) smtp.mailfrom=3b2GRZggKCLIbSUceSfTYggYdW.Ugedafmp-eecnSUc.gjY@flex--jackmanb.bounces.google.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1720803659; 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=wVrvdlJuWkiD+fWXDk/FgNJ7m+hI0zlwjZ1uzkGuBuA=; b=f39T2HDa/EwJ3KjlwNftOLLYPgOK0QyEMxQ8iqP0hdkS/IrTnluBi8R+7yeyzV0Ox8k2nS IITZTibHxxs2GPOQ5zgpDzR5KhZF7n8aSrUc/jPd385Qz4aO5aHop5IO4soDh0dZWHMtkW shMrrAMotDKXkLcULaeVuI7JOcdrI7g= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1720803659; a=rsa-sha256; cv=none; b=x2BAVWPQAylvqkmvVWRT5TderBktCYyvF6CmEHKfpftjzIxhM31/wajNd5d/Mc9G3J/RY7 DsYpm1cuk8tn9J2D+DvmA4vpQ7U4brb2UQKBgUpEur8z0zelGmzgjZG6VaRYEzhjWZugm5 oQE9LW0Zom6HWniJ1iINMgB+j2v8WlE= ARC-Authentication-Results: i=1; imf09.hostedemail.com; dkim=pass header.d=google.com header.s=20230601 header.b=1fbbXO6u; dmarc=pass (policy=reject) header.from=google.com; spf=pass (imf09.hostedemail.com: domain of 3b2GRZggKCLIbSUceSfTYggYdW.Ugedafmp-eecnSUc.gjY@flex--jackmanb.bounces.google.com designates 209.85.221.73 as permitted sender) smtp.mailfrom=3b2GRZggKCLIbSUceSfTYggYdW.Ugedafmp-eecnSUc.gjY@flex--jackmanb.bounces.google.com Received: by mail-wr1-f73.google.com with SMTP id ffacd0b85a97d-3678e523e32so1957629f8f.1 for <linux-mm@kvack.org>; Fri, 12 Jul 2024 10:01:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1720803696; x=1721408496; 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=wVrvdlJuWkiD+fWXDk/FgNJ7m+hI0zlwjZ1uzkGuBuA=; b=1fbbXO6uLHFE/vZBNuRmvCy883MsXJu26U1qL47iPXGv04L3FjTg0Me/I6UPU3b5lx w6WiyGhU1M0QsUR/9Sjsjz5XSijZSbCNn7u2gXdZRlSwL4TxCgizgqGvtaL1bCW/+/aq SbKPW0ZjJyTYGjU0oG1+Mi2bjfFq/6XdwH8kDOhl9C2G3JnWm0PrV5DRIdYcxfNeYE8w unZpVW2F53PIDZedC3A2YOr1migTb2BgCJ672dFtN2d67epPsEUBRfF6BMW9Y5BmQJ1S EfUyxc7+2TY0lDvw6fyBlkFc7gMXkv5+OE1zLCsYU9pOrW50wFiYW7la+0BQ26hO9iQ7 2n+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720803696; x=1721408496; 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=wVrvdlJuWkiD+fWXDk/FgNJ7m+hI0zlwjZ1uzkGuBuA=; b=fHAWx22HjF1wnnHinc5iD4kjLSFK2zQU+8v8wOit6iraPsb/H9j/FKoaQnPcadoFpF nIMu4zP4FKwmv2tk7sbMdHsIJvwOwps9b28g59A8GNrO+RBSrYtZa6cr0uqn9SPZAKdf tMHAqYKUCZTMXqJaBrULz5KFp/Fq9O8hcd5Rt1rvVhydwP+35a3bGV4QVEfociOj2ChE vcEO6RNlEKl5PC2cGPmC/uU1rZS3hSB4P+1oMnrl6FgHTR/qlvRU/Gm1bjkm2jTu+psw 0o/tlx7e/EZq7jWjV+Y3owUwOn8WDxs0UUemD9JaxT94E67ySx/UK5iLH2cMwzg39kjJ 808g== X-Forwarded-Encrypted: i=1; AJvYcCXbD7H5kyTVoz5lny/cboUmcLRgJHCNlhpYtdKkPzrg3mHltAnJZLLM5uuTGXQErYBbUTmV1uYKv/fJRj0si7ap+QY= X-Gm-Message-State: AOJu0YxhZLa1GApnxlp737hbapEFeVrysv70bgc3ZtAUByql++P8INJ6 vpdWnlmiz8bxPQkkj0wkyo5yfO8Z7SfA0JAro5lUVxx58Oy7T8w8hxYE77+dRm4d+vZxhJkwG4/ xqkbZjcNc7w== X-Google-Smtp-Source: AGHT+IErU4rdmgQiGRDTef2HJjYT1+igKTiETpi6GcIgcGxVKuf8GnSM5HDh2rVJ+wSRQZ9KiIWprZFuMKIHlA== X-Received: from beeg.c.googlers.com ([fda3:e722:ac3:cc00:28:9cb1:c0a8:11db]) (user=jackmanb job=sendgmr) by 2002:a05:6000:400c:b0:368:5d2:9e5f with SMTP id ffacd0b85a97d-36805d29fa3mr5077f8f.0.1720803695788; Fri, 12 Jul 2024 10:01:35 -0700 (PDT) Date: Fri, 12 Jul 2024 17:00:33 +0000 In-Reply-To: <20240712-asi-rfc-24-v1-0-144b319a40d8@google.com> Mime-Version: 1.0 References: <20240712-asi-rfc-24-v1-0-144b319a40d8@google.com> X-Mailer: b4 0.14-dev Message-ID: <20240712-asi-rfc-24-v1-15-144b319a40d8@google.com> Subject: [PATCH 15/26] 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>, Sean Christopherson <seanjc@google.com>, Paolo Bonzini <pbonzini@redhat.com>, Alexandre Chartre <alexandre.chartre@oracle.com>, Liran Alon <liran.alon@oracle.com>, Jan Setje-Eilers <jan.setjeeilers@oracle.com>, Catalin Marinas <catalin.marinas@arm.com>, Will Deacon <will@kernel.org>, Mark Rutland <mark.rutland@arm.com>, Andrew Morton <akpm@linux-foundation.org>, Mel Gorman <mgorman@suse.de>, Lorenzo Stoakes <lstoakes@gmail.com>, David Hildenbrand <david@redhat.com>, Vlastimil Babka <vbabka@suse.cz>, Michal Hocko <mhocko@kernel.org>, Khalid Aziz <khalid.aziz@oracle.com>, Juri Lelli <juri.lelli@redhat.com>, Vincent Guittot <vincent.guittot@linaro.org>, Dietmar Eggemann <dietmar.eggemann@arm.com>, Steven Rostedt <rostedt@goodmis.org>, Valentin Schneider <vschneid@redhat.com>, Paul Turner <pjt@google.com>, Reiji Watanabe <reijiw@google.com>, Junaid Shahid <junaids@google.com>, Ofir Weisse <oweisse@google.com>, Yosry Ahmed <yosryahmed@google.com>, Patrick Bellasi <derkling@google.com>, KP Singh <kpsingh@google.com>, Alexandra Sandulescu <aesa@google.com>, Matteo Rizzo <matteorizzo@google.com>, Jann Horn <jannh@google.com> Cc: x86@kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, kvm@vger.kernel.org, Brendan Jackman <jackmanb@google.com> Content-Type: text/plain; charset="utf-8" X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 5489A14001F X-Stat-Signature: udn4mwd5wir818jjzmqdh5hchruhsgpq X-Rspam-User: X-HE-Tag: 1720803696-725516 X-HE-Meta: U2FsdGVkX18pRAvW3RJuq6A0xbyfkogFm3Y6d2tt+lXFGRxbESsJnQiq3CCwhtv2+njeeci7/zMpI0o2VMMuzUUfD8o/DqEL2r7D5zaQ24CHxe+L1MjaXXXAg+Xn/xC+PrvpiEwnHYqHrx6RJUEq22gdERrrL9dSsTUUhfwD8l2mQlJ3CkH7bLHQ3Mg+1rUUpPESJua7l96KcShrXxTX0eS3mpuqcLFAS1gnjMCJvQwCBOKG06uUJ3NUNGunZ6h5hCzl9lPlh06uL7/eUoiTXICs/9tfuykp3+sG7ijc/hF9CjOBZU3CmeQ6LgYIDlbEzqP8KYSJMc+tUEKSMZc3wUW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TmcCx1KlYtY75GJzaActxXDUIyoZ2rWh3He8hLhIEENlElzK1G+OIlxyY5th7UfcLqZJZW1EDXpf3acYF+OUYdo/3AuWrIeXiffy1Zpkx1B99BpZGqPG5FmBuAjLKvrKhWVV/OIxBv38wRULdCIy08IHgbGvbFhS/c= 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) 2024
|
expand
|
diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h index 4bf1c25fd1dc5..57fa58899a661 100644 --- a/include/linux/page-flags.h +++ b/include/linux/page-flags.h @@ -488,6 +488,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) { } @@ -510,6 +514,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) PAGEFLAG(Error, error, PF_NO_TAIL) TESTCLEARFLAG(Error, error, PF_NO_TAIL)
__PAGEFLAG_FALSE is a non-atomic equivalent of PAGEFLAG_FALSE. Signed-off-by: Brendan Jackman <jackmanb@google.com> --- include/linux/page-flags.h | 7 +++++++ 1 file changed, 7 insertions(+)