From patchwork Mon Oct 23 09:05:05 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Lagerwall X-Patchwork-Id: 10022193 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 74370603D7 for ; Mon, 23 Oct 2017 09:07:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 690D62880C for ; Mon, 23 Oct 2017 09:07:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5DF8228811; Mon, 23 Oct 2017 09:07:32 +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 1A3F02880C for ; Mon, 23 Oct 2017 09:07:32 +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 1e6Yff-0007JK-Tc; Mon, 23 Oct 2017 09:05:19 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e6Yfe-0007J2-Bl for xen-devel@lists.xen.org; Mon, 23 Oct 2017 09:05:18 +0000 Received: from [193.109.254.147] by server-5.bemta-6.messagelabs.com id 8B/12-29911-DC0BDE95; Mon, 23 Oct 2017 09:05:17 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprIIsWRWlGSWpSXmKPExsXitHRDpO7ZDW8 jDe5d4bRY8nExiwOjx9Hdv5kCGKNYM/OS8isSWDOOvetnLdjHU/Hix1u2BsZTnF2MnBwSAv4S r15MZgOx2QQMJG5d+s4MYosIyEqs7prD3sXIxcEs8JpJ4lbLf7CEsICjRM/9SWANLAKqEhOWQ cR5BWwlGv/fZoEYKiex5+IMdhCbU8BO4tnf5awgthBQzZ5dP1ggbDWJt8vPsED0CkqcnPkEzG YWkJA4+OIF8wRG3llIUrOQpBYwMq1iVC9OLSpLLdK11EsqykzPKMlNzMzRNTQw08tNLS5OTE/ NSUwq1kvOz93ECAweBiDYwXh3U8AhRkkOJiVR3t85byOF+JLyUyozEosz4otKc1KLDzHKcHAo SfA+WQ+UEyxKTU+tSMvMAYYxTFqCg0dJhHcqSJq3uCAxtzgzHSJ1ilGXo+Pm3T9MQix5+XmpU uK870GKBECKMkrz4EbAYuoSo6yUMC8j0FFCPAWpRbmZJajyrxjFORiVhHnvg0zhycwrgdv0Cu gIJqAjZO3fgBxRkoiQkmpgjONmFZ+2cXvMY51oE8On6T9Wh7fV+6b/Cjm/utHg04LlG0O5zhQ cbFJnXmbzzHXlVK6qPx8Yv9WuObX7qUDVyTuf7uh9+NVhtsDw5+9v3ueuqB0LXW9o3bTCUznv YvnkABnJ5/Htrnes1/P6Ktd9Ude9didoVql03vnNb8+oNf4JC37v/OJ3vxJLcUaioRZzUXEiA O7Rl1mkAgAA X-Env-Sender: prvs=462d8fd40=ross.lagerwall@citrix.com X-Msg-Ref: server-11.tower-27.messagelabs.com!1508749515!81107749!1 X-Originating-IP: [66.165.176.89] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni44OSA9PiAyMDMwMDc=\n, received_headers: No Received headers X-StarScan-Received: X-StarScan-Version: 9.4.45; banners=-,-,- X-VirusChecked: Checked Received: (qmail 43633 invoked from network); 23 Oct 2017 09:05:16 -0000 Received: from smtp.citrix.com (HELO SMTP.CITRIX.COM) (66.165.176.89) by server-11.tower-27.messagelabs.com with RC4-SHA encrypted SMTP; 23 Oct 2017 09:05:16 -0000 X-IronPort-AV: E=Sophos;i="5.43,422,1503360000"; d="scan'208";a="447622353" From: Ross Lagerwall To: Date: Mon, 23 Oct 2017 10:05:05 +0100 Message-ID: <20171023090509.4338-2-ross.lagerwall@citrix.com> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20171023090509.4338-1-ross.lagerwall@citrix.com> References: <20171023090509.4338-1-ross.lagerwall@citrix.com> MIME-Version: 1.0 Cc: Stefano Stabellini , Wei Liu , Konrad Rzeszutek Wilk , George Dunlap , Andrew Cooper , Ian Jackson , Tim Deegan , Ross Lagerwall , Jan Beulich Subject: [Xen-devel] [PATCH v2 1/5] xen/mm: Make xenmem_add_to_physmap global 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 Make it global in preparation to be called by a new dmop. Signed-off-by: Ross Lagerwall Acked-by: Jan Beulich --- Reviewed-by: Paul Durrant --- xen/common/memory.c | 5 ++--- xen/include/xen/mm.h | 3 +++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/xen/common/memory.c b/xen/common/memory.c index ad987e0..c4f05c7 100644 --- a/xen/common/memory.c +++ b/xen/common/memory.c @@ -741,9 +741,8 @@ static long memory_exchange(XEN_GUEST_HANDLE_PARAM(xen_memory_exchange_t) arg) return rc; } -static int xenmem_add_to_physmap(struct domain *d, - struct xen_add_to_physmap *xatp, - unsigned int start) +int xenmem_add_to_physmap(struct domain *d, struct xen_add_to_physmap *xatp, + unsigned int start) { unsigned int done = 0; long rc = 0; diff --git a/xen/include/xen/mm.h b/xen/include/xen/mm.h index e813c07..0e0e511 100644 --- a/xen/include/xen/mm.h +++ b/xen/include/xen/mm.h @@ -579,6 +579,9 @@ int xenmem_add_to_physmap_one(struct domain *d, unsigned int space, union xen_add_to_physmap_batch_extra extra, unsigned long idx, gfn_t gfn); +int xenmem_add_to_physmap(struct domain *d, struct xen_add_to_physmap *xatp, + unsigned int start); + /* Return 0 on success, or negative on error. */ int __must_check guest_remove_page(struct domain *d, unsigned long gmfn); int __must_check steal_page(struct domain *d, struct page_info *page,