From patchwork Thu Sep 14 12:58:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Liu X-Patchwork-Id: 9953111 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0E47A60317 for ; Thu, 14 Sep 2017 13:31:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 092A628CD3 for ; Thu, 14 Sep 2017 13:31:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F243928E1A; Thu, 14 Sep 2017 13:31:11 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6C22128CD3 for ; Thu, 14 Sep 2017 13:31:11 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dsUCY-0008GU-Hj; Thu, 14 Sep 2017 13:29:06 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dsUCW-0008Ea-Vj for xen-devel@lists.xenproject.org; Thu, 14 Sep 2017 13:29:05 +0000 Received: from [85.158.143.35] by server-11.bemta-6.messagelabs.com id FC/24-03616-0248AB95; Thu, 14 Sep 2017 13:29:04 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprAIsWRWlGSWpSXmKPExsXitHSDva58y65 Ig1t/1S2+b5nM5MDocfjDFZYAxijWzLyk/IoE1ozOPa+ZCk5yVnS8e8LUwDiJo4uRk0NCwF/i 1OGzLCA2m4CyxM/OXjYQW0RAT6LpwHPGLkYuDmaBOYwSU+d2MYIkhAU8JN7sagAq4uBgEVCVu HvWAMTkFbCU6GqUhRgpL7Gr7SIriM0JEv7wkgnEFhKwkOi9tJ8dwlaQ6Jh+DCzOKyAocXLmE7 ATmAUkJA6+eME8gZF3FpLULCSpBYxMqxg1ilOLylKLdA0N9ZKKMtMzSnITM3N0DQ3M9HJTi4s T01NzEpOK9ZLzczcxAkOHAQh2MH5aFnCIUZKDSUmUd6/uzkghvqT8lMqMxOKM+KLSnNTiQ4wy HBxKErxnm3ZFCgkWpaanVqRl5gCDGCYtwcGjJMJ7HyTNW1yQmFucmQ6ROsWoy9Fx8+4fJiGWv Py8VClxXu1moCIBkKKM0jy4EbCIusQoKyXMywh0lBBPQWpRbmYJqvwrRnEORiVh3ssgq3gy80 rgNr0COoIJ6Igzp3eAHFGSiJCSamAsP/r27aGSqGmVQcfiHJ/oMjco/eT/7CygGtO7WXtDcWr En+/zdINyWNQaZLqd90zKMFObZu4ZobyO663gle+eHddtz7HtmhtW+Upzjf8VPrvclgXHVPje 2OjH6ri9u9bo2pAjGlfxozdoAtfv0x6GrmfM2+cf8jMV3jHBlv1fiPcd6cLnp5RYijMSDbWYi 4oTAe/wZf+jAgAA X-Env-Sender: prvs=423b67c62=wei.liu2@citrix.com X-Msg-Ref: server-10.tower-21.messagelabs.com!1505395739!76223780!3 X-Originating-IP: [66.165.176.63] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni42MyA9PiAzMDYwNDg=\n, received_headers: No Received headers X-StarScan-Received: X-StarScan-Version: 9.4.45; banners=-,-,- X-VirusChecked: Checked Received: (qmail 44282 invoked from network); 14 Sep 2017 13:29:03 -0000 Received: from smtp02.citrix.com (HELO SMTP02.CITRIX.COM) (66.165.176.63) by server-10.tower-21.messagelabs.com with RC4-SHA encrypted SMTP; 14 Sep 2017 13:29:03 -0000 X-IronPort-AV: E=Sophos;i="5.42,393,1500940800"; d="scan'208";a="447841042" From: Wei Liu To: Xen-devel Date: Thu, 14 Sep 2017 13:58:48 +0100 Message-ID: <20170914125852.22129-20-wei.liu2@citrix.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170914125852.22129-1-wei.liu2@citrix.com> References: <20170914125852.22129-1-wei.liu2@citrix.com> MIME-Version: 1.0 Cc: George Dunlap , Andrew Cooper , Wei Liu , Jan Beulich Subject: [Xen-devel] [PATCH v5 19/23] x86/mm: export get_page_light via asm-x86/mm.h X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP It is going to be needed by common x86 mm code and pv mm code. Signed-off-by: Wei Liu --- xen/arch/x86/mm.c | 2 +- xen/include/asm-x86/mm.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/xen/arch/x86/mm.c b/xen/arch/x86/mm.c index f9cc5a0f6f..c3a26fe03d 100644 --- a/xen/arch/x86/mm.c +++ b/xen/arch/x86/mm.c @@ -1955,7 +1955,7 @@ int get_page(struct page_info *page, struct domain *domain) * acquired reference again. * Due to get_page() reserving one reference, this call cannot fail. */ -static void get_page_light(struct page_info *page) +void get_page_light(struct page_info *page) { unsigned long x, nx, y = page->count_info; diff --git a/xen/include/asm-x86/mm.h b/xen/include/asm-x86/mm.h index fbb98e80c6..1f62155d56 100644 --- a/xen/include/asm-x86/mm.h +++ b/xen/include/asm-x86/mm.h @@ -363,6 +363,7 @@ int put_old_guest_table(struct vcpu *); int get_page_from_l1e( l1_pgentry_t l1e, struct domain *l1e_owner, struct domain *pg_owner); void put_page_from_l1e(l1_pgentry_t l1e, struct domain *l1e_owner); +void get_page_light(struct page_info *page); static inline bool get_page_from_mfn(mfn_t mfn, struct domain *d) {