Displaying 3 results from an estimated 3 matches for "enum_domains".
Did you mean:
num_domains
2012 Dec 13
3
[PATCH] xenconsoled: use grant references instead of map_foreign_range
...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 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_getin...
2013 Jan 10
10
[PATCH v2 1/2] xenconsoled: use grant references instead of map_foreign_range
...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)",
+ errno, strerror(err...
2005 Aug 30
4
Re: [Xen-changelog] New console transport and update xenconsoled.
...>- throttle ourselves here since we do proper
>- queueing to give the domains a shot at pulling out
>- the data. Fixing xcs is not worth it as it''s
>- going away */
>- tv.tv_usec = 1000;
>- select(0, 0, 0, 0, &tv);
>-#endif
>- }
> enum_domains();
>
>- if (FD_ISSET(xcs_data_fd, &readfds)) {
>+ if (FD_ISSET(xcs_data_fd, &readfds))
> handle_xcs_msg(xcs_data_fd);
>- }
>
> for (d = dom_head; d; d = d->next) {
>- if (!d->is_dead && FD_ISSET(d->tty_fd, &readfds)) {
>+ if (d-&...