From patchwork Tue Apr 5 01:49:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Xu X-Patchwork-Id: 12800978 Return-Path: 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 EFCDDC433EF for ; Tue, 5 Apr 2022 01:59:17 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 1CAF96B0095; Mon, 4 Apr 2022 21:49:45 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 17AC06B0096; Mon, 4 Apr 2022 21:49:45 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 01B826B0098; Mon, 4 Apr 2022 21:49:44 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay.a.hostedemail.com [64.99.140.24]) by kanga.kvack.org (Postfix) with ESMTP id E942A6B0095 for ; Mon, 4 Apr 2022 21:49:44 -0400 (EDT) Received: from smtpin08.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id C175120E74 for ; Tue, 5 Apr 2022 01:49:34 +0000 (UTC) X-FDA: 79321143468.08.D1FEDF9 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by imf11.hostedemail.com (Postfix) with ESMTP id 192C140018 for ; Tue, 5 Apr 2022 01:49:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1649123373; h=from:from: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:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=lW39+rLF3iuwrcyWFAu8xWUbxamG/E8iQp/9Q8XMaVI=; b=V/dnabp/rAeXFsiyLPjD+3v0/xCO0oJeockLtT0xSMIG+RMxbBAqm1jXk3aBaqmKj54wFx OBAfn8siLMrNbx52T3xyIfhett5AeoLk7FfdoNU8urQEOghCM4Tao+YZRph3yFimbSpLF5 MLloWbIPfzKTC9u6chQIeILzvf2Qx4E= Received: from mail-io1-f71.google.com (mail-io1-f71.google.com [209.85.166.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-382-OBAo6tB8OTuci3tvWylS1Q-1; Mon, 04 Apr 2022 21:49:32 -0400 X-MC-Unique: OBAo6tB8OTuci3tvWylS1Q-1 Received: by mail-io1-f71.google.com with SMTP id x16-20020a6bfe10000000b006409f03e39eso7463029ioh.7 for ; Mon, 04 Apr 2022 18:49:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=lW39+rLF3iuwrcyWFAu8xWUbxamG/E8iQp/9Q8XMaVI=; b=TlV8gAWNiXtEZh+9+5wUFaEp0bnxb+lKIhgIJEFW/A6N6Phj1DGt5Tckvjy1MIAxJM 2JtA9jHEUP+6H0cVa/AzmTFN88kEfCgNPjU6CGO8IPftL47KoCcam1goAFpkG5b2uiD2 aqA48WBr6ktjA0+sbnTiKhVXl6Y4EY07QZAsuScciIdE1w6Xy8VRVU8mTs3WuaW7b89j AjAqs0NMItP0AtpPgMsDaiE8IJAGtld6PSKasZTPqO45CNUq29GmG+4uVxUK66Gyzn4X glz8O3VQQDQsQH1TGcay8dskSqaTJiOF2BNyQpcBokmXQCWFqOCurvCMmTraYJTN5rvt GGag== X-Gm-Message-State: AOAM531Gyi7pHNuWah9Gylz5mSryk4QnDZtb0RS6MwcnhissJXR9np2N awab35kZDSMDF98M3cUnosuxv+st2PwXWusjXhwxrXKUf19jKquQwWDCnamPzxfd7IvCmsh1odg rns/joJLPOKI= X-Received: by 2002:a6b:cd0c:0:b0:649:adb8:79eb with SMTP id d12-20020a6bcd0c000000b00649adb879ebmr582209iog.138.1649123372063; Mon, 04 Apr 2022 18:49:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwn1jD8bZrilkR6TJdV2+HFVoMQ6KZBMcYF9DIorLbsiTZnX9G3AePuh+OKuYEiS2DRPtH+RA== X-Received: by 2002:a6b:cd0c:0:b0:649:adb8:79eb with SMTP id d12-20020a6bcd0c000000b00649adb879ebmr582198iog.138.1649123371881; Mon, 04 Apr 2022 18:49:31 -0700 (PDT) Received: from localhost.localdomain (cpec09435e3e0ee-cmc09435e3e0ec.cpe.net.cable.rogers.com. [99.241.198.116]) by smtp.gmail.com with ESMTPSA id b11-20020a92c56b000000b002c76a618f52sm6657231ilj.63.2022.04.04.18.49.30 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 04 Apr 2022 18:49:31 -0700 (PDT) From: Peter Xu To: linux-kernel@vger.kernel.org, linux-mm@kvack.org Cc: Mike Kravetz , Nadav Amit , Matthew Wilcox , Mike Rapoport , David Hildenbrand , Hugh Dickins , Jerome Glisse , "Kirill A . Shutemov" , Andrea Arcangeli , Andrew Morton , Axel Rasmussen , Alistair Popple , peterx@redhat.com Subject: [PATCH v8 22/23] mm: Enable PTE markers by default Date: Mon, 4 Apr 2022 21:49:29 -0400 Message-Id: <20220405014929.15158-1-peterx@redhat.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220405014646.13522-1-peterx@redhat.com> References: <20220405014646.13522-1-peterx@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 192C140018 X-Rspam-User: Authentication-Results: imf11.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b="V/dnabp/"; dmarc=pass (policy=none) header.from=redhat.com; spf=none (imf11.hostedemail.com: domain of peterx@redhat.com has no SPF policy when checking 170.10.133.124) smtp.mailfrom=peterx@redhat.com X-Stat-Signature: 9y37o3obtbquufmhebptcp4wcs71ipkk X-HE-Tag: 1649123373-11082 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: Enable PTE markers by default. On x86_64 it means it'll auto-enable PTE_MARKER_UFFD_WP as well. Signed-off-by: Peter Xu --- mm/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mm/Kconfig b/mm/Kconfig index 6e7c2d59fa96..3eca34c864c5 100644 --- a/mm/Kconfig +++ b/mm/Kconfig @@ -911,12 +911,14 @@ config ANON_VMA_NAME config PTE_MARKER bool "Marker PTEs support" + default y help Allows to create marker PTEs for file-backed memory. config PTE_MARKER_UFFD_WP bool "Marker PTEs support for userfaultfd write protection" + default y depends on PTE_MARKER && HAVE_ARCH_USERFAULTFD_WP help