From patchwork Tue Jan 3 16:34:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fenghua Yu X-Patchwork-Id: 13087681 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 47589C46467 for ; Tue, 3 Jan 2023 16:35:22 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B44EF8E0002; Tue, 3 Jan 2023 11:35:21 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id AF55E8E0001; Tue, 3 Jan 2023 11:35:21 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9E4938E0002; Tue, 3 Jan 2023 11:35:21 -0500 (EST) 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 8E98E8E0001 for ; Tue, 3 Jan 2023 11:35:21 -0500 (EST) Received: from smtpin14.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 4E1F440B5A for ; Tue, 3 Jan 2023 16:35:21 +0000 (UTC) X-FDA: 80314038042.14.F215B5E Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by imf12.hostedemail.com (Postfix) with ESMTP id 1747140015 for ; Tue, 3 Jan 2023 16:35:18 +0000 (UTC) Authentication-Results: imf12.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=X1AYSTGJ; spf=pass (imf12.hostedemail.com: domain of fenghua.yu@intel.com designates 192.55.52.151 as permitted sender) smtp.mailfrom=fenghua.yu@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1672763719; 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:in-reply-to:references:references:dkim-signature; bh=rttskHwNS7bvoAzySJiJQp9E5hqonfkK1vQQsJdVSRg=; b=4f5wJ8k9W+D1QU1Ogic6oZCUJHswBL9LUT9hetS+eh4ak7mj61F9VAYgNvDG1ipg0M+uvD KYJb/1ExQMkWGJnUZZIxlhWUjKdE9WlTmEZ4Yx79EY6R0KOEUDzLsswLDFCdf16mY+dDWJ UyiVXieGzB05go5c5/nXS8VcxbrCBKU= ARC-Authentication-Results: i=1; imf12.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=X1AYSTGJ; spf=pass (imf12.hostedemail.com: domain of fenghua.yu@intel.com designates 192.55.52.151 as permitted sender) smtp.mailfrom=fenghua.yu@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1672763719; a=rsa-sha256; cv=none; b=fS8YKIRaTKlnaL6sPmCk3fo33R2yKz7uOBTUkjnO8za9xbB14/txAm/49GQTeitbdTJdF0 PARVWoX7RkNVaGe7F2931mcMEF8Rz7HmOa5y4EpKqlisbn+mwwkEyHOGBvbqPnueEq00Kz C9/3LRWqFiXnhGfu6zxo6zNIj0/1pRI= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1672763719; x=1704299719; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=4e+Yu0GJ5koOwVk9zv2FGtGEfB9W21gLp61PSzE5ouM=; b=X1AYSTGJtmBpg4ItTeCkdu+Is4qHBQcKsWRwHd1vMJ3BC13NSmiKVEHl 2LqbclXCqrDoWd79mcOXK6OROFIjZkV95kviZfeyyModjNns1tJB5rjcG n4x7WYZhWIoDVCSY2+4sgT02u4OMK/aqxTT8tCJtDcmKe72ZMXFFqWPgL 1VzNMYUChnmilX6lxtADXTwl7AC3eHUB4iagpQyQ7xogMBMPiBqpiDLmG O7Y70USU4UPLPsZGArg8JskFpgA+dxIAB9Yl5mqOlBGLhdX7UNk9QT2Zd Lzm195QlDegt+n8erKKS7MtNzDuZhZyj6WH72fnZ/X/sIwvQn39uDULkT g==; X-IronPort-AV: E=McAfee;i="6500,9779,10579"; a="302072329" X-IronPort-AV: E=Sophos;i="5.96,297,1665471600"; d="scan'208";a="302072329" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Jan 2023 08:35:14 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10579"; a="604858519" X-IronPort-AV: E=Sophos;i="5.96,297,1665471600"; d="scan'208";a="604858519" Received: from fyu1.sc.intel.com ([172.25.103.126]) by orsmga003.jf.intel.com with ESMTP; 03 Jan 2023 08:35:14 -0800 From: Fenghua Yu To: "Vinod Koul" , "Dave Jiang" Cc: "Fenghua Yu" , dmaengine@vger.kernel.org, Tony Zhu , Andrew Morton , linux-mm@kvack.org Subject: [PATCH 09/17] mm: export access_remote_vm() symbol Date: Tue, 3 Jan 2023 08:34:57 -0800 Message-Id: <20230103163505.1569356-10-fenghua.yu@intel.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20230103163505.1569356-1-fenghua.yu@intel.com> References: <20230103163505.1569356-1-fenghua.yu@intel.com> MIME-Version: 1.0 X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: 1747140015 X-Stat-Signature: 6p1s1a1ch7yrdxapcw57sg5gjytnxmuz X-Rspam-User: X-HE-Tag: 1672763718-991609 X-HE-Meta: U2FsdGVkX1/OKPKlCQWTrYvsouYVm7AMc4LQsaRnLLv274qcIQ6HSo2hMDudkS+aibaHaxPZP8Etr5Psyj12GFZl3367q/jfJ1H8dDtJNeLIdbrH2W03ylSOb+slViotRVQOtxEK+icTIaAq249eH8CcrHF0F3KmPtjoPVPAAd/n4ez8nvj6MDHa1OJKezKmcflYrItH7DGt5pnWNCwuvzT79USFUl6BStCwiLBC61Xa0Ie73JqcwIuGU1QbmsOU/buiAQFhLfpkpze3ezY/hYWNqhGKgcfOnNFn/+GsIegUQpAYgXPkW3G8g5oN+vA0lXs4s7NTuHbTZiyr+iANqE21nJBQNGIIl7zYcUV17aBCRS+YA+SXUwV9BAauHIOWMpMJR9ZXN4d04PwQgCBDiUvMZnCLDH9QVSMBAnWFEPDdsqOum+5e6yVGDckEhyd4o829MWqv1znHruAzg70Lv9y/Vt+Zd2H/pLCMwdkaJvjDBBOt+O5HWH0KuWd9stAFvk3SYhkufozu7HODtBn8bI6cwnbjz5GZnkYUmWG2B+e0kWuYKFUbQLjLIP2NCP9P/aCWhSw/2/6XVuzQ0UywBCqwJhJkw9xwgj9C0ez3JR6GBHyc4AnTMBTlVfrBIbkl9G/fLuLKSS1cHH+x5X8EmJGFv4Yl7Rbi8lIfOqDqSyuebHvxqElawP5zkMAbI7k+buvPsbyWT0bR+9yMbyWVMjEpngdLFyv0gMDcJDTFxFYAhhAj34XusqQiXNAPw9j4TVJJ3AT6uP5D+GidJk+zWZ7GTCo84uvmI7Pstm4E0Q9y1XMTuBkJwrCBNiA8PjBCIKaoxsXo2BYU1rBfifUMSrnw434Tz1Btqi5k0dGOaZ7vnBRqQfViEgnf5tZm61FCq1742IoR3IF7q/zQR0bIqQghrpRC68ns2VAv0w5TmLudDO4t7mlv9j5il00vSxUH 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: From: Dave Jiang Export access_remote_vm() symbol for driver usage. The idxd driver would like to use it to write the user's completion record that the hardware device is not able to write to due to user page fault. Tested-by: Tony Zhu Signed-off-by: Dave Jiang Co-developed-by: Fenghua Yu Signed-off-by: Fenghua Yu Cc: Andrew Morton Cc: linux-mm@kvack.org --- mm/memory.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/memory.c b/mm/memory.c index aad226daf41b..caae4deff987 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -5579,6 +5579,7 @@ int access_remote_vm(struct mm_struct *mm, unsigned long addr, { return __access_remote_vm(mm, addr, buf, len, gup_flags); } +EXPORT_SYMBOL_GPL(access_remote_vm); /* * Access another process' address space.