search for: dom_head

Displaying 2 results from an estimated 2 matches for "dom_head".

2013 Jan 03
20
[PATCH] Switch to poll in xenconsoled's io loop.
...(xs), POLLIN); + + if (log_hv) + SET_FDS(xc_evtchn_fd(xce_handle), POLLIN); if (clock_gettime(CLOCK_MONOTONIC, &ts) < 0) return; @@ -982,11 +993,7 @@ void handle_io(void) /* Re-calculate any event counter allowances & unblock domains with new allowance */ for (d = dom_head; d; d = d->next) { - /* Add 5ms of fuzz since select() often returns - a couple of ms sooner than requested. Without - the fuzz we typically do an extra spin in select() - with a 1/2 ms timeout every other iteration */ - if ((now+5) > d->next_period) { + if (now > d...
2005 Aug 30
4
Re: [Xen-changelog] New console transport and update xenconsoled.
...-} >- > struct domain > { > int domid; >@@ -90,9 +58,74 @@ > bool is_dead; > struct buffer buffer; > struct domain *next; >+ unsigned long mfn; >+ int local_port; >+ int remote_port; >+ char *page; >+ int evtchn_fd; > }; > > static struct domain *dom_head; >+ >+struct ring_head >+{ >+ u32 cons; >+ u32 prod; >+ char buf[0]; >+} __attribute__((packed)); >+ >+#define PAGE_SIZE (getpagesize()) >+#define XENCONS_RING_SIZE (PAGE_SIZE/2 - sizeof (struct ring_head)) >+#define XENCONS_IDX(cnt) ((cnt) % XENCONS_RING_SIZE) >...