summary refs log tree commit diff stats
path: root/hw/xen_common.h
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2011-06-22 07:07:55 -0500
committerAnthony Liguori <aliguori@us.ibm.com>2011-06-22 07:07:55 -0500
commit7ee28fd303003d70bb4c142e6ad4b92b7383b5b4 (patch)
tree03781532cc1e7b53d5ce4ffd3a49d515dcdf21c3 /hw/xen_common.h
parentbcd2491a48787542160d75fb7468907971b04478 (diff)
parent01195b7347e341a49fa554959882b26c666a3616 (diff)
downloadfocaccia-qemu-7ee28fd303003d70bb4c142e6ad4b92b7383b5b4.tar.gz
focaccia-qemu-7ee28fd303003d70bb4c142e6ad4b92b7383b5b4.zip
Merge remote-tracking branch 'agraf/xen-next' into staging
Diffstat (limited to 'hw/xen_common.h')
-rw-r--r--hw/xen_common.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/hw/xen_common.h b/hw/xen_common.h
index a1958a0af1..2c79af64d0 100644
--- a/hw/xen_common.h
+++ b/hw/xen_common.h
@@ -71,6 +71,20 @@ static inline int xc_domain_populate_physmap_exact
         (xc_handle, domid, nr_extents, extent_order, mem_flags, extent_start);
 }
 
+static inline int xc_domain_add_to_physmap(int xc_handle, uint32_t domid,
+                                           unsigned int space, unsigned long idx,
+                                           xen_pfn_t gpfn)
+{
+    struct xen_add_to_physmap xatp = {
+        .domid = domid,
+        .space = space,
+        .idx = idx,
+        .gpfn = gpfn,
+    };
+
+    return xc_memory_op(xc_handle, XENMEM_add_to_physmap, &xatp);
+}
+
 
 /* Xen 4.1 */
 #else