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

[Xen-devel] Fwd: rt-xen::make Done::xl :: sched-rm not shown:: how to add a command line in xl




Hello Gurus ,
Sorry to bother your again.

Now Make is Done.

Many errors are resolved ( such as some programming errors on xenbus.c ,fbfront.c)


now I can use xl ,unfortunately, xl no option sched-rm.

I changed the source of :

libxl.c  ==> Âoutput from grep:

libxl.c:static int sched_rm_domain_get(libxl__gc *gc, uint32_t domid,
libxl.c: Â Ârc = xc_sched_rm_domain_get(CTX->xch, domid, &sdom);
libxl.c:static int sched_rm_domain_set(libxl__gc *gc, uint32_t domid,
libxl.c: Â Ârc = xc_sched_rm_domain_get(CTX->xch, domid, &sdom);
libxl.c: Â Ârc = xc_sched_rm_domain_set(CTX->xch, domid, &sdom);
libxl.c: Â Â Â Âret=sched_rm_domain_set(gc, domid, scinfo);
libxl.c: ret=sched_rm_domain_get(gc,domid,scinfo);


and :
xen/lowlevel/xc/xc.c:static PyObject *pyxc_sched_rm_domain_set(XcObject *self,
xen/lowlevel/xc/xc.c: Â Âstruct xen_domctl_sched_rm sdom;
xen/lowlevel/xc/xc.c: Â Âif ( xc_sched_rm_domain_set(self->xc_handle, domid, &sdom) != 0 )
xen/lowlevel/xc/xc.c:static PyObject *pyxc_sched_rm_domain_get(XcObject *self, PyObject *args)
xen/lowlevel/xc/xc.c: Â Âstruct xen_domctl_sched_rm sdom;
xen/lowlevel/xc/xc.c: Â Âif ( xc_sched_rm_domain_get(self->xc_handle, domid, &sdom) != 0 )
xen/lowlevel/xc/xc.c: Â { "sched_rm_domain_set",
xen/lowlevel/xc/xc.c: Â Â Â(PyCFunction)pyxc_sched_rm_domain_set,
xen/lowlevel/xc/xc.c: Â Â { "sched_rm_domain_get",
xen/lowlevel/xc/xc.c: Â Â Â(PyCFunction)pyxc_sched_rm_domain_get,


also created :
libxc/xc_rm.c Â===> just likeÂlibxc/xc_rtpartition.c



not changing main.py:

since I see it is commtented::


main.py: Â Â'sched-rtpartition': ('[-d <Domain> [-p[=PERIOD]|-b[=BUDGET]|-v[=VCPU]|-e[=EXTRA]]',
main.py: Â Â Â Â Â Â Â Â Â Â 'Get/set rtpartition scheduler parameters.'),
main.py: Â Â'sched-rtpartition': (
main.py: Â Â"sched-rtpartition",
main.py:# # rtpartition
main.py:# def xm_sched_rtpartition(args):
main.py:# Â Â """Get/Set options for rtpartition Scheduler."""
main.py:# Â Â check_sched_type('rtpartition')
main.py:# Â Â Â Â usage('sched-rtpartition')
main.py:# Â Â Â Â Â Â usage('sched-rtpartition')
main.py:# Â Â Â Â Â Â Â Â Â Â info = server.xend.domain.sched_rtpartition_get(d['name'])
main.py:# Â Â Â Â Â Â Â Â # domain does not support sched-rtpartition?
main.py:# Â Â Â Â Â Â usage('sched-rtpartition')
main.py:# Â Â Â Â Â Â result = server.xend.domain.sched_rtpartition_set(domid, period, budget, vcpu, extra)
main.py: Â Â# "sched-rtpartition": xm_sched_rtpartition,
grep: tests: æääçå





my question is how to make xl can changed "sched-rm" Âparameters?




jackyshen@jackyshen-ThinkPad-T410:~/RT-XEN/RT-Xen-rt-xen_2.0$ xl
Usage xl [-vfN] <subcommand> [args]

xl full list of subcommands:

Âcreate       ÂCreate a domain from config file <filename>
Âconfig-update    Update a running domain's saved configuration, used when rebuilding the domain after reboot
Âlist        ÂList information about all/some domains
Âdestroy       Terminate a domain immediately
Âshutdown      ÂIssue a shutdown signal to a domain
Âreboot       ÂIssue a reboot signal to a domain
Âpci-attach     ÂInsert a new pass-through pci device
Âpci-detach     ÂRemove a domain's pass-through pci device
Âpci-list      ÂList pass-through pci devices for a domain
Âpci-assignable-add ÂMake a device assignable for pci-passthru
Âpci-assignable-removeÂ
          ÂRemove a device from being assignable
Âpci-assignable-list List all the assignable pci devices
Âpause        Pause execution of a domain
Âunpause       Unpause a paused domain
Âconsole       Attach to domain's console
Âvncviewer      Attach to domain's VNC server.
Âsave        ÂSave a domain state to restore later
Âmigrate       Migrate a domain to another host
Âdump-core      Core dump a domain
Ârestore       Restore a domain from a saved state
Âmigrate-receive   Restore a domain from a saved state
Âcd-insert      Insert a cdrom into a guest's cd drive
Âcd-eject      ÂEject a cdrom from a guest's cd drive
Âmem-max       Set the maximum amount reservation for a domain
Âmem-set       Set the current memory usage for a domain
Âbutton-press    ÂIndicate an ACPI button press to the domain
Âvcpu-list      List the VCPUs for all/some domains
Âvcpu-pin      ÂSet which CPUs a VCPU can use
Âvcpu-set      ÂSet the number of active VCPUs allowed for the domain
Âvm-list       List guest domains, excluding dom0, stubdoms, etc.
Âinfo        ÂGet information about Xen host
Âsharing       Get information about page sharing
Âsched-credit    ÂGet/set credit scheduler parameters
Âsched-credit2 Â Â Â Get/set credit2 scheduler parameters
Âsched-rtglobal   ÂGet/set rtglobal scheduler parameters
Âsched-rtpartition  Get/set rtpartition scheduler parameters
============<><><> Â>>> here should be "sched-rm" Âbut not show. Â>>>> it the my question.








ÂBest regards
Jie Shen


Graduate Student in Computer Science
Illinois Institute of TechnologyÂÂÂ
Stuart Building Chicago, IL 60616
+1Â 312 404 0122

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

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