Displaying 20 results from an estimated 21 matches for "dompath".
Did you mean:
dom_path
2010 Aug 12
0
[PATCH, v2]: xl: Implement per-API-call garbage-collection lifetime
...urn ERROR_FAIL;
}
ret = xc_cpupool_movedomain(ctx->xch, info->poolid, *domid);
if (ret < 0) {
XL_LOG_ERRNOVAL(ctx, XL_LOG_ERROR, ret, "domain move fail");
+ libxl_free_all(&gc);
return ERROR_FAIL;
}
- dom_path = libxl_xs_get_dompath(ctx, *domid);
- if (!dom_path)
+ dom_path = libxl_xs_get_dompath(&gc, *domid);
+ if (!dom_path) {
+ libxl_free_all(&gc);
return ERROR_FAIL;
-
- vm_path = libxl_sprintf(ctx, "/vm/%s", uuid_string);
+ }
+
+ vm_path = libxl_sprintf(&gc, "/vm...
2013 Apr 17
10
xl network-attach SEGV in 4.2 and 4.1
...libxl/libxl.c
+++ b/tools/libxl/libxl.c
@@ -2569,7 +2569,8 @@ void libxl__device_nic_add(libxl__egc *egc, uint32_t
domid,
goto out_free;
}
if (!(l = libxl__xs_directory(gc, XBT_NULL,
- - libxl__sprintf(gc, "%s/device/vif",
dompath), &nb))) {
+ libxl__sprintf(gc, "%s/device/vif",
dompath), &nb)) ||
+ nb == 0) {
nic->devid = 0;
} else {
nic->devid = strtoul(l[nb - 1], NULL, 10) + 1;
- --
Best Regards / Pozdrawiam,
Ma...
2006 Sep 20
15
[PATCH] [XEND] Remove hard tabs
...19 14:26:47 2006 +0100
+++ b/tools/python/xen/xend/XendDomainInfo.py Wed Sep 20 14:20:52 2006 -0500
@@ -1093,15 +1093,15 @@ class XendDomainInfo:
## public:
def destroyDevice(self, deviceClass, devid):
- if type(devid) is str:
- devicePath = ''%s/device/%s'' % (self.dompath, deviceClass)
- for entry in xstransact.List(devicePath):
- backend = xstransact.Read(''%s/%s'' % (devicePath, entry), "backend")
- devName = xstransact.Read(backend, "dev")
- if devName == devid:
- # We found the integer matching our devid, use it in...
2010 May 07
9
[PATCH] xl: Update memory info in xenstore when use ''xl mem-set''
...Yu Zhiguo <yuzg@cn.fujitsu.com>
diff -r ccae861f52f7 -r 5847ce53f5dc tools/libxl/libxl.c
--- a/tools/libxl/libxl.c Thu May 06 11:59:55 2010 +0100
+++ b/tools/libxl/libxl.c Sat May 08 01:38:51 2010 +0800
@@ -2290,11 +2290,22 @@
uint32_t videoram;
char *videoram_s = NULL;
char *dompath = libxl_xs_get_dompath(ctx, domid);
+ xc_domaininfo_t info;
+ struct libxl_dominfo ptr;
+ char *uuid;
videoram_s = libxl_xs_read(ctx, XBT_NULL, libxl_sprintf(ctx, "%s/memory/videoram", dompath));
videoram = videoram_s ? atoi(videoram_s) : 0;
libxl_xs_write(ctx,...
2007 May 14
1
XenDomainInfo.py: Can hang in _releaseDevices.
A section of code does:
while True:
t = xstransact("%s/device" % self.dompath)
for devclass in XendDevices.valid_devices():
for dev in t.list(devclass):
try:
t.remove(dev)
except:
# Log and swallow any exceptions in removal --
# there...
2012 Nov 08
0
Sometimes unable to reboot VM
...ogress
retval = func(*args, **kwds)
File "/usr/lib/python2.6/dist-packages/xen/xend/XendDomainInfo.py", line
2576, in _constructDomain
self._recreateDom()
File "/usr/lib/python2.6/dist-packages/xen/xend/XendDomainInfo.py", line
1730, in _recreateDom
complete(self.dompath, lambda t: self._recreateDomFunc(t))
File "/usr/lib/python2.6/dist-packages/xen/xend/xenstore/xstransact.py",
line 364, in complete
if t.commit():
File "/usr/lib/python2.6/dist-packages/xen/xend/xenstore/xstransact.py",
line 41, in commit
rc = xshandle().transaction_...
2014 Apr 10
0
Bug#744163: xenstore problems
...le "/usr/lib/xen-4.1/bin/../lib/python/xen/xend/XendDomainInfo.py", line 2069, in refreshShutdown
if self.readDom('xend/shutdown_completed'):
File "/usr/lib/xen-4.1/bin/../lib/python/xen/xend/XendDomainInfo.py", line 1693, in readDom
return xstransact.Read(self.dompath, *args)
File "/usr/lib/xen-4.1/bin/../lib/python/xen/xend/xenstore/xstransact.py", line 307, in Read
return complete(path, lambda t: t.read(*args))
File "/usr/lib/xen-4.1/bin/../lib/python/xen/xend/xenstore/xstransact.py", line 361, in complete
t = xstransact(path)...
2005 Aug 30
4
Re: [Xen-changelog] New console transport and update xenconsoled.
...>+ } else
>+ *(char **)result = p;
>+ }
>+ va_end(ap);
>+ return ret;
>+}
>+
>+#define EVENTCHN_BIND _IO(''E'', 2)
>+#define EVENTCHN_UNBIND _IO(''E'', 3)
>+
>+static int domain_create_ring(struct domain *dom)
>+{
>+ char *dompath, *path;
>+ int err;
>+
>+ dom->page = NULL;
>+ dom->evtchn_fd = -1;
>+
>+ asprintf(&path, "/console/%d/domain", dom->domid);
>+ dompath = xs_read(xs, path, NULL);
>+ free(path);
>+ if (!dompath)
>+ return ENOENT;
>+
>+ err = xs_gather(xs,...
2007 Jul 09
0
[PATCH] Fix xm sysrq command for inactive managed domain
...(info, fn)(*args)
File "//usr/lib/python/xen/xend/XendDomainInfo.py", line 493, in send_sysrq
self.storeDom("control/sysrq", ''%c'' % key)
File "//usr/lib/python/xen/xend/XendDomainInfo.py", line 774, in storeDom
return xstransact.Store(self.dompath, *args)
File "//usr/lib/python/xen/xend/xenstore/xstransact.py", line 338, in Store
complete(path, lambda t: t.store(*args))
File "//usr/lib/python/xen/xend/xenstore/xstransact.py", line 352, in complete
t = xstransact(path)
File "//usr/lib/python/xen/xend/xen...
2011 Nov 13
0
Bug#648670: xm was unable determine an actual domU state under some conditions
...)
File "/usr/lib/xen-4.1/bin/../lib/python/xen/xend/XendDomainInfo.py", line 533, in shutdown
self.storeDom("control/shutdown", reason)
File "/usr/lib/xen-4.1/bin/../lib/python/xen/xend/XendDomainInfo.py", line 1705, in storeDom
return xstransact.Store(self.dompath, *args)
File "/usr/lib/xen-4.1/bin/../lib/python/xen/xend/xenstore/xstransact.py", line 347, in Store
complete(path, lambda t: t.store(*args))
File "/usr/lib/xen-4.1/bin/../lib/python/xen/xend/xenstore/xstransact.py", line 361, in complete
t = xstransact(path)
File...
2006 Apr 03
0
new box, won''t boot domU
...File "/opt/xen-3.0-testing.hg/dist/install/usr/lib/python/xen/xend/XendDomain.py", line 203, in refresh
self._add_domain(
File "/opt/xen-3.0-testing.hg/dist/install/usr/lib/python/xen/xend/XendDomainInfo.py", line 235, in recreate
vm = XendDomainInfo(xeninfo, domid, dompath, True, priv)
File "/opt/xen-3.0-testing.hg/dist/install/usr/lib/python/xen/xend/XendDomainInfo.py", line 433, in __init__
self.validateInfo()
File "/opt/xen-3.0-testing.hg/dist/install/usr/lib/python/xen/xend/XendDomainInfo.py", line 564, in validateInfo
self.check_n...
2007 Oct 31
3
Error: (9, ''Bad file descriptor'')
.../python/xen/xend/XendDomainInfo.py",
line 792, in _update_consoles
self.console_port = self.readDom(''console/port'')
File "/home/xen/xen-3.1-testing.hg/dist/install/usr/lib/python/xen/xend/XendDomainInfo.py",
line 845, in readDom
return xstransact.Read(self.dompath, *args)
File "/home/xen/xen-3.1-testing.hg/dist/install/usr/lib/python/xen/xend/xenstore/xstransact.py",
line 298, in Read
return complete(path, lambda t: t.read(*args))
File "/home/xen/xen-3.1-testing.hg/dist/install/usr/lib/python/xen/xend/xenstore/xstransact.py",
line...
2013 Apr 18
9
[PATCH v5 1/2] libxl: Introduce functions to add and remove USB devices to an HVM guest
...ice type: %d", usbdev->type);
+ return ERROR_FAIL;
+ }
+
+ xs_rm(ctx->xsh, XBT_NULL, dev_path);
+
+ return 0;
+}
+
+static int get_assigned_devices(libxl__gc *gc, uint32_t domid,
+ libxl__device_usb **list, int *num)
+{
+ char **devlist, *dompath;
+ unsigned int nd = 0;
+ int i, rc = 0;
+
+ *list = NULL;
+ *num = 0;
+
+ dompath = GCSPRINTF(USB_INFO_PATH,
+ libxl__xs_libxl_path(gc, domid));
+
+ devlist = libxl__xs_directory(gc, XBT_NULL, dompath, &nd);
+ if (!devlist)
+ goto out;
+
+...
2013 Apr 12
11
[PATCH v4 1/2] libxl: postpone backend name resolution
This adds a backend_domname field in libxl devices that contain a
backend_domid field, allowing either a domid or a domain name to be
specified in the configuration structures. The domain name is resolved
into a domain ID in the _setdefault function when adding the device.
This change allows the backend of the block devices to be specified
(which previously required passing the libxl_ctx down
2012 Sep 27
18
[PATCH 09/11] add iomem support to libxl
This patch adds a new option for xen config files for
directly mapping hardware io memory into a vm.
Signed-off-by: Matthew Fioravante <matthew.fioravante@jhuapl.edu>
diff --git a/docs/man/xl.cfg.pod.5 b/docs/man/xl.cfg.pod.5
index 013270d..428da21 100644
--- a/docs/man/xl.cfg.pod.5
+++ b/docs/man/xl.cfg.pod.5
@@ -496,6 +496,17 @@ is given in hexadecimal and may either a span e.g.
2006 Feb 11
2
Xend crashes repeatedly starting DomU - please help...
...ry.
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/xen/xend/XendDomain.py", line
203, in refresh
self._add_domain(
File "/usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py",
line 235, in recreate
vm = XendDomainInfo(xeninfo, domid, dompath, True, priv)
File "/usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py",
line 433, in __init__
self.validateInfo()
File "/usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py",
line 561, in validateInfo
self.check_name(self.info[''name''...
2006 Aug 08
11
architecture-specific stuff in xend
Hi Ewan, I''m almost ready to integrate some PPC-specific stuff into
xend, and I was wondering if you had a plan for how that should work.
First example: the device tree data structure we talked about a few
weeks ago. We will need to pass the config data to PPC code, probably in
XendDomainInfo.initDomain(), and then pass the resulting data structure
into libxc''s xc_linux_load()
2009 Nov 18
6
[PATCH 1/3] libxenlight: Clean up logging arrangements
...ror) in the messages passed to the
application''s logging callback.
* Use the new errno-including logging functions everywhere where
appropriate. In general, xc_... functions return errno values or 0;
xs_... functions return 0 or -1 (or some such) setting errno.
* When libxl_xs_get_dompath fails, do not treat it as an allocation
error. It isn''t: it usually means xenstored failed.
* Remove many spurious \n''s from log messages. (The applications log
callback is expected to add a \n if it wants to do that, so libxl''s
logging functions should be passes...
2013 Apr 04
28
[PATCH v3 0/3] libxl: memory management patches
Hi,
Here are three small but important libxl/xl memory management patches:
- libxl: xl mem-max et consortes must update static-max in xenstore too,
- xl: Allow user to configure xl mem-set behavior,
- xl: Improve xl documentation in regards to guest memory management.
Daniel
2012 Jul 04
53
[PATCH 00 of 10 v3] Automatic NUMA placement for xl
Hello,
Third version of the NUMA placement series Xen 4.2.
All the comments received during v2''s review have been addressed (more details
in single changelogs).
The most notable changes are the following:
- the libxl_cpumap --> libxl_bitmap renaming has been rebased on top of the
recent patches that allows us to allocate bitmaps of different sizes;
- the heuristics for deciding