Add persistent guest & hv logging inxenconsoled.
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 9 lines
# HG changeset patch
# User [email protected]
# Date 1180964952 -3600
# Node IDedf407a3dd70db0af60617b6c90aa3589d7c1c7d# Parentda3185b03113611fd322e439f17103af4d11b064Add persistent guest & hv logging in xenconsoled.Signed-off-by Daniel P. Berrange <[email protected]>
Review
Quoted 8 lines
(quoted diff) +8
-0+ namepath = xs_get_domain_path(xs, dom->domid); + s = realloc(namepath, strlen(namepath) + 6); + if (s == NULL) { + free(namepath); + return -1; + } + strcat(namepath, "/name"); + data = xs_read(xs, XBT_NULL, namepath, &len);
Isn't this missing namepath = s?
Review
Quoted 6 lines
(quoted diff) +1
-1- ret = select(max_fd + 1, &readfds, &writefds, 0, NULL); + /* XXX I wish we didn't have to busy wait forhypervisor logs
(quoted diff) +1
-0+ * but there's no obvious way to get eventchannel notifications
(quoted diff) +1
-0+ * for new HV log data as we can with guest */
Isn't that what the VIRQ_CON_RING virq was added for? See changeset:
# HG changeset patch
# User [email protected]
# Date 1173367270 0
# Node ID 38513d22d23420a90f94e7e0f70c564100e83851
# Parent 90e8d8169afd8acdd33e262012a8098cd3f8c944
xen: Provide notification of console updates via VIRQ.
The readconsolering capabilities provide the opportunity to provide console output to other clients (remote systems, logging systems, etc). This patchs adds the ability to generate a notification of a change in the console buffer.
Review
Quoted 2 lines
(quoted diff) +2
-0+ { "log", 1, 0, 'l' }, + { "log-dir", 1, 0, 'r' },
That 'r' option is not the most intuitively named... What's wrong with 'd'?
Review int main(int argc, char **argv) · line 141
Quoted 6 lines
(quoted diff) +2
-0@@ -99,6 +137,18 @@ int main(int argc, char **argv) handle_io(); closelog(); + free(log_dir); + free(pidfile);
Are you paid by the line? ;-)
christian