--- /dev/null
+/*
+ * Xen public memory_op hypercall interface
+ */
+
+#ifndef XEN_PUBLIC_MEMORY_H
+#define XEN_PUBLIC_MEMORY_H
+
+#define XENMEM_increase_reservation 0
+#define XENMEM_decrease_reservation 1
+#define XENMEM_populate_physmap 6
+
+struct xen_memory_reservation {
+ unsigned long *extent_start;
+ unsigned long nr_extents;
+ unsigned int extent_order;
+ unsigned int mem_flags;
+ domid_t domid;
+};
+
+#define XENMEM_maximum_gpfn 14
+
+#endif /* XEN_PUBLIC_MEMORY_H */
+
+/*
+ * Local variables:
+ * mode: C
+ * c-file-style: "BSD"
+ * c-basic-offset: 4
+ * tab-width: 4
+ * indent-tabs-mode: nil
+ * End:
+ */
#include <xen/sched.h>
#include <xen/errno.h>
#include <xen/event_channel.h>
+#include <xen/memory.h>
#include <xen/version.h>
#include <xen/hvm/hvm_op.h>
#include <xen/hvm/params.h>
return HYPERCALL2(long, __HYPERVISOR_stack_switch, ss, sp);
}
+static inline long hypercall_memory_op(unsigned int cmd, void *arg)
+{
+ return HYPERCALL2(long, __HYPERVISOR_memory_op, cmd, arg);
+}
+
static inline long hypercall_xen_version(unsigned cmd, void *arg)
{
return HYPERCALL2(long, __HYPERVISOR_xen_version, cmd, arg);