Displaying 6 results from an estimated 6 matches for "xs_gather".
2012 Dec 13
3
[PATCH] xenconsoled: use grant references instead of map_foreign_range
...7 @@ static int log_hv_fd = -1;
static evtchn_port_or_error_t log_hv_evtchn = -1;
static xc_interface *xch; /* why does xenconsoled have two xc handles ? */
static xc_evtchn *xce_handle = NULL;
+static xc_gnttab *xcg_handle = NULL;
struct buffer {
char *data;
@@ -501,6 +503,17 @@ static int xs_gather(struct xs_handle *xs, const char *dir, ...)
va_end(ap);
return ret;
}
+
+static void domain_unmap_interface(struct domain *dom)
+{
+ if (dom->interface == NULL)
+ return;
+ if (xcg_handle && dom->ring_ref == -1)
+ xc_gnttab_munmap(xcg_handle, dom->interface, 1);
+ else
+ mu...
2006 Sep 13
0
[PATCH] fix xenconsoled race
...682ae7a17224dc5576ba3c5db47766b2a7dc159
Shouldn''t call domain_create_ring() for a domU which is shutting down.
There is a race condition between domain_create_ring() and the removal of the do
mU entry from xenstore. If the removal of the domU entry from xenstore comes lat
er than the first xs_gather() call in domain_create_ring(), it will go on and bi
nd the evtchn port to the dying domU, which will cause below error message:
(XEN) (file=event_channel.c, line=144) EVTCHNOP failure: domain 0, error -22, li
ne 144
Signed-off-by: Max Zhen <max.zhen@sun.com>
diff -r c682ae7a1722 -r db465ec...
2013 Jan 10
10
[PATCH v2 1/2] xenconsoled: use grant references instead of map_foreign_range
...7 @@ static int log_hv_fd = -1;
static evtchn_port_or_error_t log_hv_evtchn = -1;
static xc_interface *xch; /* why does xenconsoled have two xc handles ? */
static xc_evtchn *xce_handle = NULL;
+static xc_gnttab *xcg_handle = NULL;
struct buffer {
char *data;
@@ -501,6 +503,18 @@ static int xs_gather(struct xs_handle *xs, const char *dir, ...)
va_end(ap);
return ret;
}
+
+static void domain_unmap_interface(struct domain *dom)
+{
+ if (dom->interface == NULL)
+ return;
+ if (xcg_handle && dom->ring_ref == -1)
+ xc_gnttab_munmap(xcg_handle, dom->interface, 1);
+ else
+ mu...
2005 Aug 30
4
Re: [Xen-changelog] New console transport and update xenconsoled.
...ata = xs_read(xs, path, &len);
> if (data) {
> dom->buffer.max_capacity = strtoul(data, 0, 0);
> free(data);
> }
>+ free(path);
> }
>
> return master;
>+}
>+
>+/* Takes tuples of names, scanf-style args, and void **, NULL terminated. */
>+int xs_gather(struct xs_handle *xs, const char *dir, ...)
>+{
>+ va_list ap;
>+ const char *name;
>+ char *path;
>+ int ret = 0;
>+
>+ va_start(ap, dir);
>+ while (ret == 0 && (name = va_arg(ap, char *)) != NULL) {
>+ const char *fmt = va_arg(ap, char *);
>+ void *result =...
2012 Apr 02
23
[PATCH 00 of 18] [v2] tools: fix bugs and build errors triggered by -O2 -Wall -Werror
Changes:
tools/blktap: remove unneeded pointer dereferencing in convert_dev_name_to_num
tools/blktap: constify string arrays in convert_dev_name_to_num
tools/blktap: fix params and physical-device parsing
tools/blktap: remove unneeded pointer dereferencing from img2qcow.c
tools/blktap: remove unneeded pointer dereferencing from qcow2raw.c
tools/blktap2: fix build errors caused by Werror in
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