From patchwork Tue Jan 3 16:29:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fenghua Yu X-Patchwork-Id: 13087659 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 C1D78C3DA7D for ; Tue, 3 Jan 2023 16:29:34 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 185878E0002; Tue, 3 Jan 2023 11:29:34 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 1367D8E0001; Tue, 3 Jan 2023 11:29:34 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id F3FDF8E0002; Tue, 3 Jan 2023 11:29:33 -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 E459E8E0001 for ; Tue, 3 Jan 2023 11:29:33 -0500 (EST) Received: from smtpin20.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 9DA38AAF29 for ; Tue, 3 Jan 2023 16:29:33 +0000 (UTC) X-FDA: 80314023426.20.F82EF6C Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by imf22.hostedemail.com (Postfix) with ESMTP id 5633FC000C for ; Tue, 3 Jan 2023 16:29:31 +0000 (UTC) Authentication-Results: imf22.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=Bvx2iq0G; spf=pass (imf22.hostedemail.com: domain of fenghua.yu@intel.com designates 192.55.52.120 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=1672763371; 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=g/eGdw9BqArFi/NrXhn3KomL2aJw5z8ARpQYCR3dbR8WAeZ35tGWyatNfVYcBAdJVlGdJV 0ZEynT/j48IbyM4/S7biOHKPXv8q9Q4ll9P/MK5y06SMthSbq6NZPl2UByfi0vVfuIPoro iksoyE0V5ktmDSehUQVQQ2DSD6fe3pc= ARC-Authentication-Results: i=1; imf22.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=Bvx2iq0G; spf=pass (imf22.hostedemail.com: domain of fenghua.yu@intel.com designates 192.55.52.120 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=1672763371; a=rsa-sha256; cv=none; b=4uVvU/VNB9TmSe2WyW4v0YYwsdWZeLuJ4BbgrJ8uaEmBi4/sSvB29qAq/Gb5BZu41E/O9P HMVU6QA0IQZTVDcTF1WuIZixX7e1+bp6kbW1OmRY/nN9VgILnExmt7X420LGvd7Zu1o28t SgbsvwjRqvs9EjSCVsc2N+RRfp3aY3s= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1672763371; x=1704299371; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=4e+Yu0GJ5koOwVk9zv2FGtGEfB9W21gLp61PSzE5ouM=; b=Bvx2iq0G2zJ4ZLxHqFC37BJ7oOycDz7X1kf+KQ5uiiABmREb8RjbI7BU w8fNI57o5lRCY5qvEpUpWV6oJLGSr3pKAYEAwR6BBB2vGpZvTASwZ+KdR wXM+MRLTmbhGR6Lucgnx3C3JyCUhnzDb3xHcZAJ5hpNCcmyqmhjLasXaj EOqnhTlfFlwySjW7sH+6M0qO2PBuWQGmcIJO7aPfWJ8ESCVYWObJtsa4L jX1EH9yNzQE6+z9WtlZtlVzLWcAKYSdHYtP/3sn4Wx16Z/611VqgrHEH+ VILwCwqrxrNHWvDYCFr7R4Op1jGDNGOJtV8YARzIiIXQvQyixL8aHzKbv Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10579"; a="320406131" X-IronPort-AV: E=Sophos;i="5.96,297,1665471600"; d="scan'208";a="320406131" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Jan 2023 08:29:25 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10579"; a="983608225" X-IronPort-AV: E=Sophos;i="5.96,297,1665471600"; d="scan'208";a="983608225" Received: from fyu1.sc.intel.com ([172.25.103.126]) by fmsmga005.fm.intel.com with ESMTP; 03 Jan 2023 08:29:25 -0800 From: Fenghua Yu To: "Vinod Koul" , devejiang@kvack.org Cc: "Fenghua Yu" , Dave Jiang , Tony Zhu , Andrew Morton , linux-mm@kvack.org Subject: [PATCH 09/17] mm: export access_remote_vm() symbol Date: Tue, 3 Jan 2023 08:29:12 -0800 Message-Id: <20230103162920.1569002-10-fenghua.yu@intel.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20230103162920.1569002-1-fenghua.yu@intel.com> References: <20230103162920.1569002-1-fenghua.yu@intel.com> MIME-Version: 1.0 X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: 5633FC000C X-Stat-Signature: 6p1s1a1ch7yrdxapcw57sg5gjytnxmuz X-Rspam-User: X-HE-Tag: 1672763371-820661 X-HE-Meta: U2FsdGVkX1/Qzefc4wnIOxRiRxLkJga+E5kmH3PFcNidrkQ55xC0+NOaAu5qHLNj59NGfSI1sJK/eJs3xIiXtEslIAbkTbAKEvzd0F9e0BgBZiptrJD7pZYocTBhmaKydwvT8BeyK4wEfHGb+lfbkHS4yJIvy24L16Zfz41EqE4Q8x581sifRxej5k3R91BE0PPgcoDIz2HUEMc9GYbL2l8tOndsV7Y0cJWYcs80Ekx3o/2wqCBI9ev0wNf1pso0yQtkTll3R8fSXNqrvlD8wkpEn34hteOz+vHvRaOhQBJ47k0OhZaXQPAY2d1CdSqE8RPyIZaX5QgJQqk5iwPsDKuUr/lOvqUmKa+qB01oO+HpVeD8m+MHHSHrDFehuT0IJ3ZnBmM6nqStR7+F1v8AadDNPXr3V4m9Zmn4V3YjYFE99QJysEf22FZESGQnX49hGv7/vsG/Y3KV1sR/+1iVCaOA2ENrWDChwbFpP87pGeRxzZYdJ15QnAqv4b1txgyPTe0tgx1tdQk3uI+SdE2fYjBkVOpUFVK0VCZ1L29fYQ94MqlaVLwDCUl3p4FmanV88EnTg6/++0mewC9UVJ6HSoYOcMdmT7ysHuMyo2FpUUx84+qdcCWxe0B3Fhrj7/2L8DUBp7KCyMBlSrxgFUU56MdQUbGQUlgroooBdNIXp48v1btq3y0/FHCweeDiyrqN2oeLYv+fQnSSDBoqot24HPNEpispImL+SUgbMquzsUf/zj/Ht7vSE3tcWfdmdbBqUVuBCcGnVshUhoQmrU6PkgcUGQjjIdcQ1pYwf0hURaHYK4VGEdVj1LpiZF5quIfXuFLqPDvzMU/omULnlTqw12N34ljIgb6qaoQH71bdOJ4JCfaFFNtXRMHquYobazPYYLgXwaEn8jJGDap6wT+NN84i7UY2xxbTo4bhsCiwjO0BjBuJhj1WzPhAeqoKLPCz 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.