From: Ross Lagerwall Date: Thu, 25 Jan 2018 11:23:35 +0000 (+0100) Subject: mm: make xenmem_add_to_physmap global X-Git-Tag: archive/raspbian/4.11.1-1+rpi1~1^2~66^2~703 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=34ae3fce896c7225c27b10c438f5b9a6af773669;p=xen.git mm: make xenmem_add_to_physmap global Make it global in preparation to be called by a new dmop. Signed-off-by: Ross Lagerwall Reviewed-by: Paul Durrant Acked-by: Jan Beulich Acked-by: Wei Liu --- diff --git a/xen/common/memory.c b/xen/common/memory.c index c2797ba66c..09549abec5 100644 --- a/xen/common/memory.c +++ b/xen/common/memory.c @@ -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; diff --git a/xen/include/xen/mm.h b/xen/include/xen/mm.h index e813c07b22..0e0e5112c6 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,