[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] Fix xm create/start with sedf scheduler



Hi,

When I tested the Xen with the sedf scheduler, I was not able to 
create a VM. Error messages and xend.log are as follows. 

xm create command:
 # xm create /xen/vm1.conf 
 Using config file "/xen/vm1.conf".
 Error: (22, 'Invalid argument')

 [2007-01-29 17:01:22 5129] ERROR (XendDomain:1363) (22, 'Invalid argument')
 Traceback (most recent call last):
   File "//usr/lib/python/xen/xend/XendDomain.py", line 1361, in 
domain_sched_credit_set
     return xc.sched_credit_domain_set(dominfo.getDomid(), weight, cap)
 Error: (22, 'Invalid argument')

xm start command:
 # xm new /xen/vm1.conf 
 Using config file "/xen/vm1.conf".
 # xm list
 Name                                      ID   Mem VCPUs      State   Time(s)
 Domain-0                                   0   747     2     r-----     75.0
 vm1                                            256     2                 0.0
 # xm start vm1
 Error: (22, 'Invalid argument')
 Usage: xm start <DomainName>
 
 Start a Xend managed domain
   -p, --paused                   Do not unpause domain after starting it

 [2007-01-29 17:04:49 5129] ERROR (XendDomain:1363) (22, 'Invalid argument')
 Traceback (most recent call last):
   File "//usr/lib/python/xen/xend/XendDomain.py", line 1361, in 
domain_sched_credit_set
     return xc.sched_credit_domain_set(dominfo.getDomid(), weight, cap)
 Error: (22, 'Invalid argument')


I fixed the issues. If the Xen is running with the sedf scheduler, 
the following functions do not call the domain_sched_credit_set(). 
 - domain_create()
 - domain_create_from_dict()
 - domain_start()


Signed-off-by: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>

Best regards,
 Kan

Attachment: xm_create_with_sedf.patch
Description: Binary data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.