Message ID | 20211005012959.1110504-14-Liam.Howlett@oracle.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <SRS0=pyM+=OZ=kvack.org=owner-linux-mm@kernel.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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D52C5C433EF for <linux-mm@archiver.kernel.org>; Tue, 5 Oct 2021 01:35:17 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 763FD610C8 for <linux-mm@archiver.kernel.org>; Tue, 5 Oct 2021 01:35:17 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 763FD610C8 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=oracle.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvack.org Received: by kanga.kvack.org (Postfix) id DE5B9940038; Mon, 4 Oct 2021 21:32:04 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id DBC85940037; Mon, 4 Oct 2021 21:32:04 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C34A0940038; Mon, 4 Oct 2021 21:32:04 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0254.hostedemail.com [216.40.44.254]) by kanga.kvack.org (Postfix) with ESMTP id B0A1B940037 for <linux-mm@kvack.org>; Mon, 4 Oct 2021 21:32:04 -0400 (EDT) Received: from smtpin19.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id A3BA018226D11 for <linux-mm@kvack.org>; Tue, 5 Oct 2021 01:32:03 +0000 (UTC) X-FDA: 78660657726.19.77EF523 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by imf20.hostedemail.com (Postfix) with ESMTP id 28C00D002887 for <linux-mm@kvack.org>; Tue, 5 Oct 2021 01:32:03 +0000 (UTC) Received: from pps.filterd (m0246629.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 19508Mdi004481; Tue, 5 Oct 2021 01:31:29 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2021-07-09; bh=gkR74Hz92KwKaW2epPKPK4AQxShbKVrFIj+NGFDmnXA=; b=BddE6vpIcSoyMU5rldd8aRiY5E1P97ABckZnNsM42rnNd6wqeiajXj0aBCy46Qk9sxG6 wB5wWUP7NClYEuWe1b1uNf3V4FfzdMEMp5ZjAJGbjpqzfy/8E4H1EXSF22cKFH/Y1Jda 5o0LwOG2wLdzxZf4pD2z5tYLwiF2vs7HR/G+dX34Im7AtJvP81whlI8kzy8CFH9ShQRW xB/pLKrVb8KyPOl8D/BjymFw22IUfEAelmeKfhki9XmA0qxeLLXDHQ3FGrOaUToNB9ma JpEqzoytGLWMH8a7PRd7stAQodydULQ3PZQT4+3mF15jyKS63XT8+eyya/ThNvL3hv3E Sw== Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by mx0b-00069f02.pphosted.com with ESMTP id 3bg43dumjf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 05 Oct 2021 01:31:27 +0000 Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.1.2/8.16.1.2) with SMTP id 1951UdGG141634; Tue, 5 Oct 2021 01:30:43 GMT Received: from nam11-bn8-obe.outbound.protection.outlook.com (mail-bn8nam11lp2177.outbound.protection.outlook.com [104.47.58.177]) by userp3020.oracle.com with ESMTP id 3bf16s9dx1-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 05 Oct 2021 01:30:43 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YT8091rCMttNIsbijBQuy033nE9wNgh9tkP0W3m9MUTn4A9d5HwwdZolbD1hSCxQiLpBbzlqiF26V9jq21dC3VqjthzZqbLobksnp2c1C9YTW6NStHMu+re5AChOFPEbIItMmu1J+tR8p7rJ5I4WsaQXarZqYepNaXXN1rNaqJSeaxEzQhsAjHdmCuBrEVRPvoIhDbfhMcR8MvzIS9PRpXqZDuJb/fInsfs0o85J7Sty/M9qJj6t3rCPFSonLiN+r3QpwuzJDWcS6zk6senNW/0Qa7UD+8OfsTUrxMIec37aFKmWTO3+djoCLwzdfTyFM5GYmODmuYKsgd7TA+2+5A== 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=gkR74Hz92KwKaW2epPKPK4AQxShbKVrFIj+NGFDmnXA=; b=D7ftK1+4isZIMrtU9iF9M0nhT4yeNXu3hrbgxa62+JCrSi+2JKZKaNJNAGQvL4FGCMj/MepZIEnyuereGLWFGqLa2nB8qFStju2S+F8a2iUp50TvEiJ3Oy3xos0fEVW9wW4gEVj+nj/trgpwn4SnCQ5ZTpywtZusTRgYEoFD0Ewe3ZgMneYs8WwBww64f9lQA9DiVBvG5pCkrwTm9RtuRHJCOBQNilnrvgA91f/bGETM+1XbUCOoWZnpooop3XdlLfk3GtCE8LcztEPkf0gHn6RYESrvhE6Qlw83tylWXC/qSHBY3OPOpRc5Fs+2NFdb201I5pOmuxqoGmshO+Zcfw== 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=gkR74Hz92KwKaW2epPKPK4AQxShbKVrFIj+NGFDmnXA=; b=rkAbzL/TiUH8VquWhpcfZUdufg2+v/eEgLYb3ET3M8lZlK+Sipd5BN9G0CB737sXNunZRJQOQ28hE3gD26ALs47l0g2zFBduht7tRrsFJFR5S6JRiy05dNt8/c/VUgBhkBeXrJMe/C0nCGdKmtAk+esxoGqZDA6oujyy6Mp3N0Y= Received: from BL0PR10MB3011.namprd10.prod.outlook.com (2603:10b6:208:7e::29) by BLAPR10MB5044.namprd10.prod.outlook.com (2603:10b6:208:326::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4566.15; Tue, 5 Oct 2021 01:30:36 +0000 Received: from BL0PR10MB3011.namprd10.prod.outlook.com ([fe80::6d61:54c2:40f0:93a]) by BL0PR10MB3011.namprd10.prod.outlook.com ([fe80::6d61:54c2:40f0:93a%5]) with mapi id 15.20.4566.017; Tue, 5 Oct 2021 01:30:36 +0000 From: Liam Howlett <liam.howlett@oracle.com> To: "maple-tree@lists.infradead.org" <maple-tree@lists.infradead.org>, "linux-mm@kvack.org" <linux-mm@kvack.org>, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>, Andrew Morton <akpm@linux-foundation.org>, David Hildenbrand <david@redhat.com>, Douglas Gilbert <dgilbert@interlog.com> CC: Song Liu <songliubraving@fb.com>, Davidlohr Bueso <dave@stgolabs.net>, "Paul E . McKenney" <paulmck@kernel.org>, Matthew Wilcox <willy@infradead.org>, David Rientjes <rientjes@google.com>, Axel Rasmussen <axelrasmussen@google.com>, Suren Baghdasaryan <surenb@google.com>, Vlastimil Babka <vbabka@suse.cz>, Rik van Riel <riel@surriel.com>, Peter Zijlstra <peterz@infradead.org> Subject: [PATCH v3 13/66] xen/privcmd: Optimized privcmd_ioctl_mmap() by using vma_lookup() Thread-Topic: [PATCH v3 13/66] xen/privcmd: Optimized privcmd_ioctl_mmap() by using vma_lookup() Thread-Index: AQHXuYiYovmv1g/flUmFu+rJw5XHPA== Date: Tue, 5 Oct 2021 01:30:36 +0000 Message-ID: <20211005012959.1110504-14-Liam.Howlett@oracle.com> References: <20211005012959.1110504-1-Liam.Howlett@oracle.com> In-Reply-To: <20211005012959.1110504-1-Liam.Howlett@oracle.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.30.2 x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 97e87477-4b93-4302-36eb-08d9879fbb8d x-ms-traffictypediagnostic: BLAPR10MB5044: x-microsoft-antispam-prvs: <BLAPR10MB50446B8F074D7684F6DA082DFDAF9@BLAPR10MB5044.namprd10.prod.outlook.com> x-ms-oob-tlc-oobclassifiers: OLM:6108; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: ahJUZX0SOvnEejF2Fo5Ak1qBSMWu0wuf4wqRKH/FvYIBcp6X5ri99fGe89simhWqMVjavpZjHyR9BbG8WzIBwZPtxCV0e47Kg5XrQIxtI3QVAYe2d6r6gTrS6yVNO2PnTUH4U5xumhN+mBnI39QW1aLGEguQABw53Y/0H3koZEZjb2lADydhRamsu/n07bnyV8UJXnZwayBqtmPufBJ+zJEEusE8R/cDs47XigGD2kZzlvQhR6rAgSBJoA6NUZwt3XJkZpTFjMYNvz+a/9auP6SggQF5T82Dg94JPoOaCJsGelj/8iqJbc0MGyqApTxXHJc+U7quT/Ei8M2/2MKETG832pAHrw3hP2UJhD82Q6s0MhsvD5t4o0yojk4lD6BSHyxmg1KtIIwxQMxsZxjgo2x9bF3o+mNl68nRhWyTNqU3eN7gC/jPSnQcev1qEBwqrYUT9dEN/2kzWWRQB34GsvRjKpdVPCC6hdaw0Resc/iSAU/1Nem11HRTMM65+UW9N/klVil/r6ziF0HaZ1UMCE0kbL2r/OA5izc6FD635LUOY42LK+ZSD3U6Op/EIm6Gw9DATGXMDnDViVyRzV0K3u2NBPat2vJIIXp7BEpXFxxowwI1p89pHk+QOUc/yvW+Qw0wEpfjsSLawxgxQzZmKf4SZzz4a4jDMbi6LFepv/61tpkQGKCYjZDT3p93rr6KIUfjZdqb2L4MMNIEXwehNw== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BL0PR10MB3011.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(366004)(6486002)(66446008)(122000001)(26005)(7416002)(2616005)(4326008)(508600001)(1076003)(38100700002)(91956017)(64756008)(66556008)(66946007)(5660300002)(66476007)(44832011)(38070700005)(76116006)(86362001)(110136005)(8676002)(71200400001)(316002)(8936002)(54906003)(2906002)(83380400001)(186003)(6512007)(4744005)(6506007)(36756003);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?q?eqkX/xEHKc8xGhTqny747tN?= =?iso-8859-1?q?Lkz6sKzaLdxdSZ6d8HiB9qjlfux5Qr3hItDLKUb94vY8kIavE41g3uyFMt31?= =?iso-8859-1?q?UGqByLVoCvNpcSEbdgkTjZx3vMOEbFmdSrrA1GWdAcYz0tX6WhRvBMjagOzA?= =?iso-8859-1?q?1vWV+smo6aYerqGxUV8tPUjtIxIw3yNjb8UUY70MTSfzppaJjuhgM82+PNEJ?= =?iso-8859-1?q?weFCCTnTA1i4jn0Ft/ZR5/iEG82ohVIyMHRTfa0KiaDmLXmr2WcikZLygADh?= =?iso-8859-1?q?pKAWNY+2u6APz+gtHQ20CuBBlj0HY2M3u9KrjKofQEo/8Z6M+cOjJi+24PHC?= =?iso-8859-1?q?RjH2Gp7jUT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z36EiLRb8NmL3QfzcmvI?= =?iso-8859-1?q?v3fKOP5L1ysWr4qj0gjaJhCPZ7dMcF+NOm0+fZIVmmSVk7bRnN6mxcLiZkr6?= =?iso-8859-1?q?0vqGm0QQVxprLml1Ebs0MIAIQFQg37O+I+EjIsuBt7zPAqBlb02KKKYe9PJz?= =?iso-8859-1?q?/?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BL0PR10MB3011.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 97e87477-4b93-4302-36eb-08d9879fbb8d X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Oct 2021 01:30:36.4750 (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: MM7ODpdJxdPWiwqZIul+QNxiLh1bpDUfUz434o6kHK0pXmWk1Q9A1fo2gg3AGz9Xs1Wdrng/0mEBDNU79k/dkA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLAPR10MB5044 X-Proofpoint-Virus-Version: vendor=nai engine=6300 definitions=10127 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 adultscore=0 phishscore=0 malwarescore=0 bulkscore=0 mlxlogscore=999 mlxscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2109230001 definitions=main-2110050007 X-Proofpoint-GUID: 7R-avRAXlOkuNzz0WNY3TB88BWwj0X4D X-Proofpoint-ORIG-GUID: 7R-avRAXlOkuNzz0WNY3TB88BWwj0X4D X-Rspamd-Server: rspam01 X-Rspamd-Queue-Id: 28C00D002887 X-Stat-Signature: 7zdm3jjx9tgrepw7d4aaa1ajj6ofzsoo Authentication-Results: imf20.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2021-07-09 header.b=BddE6vpI; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b="rkAbzL/T"; dmarc=pass (policy=none) header.from=oracle.com; spf=none (imf20.hostedemail.com: domain of liam.howlett@oracle.com has no SPF policy when checking 205.220.165.32) smtp.mailfrom=liam.howlett@oracle.com X-HE-Tag: 1633397523-916706 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 |
Introducing the Maple Tree
|
expand
|
diff --git a/drivers/xen/privcmd.c b/drivers/xen/privcmd.c index 720a7b7abd46..5f903ae9af7e 100644 --- a/drivers/xen/privcmd.c +++ b/drivers/xen/privcmd.c @@ -282,7 +282,7 @@ static long privcmd_ioctl_mmap(struct file *file, void __user *udata) struct page, lru); struct privcmd_mmap_entry *msg = page_address(page); - vma = find_vma(mm, msg->va); + vma = vma_lookup(mm, msg->va); rc = -EINVAL; if (!vma || (msg->va != vma->vm_start) || vma->vm_private_data)