Displaying 3 results from an estimated 3 matches for "watch_domain".
Did you mean:
arch_domain
2006 Sep 13
0
[PATCH] fix xenconsoled race
...n 0, error -22, li
ne 144
Signed-off-by: Max Zhen <max.zhen@sun.com>
diff -r c682ae7a1722 -r db465ecb164e tools/console/daemon/io.c
--- a/tools/console/daemon/io.c Fri Sep 01 12:16:21 2006 +0100
+++ b/tools/console/daemon/io.c Fri Sep 01 08:14:07 2006 -0700
@@ -293,12 +293,14 @@ static bool watch_domain(struct domain *
bool success;
sprintf(domid_str, "dom%u", dom->domid);
- if (watch)
+ if (watch) {
success = xs_watch(xs, dom->conspath, domid_str);
- else
+ if (success)
+ domain_create_ring(dom);
+ } else {
success = xs_unwatch(xs, dom->conspath, domid_str);
- if...
2013 Jan 10
10
[PATCH v2 1/2] xenconsoled: use grant references instead of map_foreign_range
...m->ring_ref = -1;
+ }
+ if (!dom->interface) {
+ /* Fall back to xc_map_foreign_range */
dom->interface = xc_map_foreign_range(
xc, dom->domid, getpagesize(),
PROT_READ|PROT_WRITE,
@@ -720,9 +744,7 @@ static void shutdown_domain(struct domain *d)
{
d->is_dead = true;
watch_domain(d, false);
- if (d->interface != NULL)
- munmap(d->interface, getpagesize());
- d->interface = NULL;
+ domain_unmap_interface(d);
if (d->xce_handle != NULL)
xc_evtchn_close(d->xce_handle);
d->xce_handle = NULL;
@@ -730,7 +752,7 @@ static void shutdown_domain(struct domain...
2012 Dec 13
3
[PATCH] xenconsoled: use grant references instead of map_foreign_range
...m->ring_ref = -1;
+ }
+ if (!dom->interface) {
+ /* Fall back to xc_map_foreign_range */
dom->interface = xc_map_foreign_range(
xc, dom->domid, getpagesize(),
PROT_READ|PROT_WRITE,
@@ -720,9 +743,7 @@ static void shutdown_domain(struct domain *d)
{
d->is_dead = true;
watch_domain(d, false);
- if (d->interface != NULL)
- munmap(d->interface, getpagesize());
- d->interface = NULL;
+ domain_unmap_interface(d);
if (d->xce_handle != NULL)
xc_evtchn_close(d->xce_handle);
d->xce_handle = NULL;
@@ -736,6 +757,13 @@ void enum_domains(void)
xc_dominfo_t do...