From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nate Studer Subject: Re: ARINC653 Date: Tue, 3 Dec 2013 10:32:29 -0500 Message-ID: <529DF98D.4080508@dornerworks.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Simon Martin , Robbie VanVossen Cc: Andrew Cooper , Dario Faggioli , josh.whitehead@dornerworks.com, xen-devel List-Id: xen-devel@lists.xenproject.org On 12/3/2013 7:07 AM, Simon Martin wrote: > Hi Robbie, > > Nate said that I should contact you if I was having problems with the scheduler, > and unfortunately I have. I am actually back, so I can field this one. > > As far as I can see I have created a cpupool with 1 CPU running the arinc653 > scheduler. Here the output from xl. > > root@smartin-xen :~# xl cpupool-list > Name CPUs Sched Active Domain count > Pool-0 3 credit y 1 > pv400 1 arinc653 y 1 > > However the domU I load into the pv400 cpupool is never scheduled. I found a few > mails talking about this, and it looks like I need to run a program on dom0 to > configure the scheduler. I wrote the program and as far as I can see it should > work, however whatever I do it fails. I tried to put a few printk statements in > the corresponding arinc653_sched_set but I don't see any output in the xl dmesg, > or domU log either. > > I attach the code I wrote to configure the scheduler. It accepts one parameter, > the UUID of the dom_handle I need to specify. The mail I found wasn't too clear > so I test this using the dom0 UUID (00000000-0000-0000-0000-000000000000) and > with the domU UUID as well. Both fail the do_sysctl call in > xc_sched_arinc653_schedule_set (xc_arinc653.c line 51). > > Can you give me some idea of what I'm doing wrong here? Did you apply the patches I posted to the list a couple weeks ago? I noticed that you are calling the xc_sched_arinc653_schedule_set function without a pool id, so I think the answer is no. http://lists.xenproject.org/archives/html/xen-devel/2013-11/msg02549.html Without these patches, you can only load a schedule into Pool-0. If you just want to wait a little bit, I should be addressing Andrew's comments soon, in order to get them into unstable. Nate > > Regards. >