Re: [Xen-devel] XSA-180 follow-up: repurpose xenconsoled for logging

2016-06-21 Thread Jim Fehlig
On 06/21/2016 09:53 AM, George Dunlap wrote: > On 21/06/16 16:11, Ian Jackson wrote: >> Wei Liu writes ("Re: XSA-180 follow-up: repurpose xenconsoled for logging"): >>> Here is what we have gathered so far: >> ... >>> We can, however, just make recommendation that system administrators can >>> easi

Re: [Xen-devel] XSA-180 follow-up: repurpose xenconsoled for logging

2016-06-21 Thread George Dunlap
On 21/06/16 17:04, Ian Jackson wrote: > My point was that I think we should decide first what our proposed > solution will look like, and _then_ whether it should be in libxlu or > libxl. Indeed. I agree that direct consumers of xl are an important "market segment" that we need to support. I'd s

Re: [Xen-devel] XSA-180 follow-up: repurpose xenconsoled for logging

2016-06-21 Thread Ian Jackson
George Dunlap writes ("Re: XSA-180 follow-up: repurpose xenconsoled for logging"): > I think that having the option to pass an fd in would be useful and will > probably be wanted at some point; I think libvirt for instance should > probably be modified to use such an interface once it's available

Re: [Xen-devel] XSA-180 follow-up: repurpose xenconsoled for logging

2016-06-21 Thread George Dunlap
On 21/06/16 16:11, Ian Jackson wrote: > Wei Liu writes ("Re: XSA-180 follow-up: repurpose xenconsoled for logging"): >> Here is what we have gathered so far: > ... >> We can, however, just make recommendation that system administrators can >> easily set up and call it a day. There are suggestions t

Re: [Xen-devel] XSA-180 follow-up: repurpose xenconsoled for logging

2016-06-21 Thread Ian Jackson
Juergen Gross writes ("Re: [Xen-devel] XSA-180 follow-up: repurpose xenconsoled for logging"): > Huh? Excerpt from `man logrotate`: > > Each log file may be handled daily, weekly, monthly, or when it grows > too large. > > So why is logrotate not suitable? logr

Re: [Xen-devel] XSA-180 follow-up: repurpose xenconsoled for logging

2016-06-21 Thread Ian Jackson
Wei Liu writes ("Re: XSA-180 follow-up: repurpose xenconsoled for logging"): > Here is what we have gathered so far: ... > We can, however, just make recommendation that system administrators can > easily set up and call it a day. There are suggestions that we can > recommend conserver or sympathy,

Re: [Xen-devel] XSA-180 follow-up: repurpose xenconsoled for logging

2016-06-21 Thread Juergen Gross
On 21/06/16 16:46, Wei Liu wrote: > Here is what we have gathered so far: > > 1. Virtlogd is not the right answer to XSA-180 because it is inherently >designed to work within libvirt. > 2. Syslog is not suitable because it doesn't provide a fd for QEMU to >write to. > 3. Logrotate is not s

Re: [Xen-devel] XSA-180 follow-up: repurpose xenconsoled for logging

2016-06-21 Thread Wei Liu
Here is what we have gathered so far: 1. Virtlogd is not the right answer to XSA-180 because it is inherently designed to work within libvirt. 2. Syslog is not suitable because it doesn't provide a fd for QEMU to write to. 3. Logrotate is not suitable because it only rotates periodically. 4.

Re: [Xen-devel] XSA-180 follow-up: repurpose xenconsoled for logging

2016-06-07 Thread Wei Liu
On Mon, Jun 06, 2016 at 03:47:37PM -0500, Doug Goldstein wrote: > On 6/6/16 5:12 AM, George Dunlap wrote: > > On 03/06/16 18:38, Andrew Cooper wrote: > >> On 01/06/16 15:00, Wei Liu wrote: > >>> Hi all > >>> > > > > > FWIW, the libvirt project has exactly the same problem, and they did the > > a

Re: [Xen-devel] XSA-180 follow-up: repurpose xenconsoled for logging

2016-06-07 Thread Wei Liu
On Tue, Jun 07, 2016 at 10:57:14AM +0100, George Dunlap wrote: > On 06/06/16 16:48, Wei Liu wrote: > >> A distro which isn't equipped to deal with these things is of no > >> practical use in the real world. > >> > >> Any distro we care about supporting is equipped to deal with logs. > >> > >>> > >>

Re: [Xen-devel] XSA-180 follow-up: repurpose xenconsoled for logging

2016-06-07 Thread George Dunlap
On 06/06/16 16:48, Wei Liu wrote: >> A distro which isn't equipped to deal with these things is of no >> practical use in the real world. >> >> Any distro we care about supporting is equipped to deal with logs. >> >>> >>> I agree that if logging using existing logging systems were workable, >>> tha

Re: [Xen-devel] XSA-180 follow-up: repurpose xenconsoled for logging

2016-06-06 Thread Doug Goldstein
On 6/6/16 5:12 AM, George Dunlap wrote: > On 03/06/16 18:38, Andrew Cooper wrote: >> On 01/06/16 15:00, Wei Liu wrote: >>> Hi all >>> > FWIW, the libvirt project has exactly the same problem, and they did the > analog of what Wei is proposing -- they added a new daemon, virtlogd, to > handle all

Re: [Xen-devel] XSA-180 follow-up: repurpose xenconsoled for logging

2016-06-06 Thread Wei Liu
On Fri, Jun 03, 2016 at 05:57:29PM +0100, Ian Jackson wrote: > Wei Liu writes ("XSA-180 follow-up: repurpose xenconsoled for logging"): > > XXX DRAFT DRAFT DRAFT XXX > > Thanks! > > > Per domain logging via xenconsoled > > == > > > > As of Xen release XXX, xencons

Re: [Xen-devel] XSA-180 follow-up: repurpose xenconsoled for logging

2016-06-06 Thread Wei Liu
On Mon, Jun 06, 2016 at 02:03:45PM +0100, Andrew Cooper wrote: > On 06/06/16 11:12, George Dunlap wrote: > > On 03/06/16 18:38, Andrew Cooper wrote: > >> On 01/06/16 15:00, Wei Liu wrote: > >>> Hi all > >>> > >>> During the discussion of XSA-180 Ian came up with the idea that we > >>> repurpose xen

Re: [Xen-devel] XSA-180 follow-up: repurpose xenconsoled for logging

2016-06-06 Thread Andrew Cooper
On 06/06/16 11:12, George Dunlap wrote: > On 03/06/16 18:38, Andrew Cooper wrote: >> On 01/06/16 15:00, Wei Liu wrote: >>> Hi all >>> >>> During the discussion of XSA-180 Ian came up with the idea that we >>> repurpose xenconsoled to handle logging. I've done some research (and >>> some coding as w

Re: [Xen-devel] XSA-180 follow-up: repurpose xenconsoled for logging

2016-06-06 Thread George Dunlap
On 03/06/16 18:38, Andrew Cooper wrote: > On 01/06/16 15:00, Wei Liu wrote: >> Hi all >> >> During the discussion of XSA-180 Ian came up with the idea that we >> repurpose xenconsoled to handle logging. I've done some research (and >> some coding as well!). >> >> In my reply to George the other day

Re: [Xen-devel] XSA-180 follow-up: repurpose xenconsoled for logging

2016-06-03 Thread Andrew Cooper
On 01/06/16 15:00, Wei Liu wrote: > Hi all > > During the discussion of XSA-180 Ian came up with the idea that we > repurpose xenconsoled to handle logging. I've done some research (and > some coding as well!). > > In my reply to George the other day: > >> I just read the code of virtlogd and xenco

Re: [Xen-devel] XSA-180 follow-up: repurpose xenconsoled for logging

2016-06-03 Thread Ian Jackson
Wei Liu writes ("XSA-180 follow-up: repurpose xenconsoled for logging"): > XXX DRAFT DRAFT DRAFT XXX Thanks! > Per domain logging via xenconsoled > == > > As of Xen release XXX, xenconsoled is repurposed to handle logging for > QEMU. Libxenlight will arrange xenco

Re: [Xen-devel] XSA-180 follow-up: repurpose xenconsoled for logging

2016-06-03 Thread Wei Liu
On Fri, Jun 03, 2016 at 03:10:32PM +0100, George Dunlap wrote: > On 03/06/16 14:30, Wei Liu wrote: > > On Fri, Jun 03, 2016 at 11:57:14AM +0100, George Dunlap wrote: > >> On 01/06/16 15:00, Wei Liu wrote: > >>> Hi all > >>> > >>> During the discussion of XSA-180 Ian came up with the idea that we >

Re: [Xen-devel] XSA-180 follow-up: repurpose xenconsoled for logging

2016-06-03 Thread George Dunlap
On 03/06/16 14:30, Wei Liu wrote: > On Fri, Jun 03, 2016 at 11:57:14AM +0100, George Dunlap wrote: >> On 01/06/16 15:00, Wei Liu wrote: >>> Hi all >>> >>> During the discussion of XSA-180 Ian came up with the idea that we >>> repurpose xenconsoled to handle logging. I've done some research (and >>>

Re: [Xen-devel] XSA-180 follow-up: repurpose xenconsoled for logging

2016-06-03 Thread Wei Liu
On Fri, Jun 03, 2016 at 11:57:14AM +0100, George Dunlap wrote: > On 01/06/16 15:00, Wei Liu wrote: > > Hi all > > > > During the discussion of XSA-180 Ian came up with the idea that we > > repurpose xenconsoled to handle logging. I've done some research (and > > some coding as well!). > > > > In

Re: [Xen-devel] XSA-180 follow-up: repurpose xenconsoled for logging

2016-06-03 Thread George Dunlap
On 01/06/16 15:00, Wei Liu wrote: > Hi all > > During the discussion of XSA-180 Ian came up with the idea that we > repurpose xenconsoled to handle logging. I've done some research (and > some coding as well!). > > In my reply to George the other day: > >> I just read the code of virtlogd and xe

[Xen-devel] XSA-180 follow-up: repurpose xenconsoled for logging

2016-06-01 Thread Wei Liu
Hi all During the discussion of XSA-180 Ian came up with the idea that we repurpose xenconsoled to handle logging. I've done some research (and some coding as well!). In my reply to George the other day: > I just read the code of virtlogd and xenconsoled. > > I think xenconsoled is missing at l