search for: domain_create_r

Displaying 7 results from an estimated 7 matches for "domain_create_r".

Did you mean: domain_create
2006 Sep 13
0
[PATCH] fix xenconsoled race
# HG changeset patch # User max.zhen@sun.com # Node ID db465ecb164e6d89290ae3d4fcc029e29305ae7d # Parent c682ae7a17224dc5576ba3c5db47766b2a7dc159 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 po...
2007 Feb 09
0
[PATCH] xenconsoled: ignore spurious watch event
.../console/daemon/io.c --- a/tools/console/daemon/io.c +++ b/tools/console/daemon/io.c @@ -63,6 +63,7 @@ struct domain char *conspath; int ring_ref; evtchn_port_t local_port; + evtchn_port_t remote_port; int xce_handle; struct xencons_interface *interface; }; @@ -234,6 +235,9 @@ static int domain_create_ring(struct dom if (err) goto out; + if ((ring_ref == dom->ring_ref) && (remote_port == dom->remote_port)) + goto out; + if (ring_ref != dom->ring_ref) { if (dom->interface != NULL) munmap(dom->interface, getpagesize()); @@ -249,6 +253,7 @@ static int domain_cr...
2007 Feb 20
0
[PATCH] Xenconsoled should ignore spurious watch event. Otherwise, it can rebind to the same evtchn of a dying domU during suspending and cause below error message:
.../console/daemon/io.c --- a/tools/console/daemon/io.c +++ b/tools/console/daemon/io.c @@ -66,6 +66,7 @@ struct domain char *conspath; int ring_ref; evtchn_port_t local_port; + evtchn_port_t remote_port; int xce_handle; struct xencons_interface *interface; }; @@ -290,6 +291,9 @@ static int domain_create_ring(struct dom if (err) goto out; + if ((ring_ref == dom->ring_ref) && (remote_port == dom->remote_port)) + goto out; + if (ring_ref != dom->ring_ref) { if (dom->interface != NULL) munmap(dom->interface, getpagesize()); @@ -305,6 +309,7 @@ static int domain_cr...
2012 Dec 13
3
[PATCH] xenconsoled: use grant references instead of map_foreign_range
...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 + munmap(dom->interface, getpagesize()); + dom->interface = NULL; +} static int domain_create_ring(struct domain *dom) { @@ -522,9 +535,19 @@ static int domain_create_ring(struct domain *dom) } free(type); - if (ring_ref != dom->ring_ref) { - if (dom->interface != NULL) - munmap(dom->interface, getpagesize()); + /* If using ring_ref and it has changed, remap */ + if (ring_r...
2013 Jan 10
10
[PATCH v2 1/2] xenconsoled: use grant references instead of map_foreign_range
...ce(struct domain *dom) +{ + if (dom->interface == NULL) + return; + if (xcg_handle && dom->ring_ref == -1) + xc_gnttab_munmap(xcg_handle, dom->interface, 1); + else + munmap(dom->interface, getpagesize()); + dom->interface = NULL; + dom->ring_ref = -1; +} static int domain_create_ring(struct domain *dom) { @@ -522,9 +536,19 @@ static int domain_create_ring(struct domain *dom) } free(type); - if (ring_ref != dom->ring_ref) { - if (dom->interface != NULL) - munmap(dom->interface, getpagesize()); + /* If using ring_ref and it has changed, remap */ + if (ring_r...
2005 Aug 30
4
Re: [Xen-changelog] New console transport and update xenconsoled.
...fmt, result) == 0) >+ ret = EINVAL; >+ free(p); >+ } 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) >...
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