Skip to contentSkip to conversation

Domain Groups: arch-specfic VMM mods

PATCH In review Chris 1 participant 1 message Feb 20, 2007

lore
Share & tools
lore

Chris

author
#0 lore raw

PATCH 7/8 Domain Groups: arch-specfic VMM mods

xen-ppc:

Architecture-specific code to initialize group data structures and handle new domgrpctl hypercall.

Untested; it would help if someone with access to PPC hardware would give this a shot.

xen/arch/powerpc/powerpc64/hypercall_table.S +1 -0
diff -r ecb6cd61a9cf xen/arch/powerpc/powerpc64/hypercall_table.S
@@ -41,6 +41,7 @@ __hypercall_table:
         .quad 0 /* do_hvm_op */
         .quad do_sysctl             /* 35 */
         .quad do_domctl
+        .quad do_domgrpctl
         .rept NR_hypercalls-((.-__hypercall_table)/8)
         .quad do_ni_hypercall
         .endr
xen/arch/powerpc/setup.c +7 -0
diff -r ecb6cd61a9cf xen/arch/powerpc/setup.c
@@ -32,6 +32,7 @@
 #include <xen/trace.h>
 #include <xen/mm.h>
 #include <xen/domain.h>
+#include <xen/domgrp.h>
 #include <xen/gdbstub.h>
 #include <xen/symbols.h>
 #include <xen/keyhandler.h>
@@ -371,6 +372,10 @@ static void __init __start_xen(multiboot
     /* This cannot be called before secondary cpus are marked online.  */
     percpu_free_unused_areas();
 
+    /* initialize domain groups */
+    if (init_domain_groups())
+        panic("Error creating default groups\n");
+
     /* Create initial domain 0. */
     dom0 = domain_create(0, 0);
     if (dom0 == NULL)
@@ -386,6 +391,8 @@ static void __init __start_xen(multiboot
     dom0->vcpu[0]->cpu_affinity = cpumask_of_cpu(0);
 
     dom0->is_privileged = 1;
+    if (add_dom_to_grp(dom0, 0))
+        panic("Error adding dom0 to grp0\n");
 
     /* Post-create hook sets security label. */
     acm_post_domain0_create(dom0->domain_id);

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel