[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] arm: introduce more hypercalls



# HG changeset patch
# User Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
# Date 1331718425 0
# Node ID dc89ff7bad060c12edf8017a62eb6980b09569a8
# Parent  f01efbb36d1288d21fc512a52746eac28865f03b
arm: introduce more hypercalls

Implement xen_version, event_channel_op, memory_op sysctl and physdev_op
hypercalls.

Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
Committed-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
---


diff -r f01efbb36d12 -r dc89ff7bad06 xen/arch/arm/Makefile
--- a/xen/arch/arm/Makefile     Wed Mar 14 09:47:04 2012 +0000
+++ b/xen/arch/arm/Makefile     Wed Mar 14 09:47:05 2012 +0000
@@ -15,6 +15,7 @@
 obj-y += p2m.o
 obj-y += percpu.o
 obj-y += guestcopy.o
+obj-y += physdev.o
 obj-y += setup.o
 obj-y += time.o
 obj-y += smpboot.o
diff -r f01efbb36d12 -r dc89ff7bad06 xen/arch/arm/physdev.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/xen/arch/arm/physdev.c    Wed Mar 14 09:47:05 2012 +0000
@@ -0,0 +1,27 @@
+/******************************************************************************
+ * Arch-specific physdev.c
+ *
+ * Copyright (c) 2012, Citrix Systems
+ */
+
+#include <xen/config.h>
+#include <xen/types.h>
+#include <xen/lib.h>
+#include <xen/errno.h>
+#include <asm/hypercall.h>
+
+
+int do_physdev_op(int cmd, XEN_GUEST_HANDLE(void) arg)
+{
+    printk("%s %d cmd=%d: not implemented yet\n", __func__, __LINE__, cmd);
+    return -ENOSYS;
+}
+
+/*
+ * Local variables:
+ * mode: C
+ * c-set-style: "BSD"
+ * c-basic-offset: 4
+ * indent-tabs-mode: nil
+ * End:
+ */
diff -r f01efbb36d12 -r dc89ff7bad06 xen/arch/arm/traps.c
--- a/xen/arch/arm/traps.c      Wed Mar 14 09:47:04 2012 +0000
+++ b/xen/arch/arm/traps.c      Wed Mar 14 09:47:05 2012 +0000
@@ -376,6 +376,11 @@
     HYPERCALL(arch_0),
     HYPERCALL(sched_op),
     HYPERCALL(console_io),
+    HYPERCALL(xen_version),
+    HYPERCALL(event_channel_op),
+    HYPERCALL(memory_op),
+    HYPERCALL(physdev_op),
+    HYPERCALL(sysctl),
 };
 
 static void do_debug_trap(struct cpu_user_regs *regs, unsigned int code)
diff -r f01efbb36d12 -r dc89ff7bad06 xen/include/asm-arm/hypercall.h
--- a/xen/include/asm-arm/hypercall.h   Wed Mar 14 09:47:04 2012 +0000
+++ b/xen/include/asm-arm/hypercall.h   Wed Mar 14 09:47:05 2012 +0000
@@ -2,6 +2,7 @@
 #define __ASM_ARM_HYPERCALL_H__
 
 #include <public/domctl.h> /* for arch_do_domctl */
+int do_physdev_op(int cmd, XEN_GUEST_HANDLE(void) arg);
 
 #endif /* __ASM_ARM_HYPERCALL_H__ */
 /*

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.