From: "Simon Martin" Subject: ARINC653 Date: Tue, 03 Dec 2013 12:07:18 +0000 Message-ID: References: <528A34C9.7010208@dornerworks.com> Reply-To: Simon Martin Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=_wombat.nemo.cl-7406-1386072505-0001-2" Return-path: In-Reply-To: <528A34C9.7010208@dornerworks.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Robbie VanVossen Cc: Andrew Cooper , Dario Faggioli , josh.whitehead@dornerworks.com, Nate Studer , xen-devel List-Id: xen-devel@lists.xenproject.org This is a MIME-formatted message. If you see this text it means that your E-mail software does not support MIME-formatted messages. --=_wombat.nemo.cl-7406-1386072505-0001-2 Content-Type: multipart/alternative; boundary="=_wombat.nemo.cl-7406-1386072505-0001-3" This is a MIME-formatted message. If you see this text it means that your E-mail software does not support MIME-formatted messages. --=_wombat.nemo.cl-7406-1386072505-0001-3 Content-Type: text/plain; format=flowed; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Robbie, Nate said that I should contact you if I was having problems with the=20 scheduler, and unfortunately I have. As far as I can see I have created a cpupool with 1 CPU running the=20 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=20 found a few mails talking about this, and it looks like I need to run a=20 program on dom0 to configure the scheduler. I wrote the program and as=20 far as I can see it should work, however whatever I do it fails. I tried= =20 to put a few printk statements in the corresponding arinc653_sched_set=20 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=20 parameter, the UUID of the dom_handle I need to specify. The mail I=20 found wasn't too clear so I test this using the dom0 UUID=20 (00000000-0000-0000-0000-000000000000) and with the domU UUID as well.=20 Both fail the do_sysctl call in xc_sched_arinc653_schedule_set=20 (xc_arinc653.c line 51). Can you give me some idea of what I'm doing wrong here? Regards. --=_wombat.nemo.cl-7406-1386072505-0001-3 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Hi Robbie,
 
Nate said that I should contact you if I was having problems with the= scheduler, and unfortunately I have.
 
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          &= nbsp;    CPUs   Sched     Acti= ve   Domain count
Pool-0      &n= bsp;        3    credit&n= bsp;      y      &nb= sp;   1
pv400        &= nbsp;       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-00= 00-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?
 
Regards.
 
--=_wombat.nemo.cl-7406-1386072505-0001-3-- --=_wombat.nemo.cl-7406-1386072505-0001-2 Content-Type: text/plain; name="arinc653.c"; charset=iso-8859-1 Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename=arinc653.c LyogKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq KioqKioqKioqKioqKioKICAgKiBQcm9qZWN0ICAgOgogICAqIEF1dGhvciAgICA6IHNtYXJ0aW4K ICAgKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq KioqKioqKioqKioqKioKCiAgICBNb2RpZmljYXRpb25zOgogICAgMC4wMSAyOS8xMS8yMDEzIElu aXRpYWwgdmVyc2lvbi4KKi8KCi8qLS0tLS0tLS0tLS0tLS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7CiAgICB9CgogICAgcmV0 dXJuIDA7Cn0K --=_wombat.nemo.cl-7406-1386072505-0001-2 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.xen.org http://lists.xen.org/xen-devel --=_wombat.nemo.cl-7406-1386072505-0001-2--