diff mbox

[v1,1/5] xen/mm: Make xenmem_add_to_physmap global

Message ID 20171018140339.13888-2-ross.lagerwall@citrix.com (mailing list archive)
State New, archived
Headers show

Commit Message

Ross Lagerwall Oct. 18, 2017, 2:03 p.m. UTC
Make it global in preparation to be called by a new dmop.

Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
---
 xen/common/memory.c  | 5 ++---
 xen/include/xen/mm.h | 3 +++
 2 files changed, 5 insertions(+), 3 deletions(-)

Comments

Paul Durrant Oct. 20, 2017, 9:09 a.m. UTC | #1
> -----Original Message-----

> From: Xen-devel [mailto:xen-devel-bounces@lists.xen.org] On Behalf Of

> Ross Lagerwall

> Sent: 18 October 2017 15:04

> To: Xen-devel <xen-devel@lists.xen.org>

> Cc: Stefano Stabellini <sstabellini@kernel.org>; Wei Liu

> <wei.liu2@citrix.com>; Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>;

> George Dunlap <George.Dunlap@citrix.com>; Andrew Cooper

> <Andrew.Cooper3@citrix.com>; Ian Jackson <Ian.Jackson@citrix.com>; Tim

> (Xen.org) <tim@xen.org>; Ross Lagerwall <ross.lagerwall@citrix.com>; Jan

> Beulich <jbeulich@suse.com>

> Subject: [Xen-devel] [PATCH v1 1/5] xen/mm: Make

> xenmem_add_to_physmap global

> 

> 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>


> ---

>  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,

> --

> 2.9.5

> 

> 

> _______________________________________________

> Xen-devel mailing list

> Xen-devel@lists.xen.org

> https://lists.xen.org/xen-devel
diff mbox

Patch

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,