Message ID | a1bc313a3f50f085ab9fcd9826b3cdc20bc15269.1682453344.git.khalid.aziz@oracle.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 A9FC8C77B7C for <linux-mm@archiver.kernel.org>; Wed, 26 Apr 2023 16:50:31 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3D5916B00FF; Wed, 26 Apr 2023 12:50:29 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 3110F6B0100; Wed, 26 Apr 2023 12:50:29 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0EFC56B0101; Wed, 26 Apr 2023 12:50:29 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id F1FCE6B00FF for <linux-mm@kvack.org>; Wed, 26 Apr 2023 12:50:28 -0400 (EDT) Received: from smtpin12.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id AAF9314030F for <linux-mm@kvack.org>; Wed, 26 Apr 2023 16:50:28 +0000 (UTC) X-FDA: 80724130536.12.73F7E13 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by imf20.hostedemail.com (Postfix) with ESMTP id 4A5751C0015 for <linux-mm@kvack.org>; Wed, 26 Apr 2023 16:50:25 +0000 (UTC) Authentication-Results: imf20.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=NGCXgb+M; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=N2ly96no; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf20.hostedemail.com: domain of khalid.aziz@oracle.com designates 205.220.165.32 as permitted sender) smtp.mailfrom=khalid.aziz@oracle.com; dmarc=pass (policy=none) header.from=oracle.com ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1682527825; 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:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=2a9Cp+TU2cZIEMZOzlR4LYSra+7XU34K7asDIdEpMes=; b=S7vRuaZ+LnDqsQ8IFtB39yywBFty0OXlaG6/5DFr8/pTZG2iO4oCyttpXQ5zvab8SpMBOT 95tWP8Jl+wKMRO20GMODvfjYkY0SOznmTj8ltcaKa81XisP9ysBWveIukPGjxQgtX5obfw er7T3IXSexVbyN650l5BELyddV73R/w= ARC-Authentication-Results: i=2; imf20.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=NGCXgb+M; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=N2ly96no; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf20.hostedemail.com: domain of khalid.aziz@oracle.com designates 205.220.165.32 as permitted sender) smtp.mailfrom=khalid.aziz@oracle.com; dmarc=pass (policy=none) header.from=oracle.com ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1682527825; a=rsa-sha256; cv=pass; b=G3YsCsQyBb9aSJr0onGangErY7JrV9zuanEjsZjeH/5U4lTE9VQsfv95MTrClBnvmBzg9s de9vsOOy2PITUlrDnzpZqHyDDWLkgbDhU4Kr+EGNhqY35oU+1RTNu4O4QkeD03qEXK2ZPe tssNMavckB+SoIAoDGAuCj9ss6ienOA= Received: from pps.filterd (m0246617.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 33QEiVTx003882; Wed, 26 Apr 2023 16:50:00 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : content-transfer-encoding : content-type : mime-version; s=corp-2023-03-30; bh=2a9Cp+TU2cZIEMZOzlR4LYSra+7XU34K7asDIdEpMes=; b=NGCXgb+MRUoVK5+aXnudwcAuFgBoxK2Vv92ciEsSjMDeGzGEf6c6iZ3XBANZTV4Mb8rh 0SxCi3B4fhk4Fcthvk75XxkOkYvfImNYxwET3RPXP3S+0uNCg+pwIhb7KP3uV2PM0CRk F5oFn6w4S5KFQpZKSxflci29pBLOI1aVCRhBuB9LHfQMZpK//aEAWMPHHFux/T6ZqjZu 2xITvJNVpMDBU45N8vWmmDuBsKgQ19IhHm2TpW27+5etBbe/eHtuP1YjKrkXdRQd2KKx jLr47mca6qk7wI3tLo1UbFtVXV6yTFLpWleGwFqJ6yfuW7dlpWRHZw2/DECgOLqzcu4Z NA== Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3q484usxpc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 26 Apr 2023 16:50:00 +0000 Received: from pps.filterd (phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 33QFROBF032610; Wed, 26 Apr 2023 16:49:59 GMT Received: from nam02-sn1-obe.outbound.protection.outlook.com (mail-sn1nam02lp2041.outbound.protection.outlook.com [104.47.57.41]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3q4618dqs0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 26 Apr 2023 16:49:59 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Xne7v8a8Nw2TLLoKImiN80dLoIzHNgHf/S3n7Mf17YwvUNpADqAriV0gRWk4uiznEQDlI+q65l3fyPGBWptdSGrLif3kMVNT2M33SEv4Fkdiju/QmQwh7e6taWvgglhxH1Oc8wf2oy+j5ZzkzZZH6gJzr8jCdSm/Z6DjRakHY4BJb/PrruUe+CQCc6KmRP/z5BBLt38+om6yq4InzPqF5voOubT76zad/Fie+2fddWs2fPIJ9Th6ueBnL+NW17lcnd6dFv/XJuoUYNWDhJapaOps44NjYHy6ZCyl9YtQ0gz99o71MNbYk2dvuMkWw8jhOS82wpg3z2MY81gaIFMJtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=2a9Cp+TU2cZIEMZOzlR4LYSra+7XU34K7asDIdEpMes=; b=GNK9voBDVVzPwUReSIy1gRgzvpPPAYxjcKA8jd6vweDlOO+gUbMR51wSV47INUlBgoaVRrAOqFPj1GaKEsWuDTNg6vT2UEKA2iSlGplNdqe76VBoFl61QgocpMDW8xT+Hvf+ILHG6c+w+HZ5hurVMqKH4IIhTNbtj2j2JXZkXNt1eFjmKgSQ8hj6ukiYFCN9fUlgFQvIUXG3RNrNhCDmY/a5n/ywrodT0CYPzyz2yomS+WQLt8sjGOY9Rgwukvz6TqJpjNZq2iud+PqAr1jujSdZad8gltXAPXNyVlpGBM1BZkWUY1zNUq15LtkFhIZnEPTuBfq8sHMA/Z6qf6/2nw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=2a9Cp+TU2cZIEMZOzlR4LYSra+7XU34K7asDIdEpMes=; b=N2ly96noNEXkGS/R69/NOo58pdqUbIQ1kiyAOnR+ohYeTeyUtX4NqKeAhegG5CHfh3XmzPjsWmUYmOxKY+SQny7YbOVme0H2jtjp506EtuMtVH6grkJSTIavYeMAF1CQWcIoW9h/GgjHMzGZirvv7COwjTXP/vxpI2T62jYOlb8= Received: from CH3PR10MB6810.namprd10.prod.outlook.com (2603:10b6:610:140::15) by IA0PR10MB6913.namprd10.prod.outlook.com (2603:10b6:208:433::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6340.21; Wed, 26 Apr 2023 16:49:56 +0000 Received: from CH3PR10MB6810.namprd10.prod.outlook.com ([fe80::ba49:e5dd:6a80:37ae]) by CH3PR10MB6810.namprd10.prod.outlook.com ([fe80::ba49:e5dd:6a80:37ae%5]) with mapi id 15.20.6340.021; Wed, 26 Apr 2023 16:49:56 +0000 From: Khalid Aziz <khalid.aziz@oracle.com> To: akpm@linux-foundation.org, willy@infradead.org, markhemm@googlemail.com, viro@zeniv.linux.org.uk, david@redhat.com, mike.kravetz@oracle.com Cc: Khalid Aziz <khalid.aziz@oracle.com>, andreyknvl@gmail.com, dave.hansen@intel.com, luto@kernel.org, brauner@kernel.org, arnd@arndb.de, ebiederm@xmission.com, catalin.marinas@arm.com, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, mhiramat@kernel.org, rostedt@goodmis.org, vasily.averin@linux.dev, xhao@linux.alibaba.com, pcc@google.com, neilb@suse.de, maz@kernel.org Subject: [PATCH RFC v2 1/4] mm/ptshare: Add vm flag for shared PTE Date: Wed, 26 Apr 2023 10:49:48 -0600 Message-Id: <a1bc313a3f50f085ab9fcd9826b3cdc20bc15269.1682453344.git.khalid.aziz@oracle.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <cover.1682453344.git.khalid.aziz@oracle.com> References: <cover.1682453344.git.khalid.aziz@oracle.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: DS7PR03CA0098.namprd03.prod.outlook.com (2603:10b6:5:3b7::13) To CH3PR10MB6810.namprd10.prod.outlook.com (2603:10b6:610:140::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH3PR10MB6810:EE_|IA0PR10MB6913:EE_ X-MS-Office365-Filtering-Correlation-Id: 108f3ebd-3d4a-49e1-be5e-08db467643f5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Db7h8TxMJNjWJfalmBZWrBafvgTmOc7gXlVIC/+kpu4zOv3gmNGnwzsKAc7fjcFv0AV4bcvYOF2r2IdfQ6GSpMccq4AUfVNAAT9UtceSPpUDz6N/J5+97rrDpcNzNBHfc+UuKVvQPzEzP5PVVIvESQ2QJY7hYYDCiL07mmb2a49JOfJSqOlcf8Qe5c9nbK5TLMVrj6mvKrQOr+yGK3xeX8Dd/JeRmmSXf/IjtKeyJ1J9We94qdXuD67FJ8awkRrQl34Qs4+TCADq7trKwiyvKjfPDg+ltsou969J5lLe7rJiipbghKJ2HTa9nFLP4ksbawU0YsiZ7YGwtO+HDe50RD7raKMf9pw/aJ+8Z6LTGZ1UolTFTpbkB/Dggy8SSrNXY4cL7bJ7F20Ef7aMekmnBvNMH9Txz+7ofkYotTJEPE1vXFx7SLJdh6Om4nWV/2vDaxhCKO4RdipcHxysPePLFRPDwttGrZqaJFRXrI9qgHZ1sfJzS1trrVOw4eLPvyrYeNnceT95onnAUT0Tqu+kYgGRNSO/yZ6MXvxY1UAOeNwyz9/B/lU6i9ebIyBX+u5H X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CH3PR10MB6810.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(366004)(39860400002)(376002)(136003)(396003)(346002)(451199021)(6666004)(478600001)(83380400001)(2616005)(6506007)(186003)(36756003)(26005)(6512007)(38100700002)(86362001)(6486002)(41300700001)(316002)(66556008)(66946007)(66476007)(7416002)(4326008)(6636002)(2906002)(44832011)(8676002)(8936002)(5660300002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: NwUyEbmQ3OSVXRgkFn67u/YIvNI4qI4/Eb8LqLaCzjp9k82NV33Bi86ZJMxCtKl/HTFe6H2t/+zj8m9aL2HgZ+ibUYa5gLj+JvfTZgx4fg56fxnjIau9YaUKd3beic2Kr9Czujfn9Gedet5N6NjCF0PfAk4DKsVnjOKuTZXSMJ7zfGneelID0+fRJpv6sbcgsLuk84wLLOgREWVTL+RQV5KcJBa8lXA1UYi321lSqLLArIvzSqUdLDCdLqdDqHXiFI5rnss5pJ7oIk94gaQ8HVaZGdVVd6yBWH/rmcNGkCGxtGTABEKXbqyIcPAKao7kGPgjBr6ozomWTjSgBFT/U/onWcpenYQuuT56hqTQJ5S1LKhloncGZNYBX0pOSw3cDcEWWPdtwnEmHWgZ4gwrVZQ6MOrZ9kOt5OCfExUfiQV+Y2rL62dHkzFzu1K5dCjZ8KdePg3bU5I+qcBIGWVQ7Xh0X/195CEmAjQ3JH/JWeXX71NN1s7bTHjywrcBeqMwtD2XeIcJYInLk9G51+c1IQpeFiwHci+2eW8Spqf55V690m2mCeUYUGTGKqML4InisxccRagdeTsBevla/uHtLmCmAzkdkqM7uXz96syaYVxiayCW21r74BiCQIq62lNDeNHLSGRRcc4taNkXdepA6my/NkuWAN6tUBsvg3+eI1fn4/YvEOfcvJBAANxjpPGDyX+sn+BwALItKuCAVtSwxS385H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d/7ASjFLPpzaYuCYuyMUBcucnHZtQrCUq64XOzD3KAD1MNG5FXRUl8T2kRKxRWyHhvgSoOramwlQW20VSdObu/kFTwGLHW183voch+74ZTmK1CrTjpUzVNXq7Un4tIQAN X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 108f3ebd-3d4a-49e1-be5e-08db467643f5 X-MS-Exchange-CrossTenant-AuthSource: CH3PR10MB6810.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Apr 2023 16:49:56.6046 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: rgoIJBTgt795gDaTidhQEU1K6uP+vNhFJJFVKn2y/41E0PjUS2HB0lG10ucFYzQpBsNq279c+mRxBJcA7MHWiw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA0PR10MB6913 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-04-26_08,2023-04-26_03,2023-02-09_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 mlxscore=0 phishscore=0 mlxlogscore=641 adultscore=0 suspectscore=0 malwarescore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2304260148 X-Proofpoint-GUID: 9VjU5Vai42hnSpoIwODJyFWAqxNiSaGt X-Proofpoint-ORIG-GUID: 9VjU5Vai42hnSpoIwODJyFWAqxNiSaGt X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 4A5751C0015 X-Rspam-User: X-Stat-Signature: x9ar971jwoj1ztter9mo4mmxnuerxp5j X-HE-Tag: 1682527825-820862 X-HE-Meta: U2Fsd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Te6/idr9S8e4njCDs+I1JwZklnNoUisk4Sz439Gum2ycRv1ntYDaktthkmk8TD3smzbkJ5XlaCtQ+oYrnleEf+Pu5x1t0r084myA++duy+mW8fKUZsFqiOAWanqTebK3q6YH8Am9fhUxV5QPMRpRV1C2sUhcV7wSo4KjdavoMrhfkXn00xYCXelaAvP6ixIMHbjrgwqk9vs8yXlzAqYXYgk0SbzipNfTqnBoK5OZXoZi9GYuC1pPs3kCtpflq+oChC8wNvLrfHLxi+9QcLIlNWTTRgfzl2bHpw88HbuiJP4SmEx3jN0lei1ysNT4TqydWHBOzytmzz0lFs0SW8w1kvB41qHK/ezdswEVN1uyD0w== 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 |
Add support for sharing page tables across processes (Previously mshare)
|
expand
|
diff --git a/include/linux/mm.h b/include/linux/mm.h index 1f79667824eb..539becab551a 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -326,11 +326,13 @@ extern unsigned int kobjsize(const void *objp); #define VM_HIGH_ARCH_BIT_2 34 /* bit only usable on 64-bit architectures */ #define VM_HIGH_ARCH_BIT_3 35 /* bit only usable on 64-bit architectures */ #define VM_HIGH_ARCH_BIT_4 36 /* bit only usable on 64-bit architectures */ +#define VM_HIGH_ARCH_BIT_5 37 /* bit only usable on 64-bit architectures */ #define VM_HIGH_ARCH_0 BIT(VM_HIGH_ARCH_BIT_0) #define VM_HIGH_ARCH_1 BIT(VM_HIGH_ARCH_BIT_1) #define VM_HIGH_ARCH_2 BIT(VM_HIGH_ARCH_BIT_2) #define VM_HIGH_ARCH_3 BIT(VM_HIGH_ARCH_BIT_3) #define VM_HIGH_ARCH_4 BIT(VM_HIGH_ARCH_BIT_4) +#define VM_HIGH_ARCH_5 BIT(VM_HIGH_ARCH_BIT_5) #endif /* CONFIG_ARCH_USES_HIGH_VMA_FLAGS */ #ifdef CONFIG_ARCH_HAS_PKEYS @@ -372,6 +374,12 @@ extern unsigned int kobjsize(const void *objp); # define VM_MTE_ALLOWED VM_NONE #endif +#ifdef CONFIG_ARCH_USES_HIGH_VMA_FLAGS +#define VM_SHARED_PT VM_HIGH_ARCH_5 +#else +#define VM_SHARED_PT VM_NONE +#endif + #ifndef VM_GROWSUP # define VM_GROWSUP VM_NONE #endif diff --git a/include/trace/events/mmflags.h b/include/trace/events/mmflags.h index 9db52bc4ce19..26f751e76c46 100644 --- a/include/trace/events/mmflags.h +++ b/include/trace/events/mmflags.h @@ -194,7 +194,8 @@ IF_HAVE_VM_SOFTDIRTY(VM_SOFTDIRTY, "softdirty" ) \ {VM_MIXEDMAP, "mixedmap" }, \ {VM_HUGEPAGE, "hugepage" }, \ {VM_NOHUGEPAGE, "nohugepage" }, \ - {VM_MERGEABLE, "mergeable" } \ + {VM_MERGEABLE, "mergeable" }, \ + {VM_SHARED_PT, "sharedpt" } \ #define show_vma_flags(flags) \ (flags) ? __print_flags(flags, "|", \ diff --git a/mm/internal.h b/mm/internal.h index 7920a8b7982e..4d60d2d5fe19 100644 --- a/mm/internal.h +++ b/mm/internal.h @@ -1042,4 +1042,9 @@ struct vma_prepare { struct vm_area_struct *remove; struct vm_area_struct *remove2; }; + +static inline bool vma_is_shared(const struct vm_area_struct *vma) +{ + return vma->vm_flags & VM_SHARED_PT; +} #endif /* __MM_INTERNAL_H */