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

[Xen-changelog] [xen-unstable] arm: Add stub functions instead of using DUMMY



# HG changeset patch
# User Ian Campbell <ian.campbell@xxxxxxxxxx>
# Date 1329308657 0
# Node ID dfd6928609080bfa0875c683ca99419e3538618e
# Parent  9ae21c0392ccb7470de8dfd7a9db8cd19b2bd651
arm: Add stub functions instead of using DUMMY

Adds stubs for arch domctl and sysctl plus vcpu_op and memory_op.

Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
Acked-by: Stefano Stabellini <Stefano.Stabellini@xxxxxxxxxxxxx>
Acked-by: Tim Deegan <tim@xxxxxxx>
Committed-by: Ian Campbell <Ian.Campbell@xxxxxxxxxx>
---


diff -r 9ae21c0392cc -r dfd692860908 xen/arch/arm/Makefile
--- a/xen/arch/arm/Makefile     Wed Feb 15 12:24:16 2012 +0000
+++ b/xen/arch/arm/Makefile     Wed Feb 15 12:24:17 2012 +0000
@@ -4,6 +4,8 @@
 obj-y += early_printk.o
 obj-y += entry.o
 obj-y += domain.o
+obj-y += domctl.o
+obj-y += sysctl.o
 obj-y += domain_build.o
 obj-y += gic.o
 obj-y += io.o
diff -r 9ae21c0392cc -r dfd692860908 xen/arch/arm/domain.c
--- a/xen/arch/arm/domain.c     Wed Feb 15 12:24:16 2012 +0000
+++ b/xen/arch/arm/domain.c     Wed Feb 15 12:24:17 2012 +0000
@@ -255,6 +255,11 @@
 {
 }
 
+long arch_do_vcpu_op(int cmd, struct vcpu *v, XEN_GUEST_HANDLE(void) arg)
+{
+    return -ENOSYS;
+}
+
 void arch_dump_vcpu_info(struct vcpu *v)
 {
 }
diff -r 9ae21c0392cc -r dfd692860908 xen/arch/arm/domctl.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/xen/arch/arm/domctl.c     Wed Feb 15 12:24:17 2012 +0000
@@ -0,0 +1,27 @@
+/******************************************************************************
+ * Arch-specific domctl.c
+ *
+ * Copyright (c) 2012, Citrix Systems
+ */
+
+#include <xen/config.h>
+#include <xen/types.h>
+#include <xen/lib.h>
+#include <xen/errno.h>
+#include <public/domctl.h>
+
+long arch_do_domctl(struct xen_domctl *domctl,
+                    XEN_GUEST_HANDLE(xen_domctl_t) u_domctl)
+{
+       return -ENOSYS;
+}
+
+/*
+ * Local variables:
+ * mode: C
+ * c-set-style: "BSD"
+ * c-basic-offset: 4
+ * tab-width: 4
+ * indent-tabs-mode: nil
+ * End:
+ */
diff -r 9ae21c0392cc -r dfd692860908 xen/arch/arm/dummy.S
--- a/xen/arch/arm/dummy.S      Wed Feb 15 12:24:16 2012 +0000
+++ b/xen/arch/arm/dummy.S      Wed Feb 15 12:24:17 2012 +0000
@@ -8,12 +8,8 @@
        
 DUMMY(alloc_pirq_struct);
 DUMMY(alloc_vcpu_guest_context);
-DUMMY(arch_do_domctl);
-DUMMY(arch_do_sysctl);
-DUMMY(arch_do_vcpu_op);
 DUMMY(arch_get_info_guest);
 DUMMY(arch_get_xen_caps);
-DUMMY(arch_memory_op);
 DUMMY(arch_set_info_guest);
 DUMMY(arch_vcpu_reset);
 DUMMY(create_grant_host_mapping);
diff -r 9ae21c0392cc -r dfd692860908 xen/arch/arm/mm.c
--- a/xen/arch/arm/mm.c Wed Feb 15 12:24:16 2012 +0000
+++ b/xen/arch/arm/mm.c Wed Feb 15 12:24:17 2012 +0000
@@ -320,6 +320,11 @@
 {
 }
 
+long arch_memory_op(int op, XEN_GUEST_HANDLE(void) arg)
+{
+    return -ENOSYS;
+}
+
 /*
  * Local variables:
  * mode: C
diff -r 9ae21c0392cc -r dfd692860908 xen/arch/arm/sysctl.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/xen/arch/arm/sysctl.c     Wed Feb 15 12:24:17 2012 +0000
@@ -0,0 +1,29 @@
+/******************************************************************************
+ * Arch-specific sysctl.c
+ *
+ * System management operations. For use by node control stack.
+ *
+ * Copyright (c) 2012, Citrix Systems
+ */
+
+#include <xen/config.h>
+#include <xen/types.h>
+#include <xen/lib.h>
+#include <xen/errno.h>
+#include <public/sysctl.h>
+
+long arch_do_sysctl(struct xen_sysctl *sysctl,
+                   XEN_GUEST_HANDLE(xen_sysctl_t) u_sysctl)
+{
+       return -ENOSYS;
+}
+
+/*
+ * Local variables:
+ * mode: C
+ * c-set-style: "BSD"
+ * c-basic-offset: 4
+ * tab-width: 4
+ * indent-tabs-mode: nil
+ * End:
+ */

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
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®.