Displaying 7 results from an estimated 7 matches for "arg_check".
Did you mean:
acl_check
2006 Jan 13
2
[PATCH] unifying error message of migrate and sysrq
...py Thu Jan 12 13:27:55 2006
+++ b/tools/python/xen/xm/migrate.py Fri Jan 13 15:26:14 2006
@@ -56,8 +56,8 @@
if opts.vals.help:
opts.usage()
return
- if len(args) != 2:
- opts.err(''Invalid arguments: '' + str(args))
+ from xen.xm.main import arg_check
+ arg_check(args, "migrate", 2)
dom = args[0]
dst = args[1]
server.xend_domain_migrate(dom, dst, opts.vals.live,
opts.vals.resource, opts.vals.port)
diff -r bfcdf4099d23 tools/python/xen/xm/sysrq.py
--- a/tools/python/xen/xm/sysrq.py Thu Jan 12 13:27:55 2006
+++ b/t...
2006 Jan 13
0
[PATCH] Fix error(help) messages in main.py and shutdown.py
...atase <y_katase@soft.fujitsu.com>
Best Regards,
Yoshinori Katase
diff -r 1e1107e3d894 tools/python/xen/xm/main.py
--- a/tools/python/xen/xm/main.py Wed Jan 11 19:14:27 2006
+++ b/tools/python/xen/xm/main.py Thu Jan 12 19:08:31 2006
@@ -501,7 +501,7 @@
def xm_reboot(args):
- arg_check(args, "reboot", 1, 4)
+ arg_check(args, "reboot", 1, 3)
from xen.xm import shutdown
shutdown.main(["shutdown", "-R"] + args)
diff -r 1e1107e3d894 tools/python/xen/xm/shutdown.py
--- a/tools/python/xen/xm/shutdown.py Wed Jan 11 19:14:27 2006
++...
2005 Dec 26
1
[PATCH] symmetricalization of system info command xm info, top, dmesg and log
...Regards,
Yoshinori Katase
diff -r 829517be689f tools/python/xen/xm/main.py
--- a/tools/python/xen/xm/main.py Fri Dec 23 15:42:46 2005
+++ b/tools/python/xen/xm/main.py Mon Dec 26 10:16:56 2005
@@ -625,6 +625,8 @@
server.xend_domain_cpu_sedf_set(dom, *v)
def xm_info(args):
+ arg_check(args, "info", 0)
+
from xen.xend.XendClient import server
info = server.xend_node()
@@ -645,9 +647,12 @@
def xm_top(args):
+ arg_check(args, "top", 0)
+
os.execvp(''xentop'', [''xentop''])
def xm_dmesg(args):
+ arg_check...
2008 Sep 27
0
[PATCH 9/9] xen: add SR-IOV support to xm
...e",
+ "iov-setparam",
]
vnet_commands = [
@@ -2258,6 +2270,30 @@
print "%(idx)-3d %(backend-id)-3d %(state)-5d " % ni,
print "%(p-dev)-10s %(p-devname)-5s %(v-dev)-10s %(frontstate)-4s" % mi
+def xm_iov_list(args):
+ arg_check(args, ''iov-list'', 1)
+ dev = pci_dev_name(args[0])
+ if dev == None or list_iov(dev) == False:
+ raise OptionError("Operation failed.")
+
+def xm_iov_enable(args):
+ arg_check(args, ''iov-enable'', 2)
+ dev = pci_dev_name(args[0])
+...
2008 Sep 04
5
xm dump-core options are useless
This cset:
changeset: 11473:0008fca70351
date: Thu Sep 14 08:19:38 2006 +0100
description:
xm dump command add on
xm dump-core [-L|--live][-C| --crash] <domID> [output path]
Didn''t actually implement anything. Worse, it looks like we don''t even
pause the domain, so it''s always live (not good). What''s going on?
regards
john
2006 Mar 07
8
[PATCH] xm,xend: flesh out xm sched-sedf
...weight'', int, -1),
+ }
+
+
def xm_brief_list(doms):
print ''Name ID Mem(MiB) VCPUs State Time(s)''
for dom in doms:
@@ -617,12 +641,88 @@
server.xend_node_cpu_bvt_slice_set(slice)
def xm_sched_sedf(args):
- arg_check(args, "sched-sedf", 6)
-
- dom = args[0]
- v = map(int, args[1:6])
- from xen.xend.XendClient import server
- server.xend_domain_cpu_sedf_set(dom, *v)
+ def print_sedf(info):
+ print( ("%(name)-32s %(dom)3d %(period)12d %(slice)12d %(latency)12d" +
+...
2006 Aug 01
18
[Patch] Enable "sysrq c" handler for domU coredump
Hi,
In the case of linux, crash_kexec() is occured by "sysrq c".
In the case of DomainU on xen, Help is occured by "sysrq c" now.
So The way of dumping DomainU''s memory manualy is nothing.
I fix this issue by the following way.
1. Panic is occured by "sysrq c" on both Domain0 and DomainU.
2. On DomainU, coredump is generated in /var/xen/dump (on Domain0).