From: Chris Subject: [PATCH 7/8] [xen-ppc] Domain Groups: arch-specfic VMM mods Date: Tue, 20 Feb 2007 14:57:10 -0500 Message-ID: <45DB5296.6050708@tycho.ncsc.mil> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------040703020405090402050601" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --------------040703020405090402050601 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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. --------------040703020405090402050601 Content-Type: text/plain; x-mac-type="0"; x-mac-creator="0"; name="domgrps-xen-ppc.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="domgrps-xen-ppc.patch" diff -r ecb6cd61a9cf xen/arch/powerpc/powerpc64/hypercall_table.S --- a/xen/arch/powerpc/powerpc64/hypercall_table.S Tue Feb 20 12:27:03 2007 +0000 +++ b/xen/arch/powerpc/powerpc64/hypercall_table.S Tue Feb 20 12:59:11 2007 -0500 @@ -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 diff -r ecb6cd61a9cf xen/arch/powerpc/setup.c --- a/xen/arch/powerpc/setup.c Tue Feb 20 12:27:03 2007 +0000 +++ b/xen/arch/powerpc/setup.c Tue Feb 20 12:59:11 2007 -0500 @@ -32,6 +32,7 @@ #include #include #include +#include #include #include #include @@ -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); --------------040703020405090402050601 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --------------040703020405090402050601--