Displaying 20 results from an estimated 56 matches for "xs_write".
Did you mean:
xb_write
2005 Oct 03
26
xenstore documentation
...te the Wiki with current information. I have been spending quite a
lot of time trying to get my domU connected to a block device in dom0
using a home-brewed domain creation tool, and I am still at the
''Timeout connecting to device!'' stage.
My stragegy has been to log all calls to xs_write() under Xend, and
then replay those same calls with my own tool on a freshly booted
machine, but to no avail. In general things work with Xend, at least
as long as I am not trying to restart xenstored without a reboot.
I have noticed that with the most recent Xen-unstable, the store is
now split i...
2011 Jun 29
5
[PATCH] xen: introduce xen_change_state_handler
...truct xs_handle *xs, const char *state)
{
char path[50];
+ if (xs == NULL) {
+ fprintf(stderr, "xenstore connection not initialized\n");
+ exit(1);
+ }
+
snprintf(path, sizeof (path), "/local/domain/0/device-model/%u/state", xen_domid);
- if (!xs_write(s->xenstore, XBT_NULL, path, state, strlen(state))) {
+ if (!xs_write(xs, XBT_NULL, path, state, strlen(state))) {
fprintf(stderr, "error recording dm state\n");
exit(1);
}
@@ -823,15 +828,20 @@ static void xen_main_loop_prepare(XenIOState *state)
if (evt...
2010 Aug 13
0
[PATCH 1 of 4] libxl_device_generic_add: handle NULL fents or bents
...x->xsh, t, frontend_path);
- xs_rm(ctx->xsh, t, backend_path);
+ if (fents) {
+ xs_rm(ctx->xsh, t, frontend_path);
+ xs_mkdir(ctx->xsh, t, frontend_path);
+ xs_set_permissions(ctx->xsh, t, frontend_path, frontend_perms, ARRAY_SIZE(frontend_perms));
+ xs_write(ctx->xsh, t, libxl_sprintf(&gc, "%s/backend", frontend_path), backend_path, strlen(backend_path));
+ libxl_xs_writev(&gc, t, frontend_path, fents);
+ }
- xs_mkdir(ctx->xsh, t, frontend_path);
- xs_set_permissions(ctx->xsh, t, frontend_path, frontend_perm...
2011 Nov 04
2
[PATCH V3 REBASE 1/2] libxl_qmp: Introduce libxl__qmp_pci_del
To remove a pci passthough device from QEMU (upstream).
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
---
tools/libxl/libxl_internal.h | 2 ++
tools/libxl/libxl_qmp.c | 35 +++++++++++++++++++++++++++++++++++
2 files changed, 37 insertions(+), 0 deletions(-)
diff --git a/tools/libxl/libxl_internal.h b/tools/libxl/libxl_internal.h
index 1dff211..84da6b1 100644
---
2010 Aug 12
0
[PATCH, v2]: xl: Implement per-API-call garbage-collection lifetime
...(ctx, XL_LOG_ERROR, "cannot allocate create paths");
+ libxl_free_all(&gc);
return ERROR_FAIL;
}
@@ -147,42 +148,47 @@ retry_transaction:
xs_mkdir(ctx->xsh, t, vm_path);
xs_set_permissions(ctx->xsh, t, vm_path, roperm, ARRAY_SIZE(roperm));
- xs_write(ctx->xsh, t, libxl_sprintf(ctx, "%s/vm", dom_path), vm_path, strlen(vm_path));
+ xs_write(ctx->xsh, t, libxl_sprintf(&gc, "%s/vm", dom_path), vm_path, strlen(vm_path));
rc = libxl_domain_rename(ctx, *domid, 0, info->name, t);
- if (rc) return rc;
+ if...
2010 Sep 02
7
[PATCH] libxl: make libxl communicate with xenstored by socket or xenbus driver
..._spawn;
char *kvs[3];
- int rc;
struct xs_handle *xsh;
- xsh = xs_daemon_open();
/* we mustn''t use the parent''s handle in the child */
kvs[0] = "image/device-model-pid";
@@ -1398,9 +1396,10 @@
return;
kvs[2] = NULL;
- rc = xs_writev(xsh, XBT_NULL, starting->dom_path, kvs);
- if (rc)
- return;
+ xsh = xs_daemon_open();
+ if (!xsh)
+ xsh = xs_domain_open();
+ xs_writev(xsh, XBT_NULL, starting->dom_path, kvs);
xs_daemon_close(xsh);
}
diff -r eff592364826 tools/libxl/libxl_device.c
--- a/to...
2012 Jan 05
1
[PATCH] add feature flag to xenstore for XS_RESET_WATCHES
...toolstacks (such as EC2) do not ignore unknown commands properly.
Signed-off-by: Olaf Hering <olaf@aepfle.de>
diff -r 3a22ed3ec534 -r 2f5a98692acd tools/libxl/libxl_create.c
--- a/tools/libxl/libxl_create.c
+++ b/tools/libxl/libxl_create.c
@@ -434,6 +434,7 @@ retry_transaction:
libxl__xs_writev(gc, t, libxl__sprintf(gc, "%s/platform", dom_path), info->platformdata);
xs_write(ctx->xsh, t, libxl__sprintf(gc, "%s/control/platform-feature-multiprocessor-suspend", dom_path), "1", 1);
+ xs_write(ctx->xsh, t, libxl__sprintf(gc, "%s/control/p...
2008 Sep 05
0
[PATCH] Janitorial work on xc_save.c
...warnx("failed to unmask suspend notification channel: %d", rc);
/* notify xend that it can do device migration */
printf("suspended\n");
@@ -195,11 +192,9 @@
/* Tell qemu that we want it to start writing log-dirty bits to the
* other buffer */
- if (!xs_write(xs, XBT_NULL, qemu_next_active_path, &digit, 1)) {
+ if (!xs_write(xs, XBT_NULL, qemu_next_active_path, &digit, 1))
errx(1, "can''t write next-active to store path (%s)\n",
- qemu_next_active_path);
- exit(1);
- }
+ qemu_next_active...
2010 Aug 09
1
[PATCH 1 of 4] xenconsoled: do not write the pty under serial
...- if (!success)
- goto out;
- data = xs_read(xs, XBT_NULL, path, &len);
- if (data) {
- dom->buffer.max_capacity = strtoul(data, 0, 0);
- free(data);
- }
- free(path);
-
- success = asprintf(&path, "%s/tty", dom->serialpath) != -1;
- if (!success)
- goto out;
- success = xs_write(xs, XBT_NULL, path, slave, strlen(slave));
- free(path);
- if (!success)
- goto out;
-
- if (dom->use_consolepath) {
success = (asprintf(&path, "%s/tty", dom->conspath) != -1);
if (!success)
goto out;
@@ -479,6 +458,23 @@ static int domain_create_tty(struct doma
fr...
2011 Dec 16
13
[PATCH 0 of 4] Support for VM generation ID save/restore and migrate
This patch series adds support for preservation of the VM generation ID buffer
address in xenstore across save/restore and migrate, and also code to
increment the value in all cases except for migration.
Patch 1 modifies the guest ro and rw node creation to an open coding style
and cleans up some extraneous node creation.
Patch 2 modifies creation of the hvmloader key in xenstore and adds
2008 Sep 08
0
Disappearing TAP interface
...page at pfn 3ffff
buffered io page at pfn 3fffd
xs_read(/vm/e2a537ca-5ef5-e87d-6505-855529af3ea4/rtc/timeoffset): read
error
I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0
I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0
Triggered log-dirty buffer switch
xs_write(/vm/e2a537ca-5ef5-e87d-6505-855529af3ea4/rtc/timeoffset,
rtc/timeoffset): write error
xs_write(/vm/e2a537ca-5ef5-e87d-6505-855529af3ea4/rtc/timeoffset,
rtc/timeoffset): write error
---------------------------------------------------------------------------
name = "vm-002_win"
uuid = &qu...
2011 Dec 14
18
[PATCH 0 of 3] Support for VM generation ID save/restore and migrate
This patch series adds support for preservation of the VM generation ID buffer
address in xenstore across save/restore and migrate, and also code to
increment the value in all cases except for migration.
The first patch modifies creation of the hvmloader key in xenstore and adds
creation of a new read/write hvmloader/generation-id-addr key.
The second patch changes hvmloader to use the new key (as
2009 Nov 18
6
[PATCH 1/3] libxenlight: Clean up logging arrangements
...@@ int libxl_domain_shutdown(struct libxl_ctx *ctx, uint32_t domid, int req)
return ERROR_INVAL;
dom_path = libxl_xs_get_dompath(ctx, domid);
+ if (!dom_path)
+ return ERROR_FAIL;
+
shutdown_path = libxl_sprintf(ctx, "%s/control/shutdown", dom_path);
xs_write(ctx->xsh, XBT_NULL, shutdown_path, req_table[req], strlen(req_table[req]));
@@ -347,20 +353,21 @@ static int libxl_destroy_device_model(struct libxl_ctx *ctx, uint32_t domid)
pid = libxl_xs_read(ctx, XBT_NULL, libxl_sprintf(ctx, "/local/domain/%d/image/device-model-pid", domid))...
2005 Aug 04
0
[PATCH 6/11] Xenstore watch rework
...saction, node)) {
+ send_error(conn, EROFS);
+ return;
+ }
if (transaction_block(conn, node))
- return true;
+ return;
offset = strlen(vec[0]) + strlen(vec[1]) + 2;
datalen = in->used - offset;
@@ -921,193 +930,244 @@
mode = XS_PERM_WRITE|XS_PERM_CREATE;
else if (streq(vec[1], XS_WRITE_CREATE_EXCL))
mode = XS_PERM_WRITE|XS_PERM_CREATE;
- else
- return send_error(conn, EINVAL);
-
- if (!check_node_perms(conn, node, mode))
- return send_error(conn, errno);
+ else {
+ send_error(conn, EINVAL);
+ return;
+ }
+
+ if (!check_node_perms(conn, node, mode)) {
+ send_error(conn, er...
2008 Dec 10
6
WIndows 2008, Quard Core Opteron, xen
Hello
I have trouble with Quard Core Opteron and windows 2008(x86).
By the way Windows device manager show 4 processors, BUT task manager
show only one core.
I found that my problem is not new. But solutions, provided by those
people did not helped me.
By the way, my windows is enterprise version, and as far as I know, it
allows up to 8 processor sockets, so the trouble is not, that windows
2006 Sep 26
15
RE: Individual passwords for guest VNC servers ?
> Thanks all point about security, I''ll do as follows.
> I thought that the point was the following two.
>
>
> 1. Storage place of encrypted password
> Should I store it in /etc/xen/passwd ?
> Or, should I wait for DB of Xen that will be released in
> the future?
The xend life cycle management patches were posted by Alistair a couple
of months back.
2024 Feb 05
7
Bug#1063270: xen: NMU diff for 64-bit time_t transition
...et_permissions at VERS_4.0 4.16.0
- xs_set_target at VERS_4.0 4.16.0
- xs_strings_to_perms at VERS_4.0 4.16.0
- xs_suspend_evtchn_port at VERS_4.0 4.16.0
- xs_transaction_end at VERS_4.0 4.16.0
- xs_transaction_start at VERS_4.0 4.16.0
- xs_unwatch at VERS_4.0 4.16.0
- xs_watch at VERS_4.0 4.16.0
- xs_write at VERS_4.0 4.16.0
- xs_write_all at VERS_4.0 4.16.0
diff -Nru xen-4.17.3+10-g091466ba55/debian/libxenstore4t64.install xen-4.17.3+10-g091466ba55/debian/libxenstore4t64.install
--- xen-4.17.3+10-g091466ba55/debian/libxenstore4t64.install 1970-01-01 00:00:00.000000000 +0000
+++ xen-4.17.3+10-g091466...
2005 Aug 30
4
Re: [Xen-changelog] New console transport and update xenconsoled.
..., &term);
> }
>
>- xs_mkdir(xs, "/console");
>- snprintf(path, sizeof(path), "/console/%d", dom->domid);
>- xs_mkdir(xs, path);
>- strcat(path, "/tty");
>-
>+ asprintf(&path, "/console/%d/tty", dom->domid);
> xs_write(xs, path, slave, strlen(slave), O_CREAT);
>-
>- snprintf(path, sizeof(path), "/console/%d/limit", dom->domid);
>+ free(path);
>+
>+ asprintf(&path, "/console/%d/limit", dom->domid);
> data = xs_read(xs, path, &len);
> if (data) {
>...
2007 Oct 24
16
PATCH 0/10: Merge PV framebuffer & console into QEMU
The following series of 10 patches is a merge of the xenfb and xenconsoled
functionality into the qemu-dm code. The general approach taken is to have
qemu-dm provide two machine types - one for xen paravirt, the other for
fullyvirt. For compatability the later is the default. The goals overall
are to kill LibVNCServer, remove alot of code duplication and/or parallel
impls of the same concepts, and
2010 Aug 12
59
[PATCH 00/15] RFC xen device model support
Hi all,
this is the long awaited patch series to add xen device model support in
qemu; the main author is Anthony Perard.
Developing this series we tried to come up with the cleanest possible
solution from the qemu point of view, limiting the amount of changes to
common code as much as possible. The end result still requires a couple
of hooks in piix_pci but overall the impact should be very