From: Doug Goldstein Subject: Re: XSA-180 follow-up: repurpose xenconsoled for logging Date: Mon, 6 Jun 2016 15:47:37 -0500 Message-ID: <3a114c2e-198d-4ac3-5e9a-e1d1b63a056b@cardoe.com> References: <20160601140014.GH5160@citrix.com> <5751C09F.6030706@citrix.com> <57554C87.3040001@citrix.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2020732846469867883==" Return-path: Received: from mail6.bemta6.messagelabs.com ([85.158.143.247]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bA1Qu-0006wL-Od for xen-devel@lists.xenproject.org; Mon, 06 Jun 2016 20:47:36 +0000 Received: by mail-yw0-f193.google.com with SMTP id l126so20568266ywe.3 for ; Mon, 06 Jun 2016 13:47:35 -0700 (PDT) In-Reply-To: <57554C87.3040001@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" To: George Dunlap , Andrew Cooper , Wei Liu , Xen-devel Cc: George Dunlap , Ian Jackson List-Id: xen-devel@lists.xenproject.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --===============2020732846469867883== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="05i6v2fmLmgIKcH6GBLhuooagPUmU26pj" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --05i6v2fmLmgIKcH6GBLhuooagPUmU26pj Content-Type: multipart/mixed; boundary="A1DGceamOQtkVW1tOHtOtfk9XAn7PfKg0" From: Doug Goldstein To: George Dunlap , Andrew Cooper , Wei Liu , Xen-devel Cc: George Dunlap , Ian Jackson Message-ID: <3a114c2e-198d-4ac3-5e9a-e1d1b63a056b@cardoe.com> Subject: Re: [Xen-devel] XSA-180 follow-up: repurpose xenconsoled for logging References: <20160601140014.GH5160@citrix.com> <5751C09F.6030706@citrix.com> <57554C87.3040001@citrix.com> In-Reply-To: <57554C87.3040001@citrix.com> --A1DGceamOQtkVW1tOHtOtfk9XAn7PfKg0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 th= e > analog of what Wei is proposing -- they added a new daemon, virtlogd, t= o > handle all the console and debug log rotation in a fashion resistant to= > DoSing. Without reading their discussion, it's reasonable to assume > that using system logging was at least considered using system-level > logging before deciding to write their own code. If I recall they use RPCs and the logs are generated as a best effort to not block QEMU. >=20 > We already have a daemon to do logging of consoles; it just doesn't hav= e > any of the logrotate features that are needed to make it robust against= > DoS. There's no sense in having log rotation code in two places, so > upgrading xenconsoled to do what virtlogd is doing makes more sense tha= n > say, either writing our own, or stealing virtlogd. What if we made xl / libxl really good at the limited scope of things it should be good at and left the other bits to others. At this point it seems like yet another feature that xl / libxl is gaining that matches what libvirt does. Maybe an approach is something you appear to suggest and just point people to virtlogd and ask the libvirt guys if they would make it a separate package. Honestly it seems like xl could slim down from a feature set perspective and focus on improving libxl / libvirt interaction. That's something that the Xen community has been interested in to better support OpenStack anyway. Just my 2 cents. --=20 Doug Goldstein --A1DGceamOQtkVW1tOHtOtfk9XAn7PfKg0-- --05i6v2fmLmgIKcH6GBLhuooagPUmU26pj Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0 iQJ8BAEBCgBmBQJXVeFpXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRBNTM5MEQ2RTNFMTkyNzlCNzVDMzIwOTVB MkJDMDNEQzg3RUQxQkQ0AAoJEKK8A9yH7RvUNCYP/3Bui/ujzHRgO8So2hachGLG FmWfhz5an0ALBGeKlVwpGhVsc5Ia2GDk8SF5BiJcyrKNoLT+1s/O2gqM8Bl9JRIe OEa/E1KMnSq/6cTb1ocoJ3XQOabu2WE1tqxwhLdvp/eo/5dnPavKA6RhiN0yjHtJ 1/9Ygae+SMsiYM/T5jrkj5mdlveMbeKK5kxd2MhUGLXt+YStcOTJcYcvZGP7x4iF FzlXjbwZN9IptY6c2p8fa+8k+PEUiZDrFulDFIoXTyumcQDldQPI08WXOJYfvCn9 cBmP+mapG+AcPjjrBuwRI/v1pVzH3hz3dIHynkd7KCQIjNoDL+haHnrKP4RcSJqQ piPfkY4ZsEgmXFgaTdVYr+2cdtlXGTOjBl6XNS+wbQMhlwter+IMQNayJrn3zmhK 9a9qmO/fBFQXzPu6LXNvUIJ51XHxa+ZOnUoQd3jlkklqdOdRbIls40suKdYd3UDv aNcgp4K6NyKUnqBPjhvaeshuQw31vYKXPMkl/6ZhE+ljcadV77L7CpRaNV1Lg3Yj IlxBR+9TC1bVTIszJ2Uj7/P28yIFpdcTP9bgq3x5Ac9I0zF+mZqoTSMAICPR+L6J ztwHBy9P+3gSKeEdnF8ZebjAUnlqiKCoboUkT7H9SUwvBemPx1wKxFp1+wTdD/La Rp69fb7uiH6ktJ2+aAJ1 =auEE -----END PGP SIGNATURE----- --05i6v2fmLmgIKcH6GBLhuooagPUmU26pj-- --===============2020732846469867883== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KWGVuLWRldmVs IG1haWxpbmcgbGlzdApYZW4tZGV2ZWxAbGlzdHMueGVuLm9yZwpodHRwOi8vbGlzdHMueGVuLm9y Zy94ZW4tZGV2ZWwK --===============2020732846469867883==--