Message ID | 20231212073803.3233055-1-vivek.kasireddy@intel.com (mailing list archive) |
---|---|
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 5B4D7C4332F for <linux-mm@archiver.kernel.org>; Tue, 12 Dec 2023 08:01:32 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 77AA16B0294; Tue, 12 Dec 2023 03:01:31 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 72C376B0295; Tue, 12 Dec 2023 03:01:31 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5F1126B0296; Tue, 12 Dec 2023 03:01:31 -0500 (EST) 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 4BF3B6B0294 for <linux-mm@kvack.org>; Tue, 12 Dec 2023 03:01:31 -0500 (EST) Received: from smtpin03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 1D4E8A0959 for <linux-mm@kvack.org>; Tue, 12 Dec 2023 08:01:31 +0000 (UTC) X-FDA: 81557421582.03.2AE1F79 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.24]) by imf17.hostedemail.com (Postfix) with ESMTP id 6203140025 for <linux-mm@kvack.org>; Tue, 12 Dec 2023 08:01:27 +0000 (UTC) Authentication-Results: imf17.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=IvXd3iCQ; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf17.hostedemail.com: domain of vivek.kasireddy@intel.com designates 134.134.136.24 as permitted sender) smtp.mailfrom=vivek.kasireddy@intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1702368088; 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-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=Fn4VrL9PT1xPc09AnfydK817U062UuA+fwc6MWqGemo=; b=b5MFJ8wtV+YlAvYp1XTtQOAA/BrGw48tJUDokahBc6S4T4dhu2l4Catrpctg5JJW3vDVHD Xm13rfoUQ0KnLnpT2mGRQU3Wo+LglDm77ff5aQ9XvYsFLIYBjYe9DQnbgJHsyQRYeN1CLv 7EK9v49Z9AVpqmp2jy2h16SLGVScpT8= ARC-Authentication-Results: i=1; imf17.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=IvXd3iCQ; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf17.hostedemail.com: domain of vivek.kasireddy@intel.com designates 134.134.136.24 as permitted sender) smtp.mailfrom=vivek.kasireddy@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1702368088; a=rsa-sha256; cv=none; b=d/QeTpQzcGBQ0+4qgTquJyMT7Y8J2W2oxXgYqgIyOSfKSiZ/BqYOgsFsZDBYrofQepP8du 8nPP880EKu0K8Hc2nBJ2to1faSO0MSjl1yYzZoiqGRt3qK84Szadmcoma42FcAy20cs0OE 4je5wcGl94IHXLx+oMVRfRE5Jt3Ksb4= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1702368087; x=1733904087; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=7Qgh4kMsznhcdHeDs93S+cQ+GO/HtIrx/+OgoDUQ/nc=; b=IvXd3iCQSToOsgU2KgnVhfb9gRzh1qqXSy/XjI51SXCuX5L1w+oeHBLp OI+i1wGHtMY1WMBHleK41f0Z0mZNDcjJrNekSAc0WIco3ty9tPeSe64lW ivX86KL7N7UTzXLizxaiR4+DByDK90HzF1rO+cUbmhMZMg8mvgNBR1CJD i9pfhk8ujJxbs5L5zdx0cDiIKT+0EDp+0OuC+xgKyNWhPSGt26GIXUaV9 PA1NBxSzVWdrhOW9VMTBO9jWuTwyjHY9V2JT9P1UWTamJRHzQ1c1F8qu6 h16TeDtOUzJuCGzZBrtaGe+NEtjm1K0AGGXAeC6b8XN9NKwUWd8HeaMzn A==; X-IronPort-AV: E=McAfee;i="6600,9927,10921"; a="397553934" X-IronPort-AV: E=Sophos;i="6.04,269,1695711600"; d="scan'208";a="397553934" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Dec 2023 00:01:24 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10921"; a="802376315" X-IronPort-AV: E=Sophos;i="6.04,269,1695711600"; d="scan'208";a="802376315" Received: from vkasired-desk2.fm.intel.com ([10.105.128.132]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Dec 2023 00:01:24 -0800 From: Vivek Kasireddy <vivek.kasireddy@intel.com> To: dri-devel@lists.freedesktop.org, linux-mm@kvack.org Cc: Vivek Kasireddy <vivek.kasireddy@intel.com>, David Hildenbrand <david@redhat.com>, Christoph Hellwig <hch@infradead.org>, Daniel Vetter <daniel.vetter@ffwll.ch>, Mike Kravetz <mike.kravetz@oracle.com>, Hugh Dickins <hughd@google.com>, Peter Xu <peterx@redhat.com>, Jason Gunthorpe <jgg@nvidia.com>, Gerd Hoffmann <kraxel@redhat.com>, Dongwon Kim <dongwon.kim@intel.com>, Junxiao Chang <junxiao.chang@intel.com> Subject: [PATCH v7 0/6] mm/gup: Introduce memfd_pin_folios() for pinning memfd folios (v7) Date: Mon, 11 Dec 2023 23:37:57 -0800 Message-Id: <20231212073803.3233055-1-vivek.kasireddy@intel.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 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0/bjeUfccQIKAiBcsE vxWSoZJ7 HwndaRW23kd+BqCpOyGiCWRCNiy8wr7goQglcYAaV0J2V+QbaBgdpeWsRw3du8LqXan1YsX3pRjvxyo93P4tOzxGuEVXMX9wHDjNy3YKEfN5aO9Yw+z+IEEjwUNsleakZEWvf04wIePHG2+uvgHKmfa5UepoX5mNJHl8Ld/C/q2CRpqo4WXlsAovs3neLIpqGzssyxHsRfMBMbHnUtF2zHukweCl65KIpYGXMmHOyLeQynJYBwPo0YyNLF7NU1Ds26UwOk735lJJT45sCAibrw/pwAqn9tJIcxxdh4Q2EKhxK8k8z/jKnpFv1HS9GPvn4B/HkAerO1XnyzY5do11iZQvrYsPCUKWJiIs1IP2ctkC6UxQ= 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 |
mm/gup: Introduce memfd_pin_folios() for pinning memfd folios (v7)
|
expand
|
On 12.12.23 08:37, Vivek Kasireddy wrote: > The first two patches were previously reviewed but not yet merged. > These ones need to be merged first as the fourth patch depends on > the changes introduced in them and they also fix bugs seen in > very specific scenarios (running Qemu with hugetlb=on, blob=true > and rebooting guest VM). > > The third patch introduces memfd_pin_folios() API and the fourth > patch converts udmabuf driver to use folios. The fifth patch shows > how the udmabuf driver can make use of the new API to longterm-pin > the folios. The last patch adds two new udmabuf selftests to verify > data coherency after potential page migration. > We should probably get started with the first two patches, they are independent of the remaining discussion regarding memfd_pin_folios().