Displaying 5 results from an estimated 5 matches for "handle_io".
2013 Jan 03
20
[PATCH] Switch to poll in xenconsoled's io loop.
...@@ -28,7 +28,7 @@
#include <stdlib.h>
#include <errno.h>
#include <string.h>
-#include <sys/select.h>
+#include <poll.h>
#include <fcntl.h>
#include <unistd.h>
#include <termios.h>
@@ -930,7 +930,6 @@ static void handle_log_reload(void)
void handle_io(void)
{
- fd_set readfds, writefds;
int ret;
if (log_hv) {
@@ -959,21 +958,33 @@ void handle_io(void)
for (;;) {
struct domain *d, *n;
- int max_fd = -1;
- struct timeval timeout;
+ int poll_timeout; /* timeout in milliseconds */
struct timespec ts;
long long now, next_timeou...
2012 Dec 13
3
[PATCH] xenconsoled: use grant references instead of map_foreign_range
...m_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_io(void)
errno, strerror(errno));
goto out;
}
+
log_hv_fd = create_hv_log();
if (log_hv_fd == -1)
goto out;
@@ -1097,6 +1126,10 @@ void handle_io(void)
xc_evtchn_close(xce_handle);
xce_handle = NULL;
}
+ if (xcg_handle != NULL) {
+ xc_gnttab_close(xcg_handle);
+ xc...
2013 Jan 10
10
[PATCH v2 1/2] xenconsoled: use grant references instead of map_foreign_range
...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(errno));
+ }
+
+ enum_domains();
+
for (;;) {
struct domain *d, *n;
int max_fd = -1;
@@ -1097,6 +1127,10 @@ void...
2012 Dec 06
23
1000 Domains: Not able to access Domu via xm console from Dom0
Hi all,
I am running Xen 4.1.2 with ubuntu Dom0.
I have essentially got 1000 Modified Mini-OS DomU''s running at the same
time. When i try and access the 1000th domain console:
xm console DOM1000
xenconsole: could not read tty from store: No such file or directory
The domain is alive and running according to xentop, and has been for some
time.
I can successfully access the first 338
2012 Dec 06
23
1000 Domains: Not able to access Domu via xm console from Dom0
Hi all,
I am running Xen 4.1.2 with ubuntu Dom0.
I have essentially got 1000 Modified Mini-OS DomU''s running at the same
time. When i try and access the 1000th domain console:
xm console DOM1000
xenconsole: could not read tty from store: No such file or directory
The domain is alive and running according to xentop, and has been for some
time.
I can successfully access the first 338