]> xenbits.xensource.com Git - people/dariof/xen.git/commitdiff
mm: make xenmem_add_to_physmap global
authorRoss Lagerwall <ross.lagerwall@citrix.com>
Thu, 25 Jan 2018 11:23:35 +0000 (12:23 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 25 Jan 2018 11:23:35 +0000 (12:23 +0100)
Make it global in preparation to be called by a new dmop.

Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
Reviewed-by: Paul Durrant <paul.durrant@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
xen/common/memory.c
xen/include/xen/mm.h

index c2797ba66ce14060a620837ce76dedbe0baa3259..09549abec50f2d59fad5af356fd0847dfe85128f 100644 (file)
@@ -770,9 +770,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;
index e813c07b225cbadc7362f284a2b4b85333e9d9cc..0e0e5112c697d7b7675d988f47a3cdb8cda203f5 100644 (file)
@@ -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,