From mboxrd@z Thu Jan 1 00:00:00 1970 From: George Dunlap Subject: Re: [PATCH 1/1] Xen ARINC 653 Scheduler (updated to add support for CPU pools) Date: Sat, 19 Jun 2010 12:14:14 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Kathy Hadley Cc: xen-devel@lists.xensource.com, Keir Fraser List-Id: xen-devel@lists.xenproject.org On Fri, Jun 18, 2010 at 6:35 PM, Kathy Hadley wrote: > I migrated to c/s 21632 in the staging tree. =A0I see that xen_sysctl_sch= eduler_op in sysctl.h was updated in c/s 21626 to add cpupool_id to the str= ucture. =A0I call the following function from an application executing in D= om0 to adjust the ARINC 653 schedule: > > xc_sched_arinc653_sched_set( > =A0 =A0xc_interface *xch, > =A0 =A0xen_sysctl_sched_arinc653_schedule_t * sched) > { > =A0 =A0DECLARE_SYSCTL; > > =A0 =A0sysctl.cmd =3D XEN_SYSCTL_scheduler_op; > =A0 =A0sysctl.u.scheduler_op.sched_id =3D XEN_SCHEDULER_ARINC653; > =A0 =A0sysctl.u.scheduler_op.cmd =3D XEN_SYSCTL_SCHEDOP_putinfo; > =A0 =A0set_xen_guest_handle(sysctl.u.scheduler_op.u.arinc653.schedule, sc= hed); > > =A0 =A0return do_sysctl(xch, &sysctl); > } > > In this function, which executes in Dom0, how do I determine the cpupool_= id that I need to set in the sysctl data structure? It should take a cpupool_id argument. It may be that you're the only consumer of this scheduler, and that your toolstack will always pass a cpupool_id of 0 (the pool created by default on boot). But on the off chance that someone decides they want to make two pools, one of which will use your scheduler, we want them to be able to specify one. :-) -George