From patchwork Thu Aug 10 07:27:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Beulich X-Patchwork-Id: 9892947 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 6FB7160236 for ; Thu, 10 Aug 2017 07:29:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 61434280DE for ; Thu, 10 Aug 2017 07:29:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5625128583; Thu, 10 Aug 2017 07:29:20 +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 E0835280DE for ; Thu, 10 Aug 2017 07:29:19 +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 1dfhsI-0006Yx-UN; Thu, 10 Aug 2017 07:27:22 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dfhsH-0006Ym-As for xen-devel@lists.xenproject.org; Thu, 10 Aug 2017 07:27:21 +0000 Received: from [85.158.139.211] by server-12.bemta-5.messagelabs.com id 83/70-01731-8DA0C895; Thu, 10 Aug 2017 07:27:20 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrEIsWRWlGSWpSXmKPExsXS6fjDS/cqV0+ kQccbfYvvWyYzOTB6HP5whSWAMYo1My8pvyKBNaPjwSrmggV8FR8On2JtYHzE3cXIySEkkCcx vXsbM4jNK2AnsX7NBSYQW0LAUOL0wpssIDaLgKrEil89YDVsAuoSbc+2s3YxcnCICBhInDuaB GIyC+hLbFsHVi0s4Cbx99lBNojpdhJr55xlBCnhFRCU+LtDGCTMLKAl8fDXLRYIW1ti2cLXzB BTpCWW/+OYwMg7C6FhFpKGWUgaZiE0LGBkWcWoXpxaVJZapGuul1SUmZ5RkpuYmaNraGCql5t aXJyYnpqTmFSsl5yfu4kRGF4MQLCD8dhk50OMkhxMSqK8xZ+6I4X4kvJTKjMSizPii0pzUosP McpwcChJ8J7k7IkUEixKTU+tSMvMAQY6TFqCg0dJhPcSSJq3uCAxtzgzHSJ1ilGX49WE/9+Yh Fjy8vNSpcR5C0GKBECKMkrz4EbAou4So6yUMC8j0FFCPAWpRbmZJajyrxjFORiVhHmXgUzhyc wrgdv0CugIJqAjInw7QY4oSURISTUwBjY9r7nOe39WX72j3H6hr26OUz57X9Gt+VmSXLdOMiR kzbO77+fOb3UNVLH6szHs7d+MMp0KbsevPRKGafWxB6TZVyS9udukYXpvveRWBS4jV/lQL68d q1Lffl/wKuLvJiaXX86zLt77wLzo1AWb+OqGk5sDD2yeeDrF9J/unvdW9czlzy2MlFiKMxINt ZiLihMBCIzix7UCAAA= X-Env-Sender: JBeulich@suse.com X-Msg-Ref: server-14.tower-206.messagelabs.com!1502350035!67813126!1 X-Originating-IP: [137.65.248.74] X-SpamReason: No, hits=0.5 required=7.0 tests=BODY_RANDOM_LONG X-StarScan-Received: X-StarScan-Version: 9.4.45; banners=-,-,- X-VirusChecked: Checked Received: (qmail 41355 invoked from network); 10 Aug 2017 07:27:17 -0000 Received: from prv-mh.provo.novell.com (HELO prv-mh.provo.novell.com) (137.65.248.74) by server-14.tower-206.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 10 Aug 2017 07:27:17 -0000 Received: from INET-PRV-MTA by prv-mh.provo.novell.com with Novell_GroupWise; Thu, 10 Aug 2017 01:27:15 -0600 Message-Id: <598C26F2020000780016E678@prv-mh.provo.novell.com> X-Mailer: Novell GroupWise Internet Agent 14.2.2 Date: Thu, 10 Aug 2017 01:27:14 -0600 From: "Jan Beulich" To: "xen-devel" References: <598C26F2020000780016E678@prv-mh.provo.novell.com> Mime-Version: 1.0 Content-Disposition: inline Cc: Andrew Cooper Subject: [Xen-devel] [PATCH] x86/mm: make various hotplug related functions static 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 Signed-off-by: Jan Beulich Acked-by: Andrew Cooper --- a/xen/arch/x86/x86_64/mm.c +++ b/xen/arch/x86/x86_64/mm.c @@ -106,7 +106,7 @@ struct mem_hotadd_info unsigned long cur; }; -int hotadd_mem_valid(unsigned long pfn, struct mem_hotadd_info *info) +static int hotadd_mem_valid(unsigned long pfn, struct mem_hotadd_info *info) { return (pfn < info->epfn && pfn >= info->spfn); } @@ -156,7 +156,7 @@ static int m2p_mapped(unsigned long spfn return M2P_NO_MAPPED; } -int share_hotadd_m2p_table(struct mem_hotadd_info *info) +static int share_hotadd_m2p_table(struct mem_hotadd_info *info) { unsigned long i, n, v, m2p_start_mfn = 0; l3_pgentry_t l3e; @@ -257,7 +257,7 @@ static void destroy_compat_m2p_mapping(s return; } -void destroy_m2p_mapping(struct mem_hotadd_info *info) +static void destroy_m2p_mapping(struct mem_hotadd_info *info) { l3_pgentry_t *l3_ro_mpt; unsigned long i, va, rwva; @@ -712,7 +712,7 @@ void free_compat_arg_xlat(struct vcpu *v PFN_UP(COMPAT_ARG_XLAT_SIZE)); } -void cleanup_frame_table(struct mem_hotadd_info *info) +static void cleanup_frame_table(struct mem_hotadd_info *info) { unsigned long sva, eva; l3_pgentry_t l3e; @@ -1272,7 +1272,7 @@ unsigned int domain_clamp_alloc_bitsize( return min(d->arch.physaddr_bitsize, bits); } -int transfer_pages_to_heap(struct mem_hotadd_info *info) +static int transfer_pages_to_heap(struct mem_hotadd_info *info) { unsigned long i; struct page_info *pg; @@ -1292,7 +1292,7 @@ int transfer_pages_to_heap(struct mem_ho return 0; } -int mem_hotadd_check(unsigned long spfn, unsigned long epfn) +static int mem_hotadd_check(unsigned long spfn, unsigned long epfn) { unsigned long s, e, length, sidx, eidx;