Displaying 3 results from an estimated 3 matches for "enum_pass".
2012 Dec 13
3
[PATCH] xenconsoled: use grant references instead of map_foreign_range
...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 dominfo;
struct domain *dom;
+ if (enum_pass == 0) {
+ xcg_handle = xc_gnttab_open(NULL, 0);
+ if (xcg_handle == NULL) {
+ dolog(LOG_DEBUG, "Failed to open xcg handle: %d (%s)",
+ errno, strerror(errno));
+ }
+ }
enum_pass++;
while (xc_domain_getinfo(xc, domid, 1, &dominfo) == 1) {
@@ -946,6 +974,7 @@ void handle...
2013 Jan 03
20
[PATCH] Switch to poll in xenconsoled's io loop.
...(d->master_fd) & POLLIN)
handle_tty_read(d);
- if (d->master_fd != -1 && FD_ISSET(d->master_fd,
- &writefds))
+ if (d->master_fd != -1 &&
+ FD_REVENTS(d->master_fd) & POLLOUT)
handle_tty_write(d);
if (d->last_seen != enum_pass)
@@ -1082,6 +1088,10 @@ void handle_io(void)
if (d->is_dead)
cleanup_domain(d);
}
+
+#undef MAX_POLL_FDS
+#undef SET_FDS
+#undef FD_REVENTS
}
out:
--
1.7.10.4
2013 Jan 10
10
[PATCH v2 1/2] xenconsoled: use grant references instead of map_foreign_range
...;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 *d)
static unsigned enum_pass = 0;
-void enum_domains(void)
+static void enum_domains(void)
{
int domid = 1;
xc_dominfo_t dominfo;
@@ -957,6 +979,14 @@ void handle_io(void)
}
}
+ xcg_handle = xc_gnttab_open(NULL, 0);
+ if (xcg_handle == NULL) {
+ dolog(LOG_DEBUG, "Failed to open xcg handle: %d (%s)",
+...