From: Wei Liu <wei.liu2@citrix.com>
To: Ian Jackson <Ian.Jackson@eu.citrix.com>
Cc: Anthony PERARD <anthony.perard@citrix.com>,
Xen-devel <xen-devel@lists.xenproject.org>,
Wei Liu <wei.liu2@citrix.com>
Subject: Re: [PATCH for-4.7] libxl: set XEN_QEMU_CONSOLE_LIMIT for QEMU
Date: Thu, 26 May 2016 16:47:59 +0100 [thread overview]
Message-ID: <20160526154759.GZ22076@citrix.com> (raw)
In-Reply-To: <22343.6465.655026.60692@mariner.uk.xensource.com>
On Thu, May 26, 2016 at 04:41:53PM +0100, Ian Jackson wrote:
> Wei Liu writes ("[PATCH for-4.7] libxl: set XEN_QEMU_CONSOLE_LIMIT for QEMU"):
> > XSA-180 provides a patch to QEMU to bodge QEMU logging issue. We
> > explicitly set the limit in libxl for 4.7.
> ...
> > + unsigned long limit = 0;
> > + const char *s = getenv("XEN_QEMU_CONSOLE_LIMIT");
> > +
> > + limit = s ? strtoul(s,0,0) : 1*1024*1024;
> > + flexarray_append_pair(dm_envs, "XEN_QEMU_CONSOLE_LIMIT",
> > + GCSPRINTF("%lu", limit));
>
> This is rather more complex than it needs to be. What would be wrong
> with
> if (getenv("XEN_QEMU_CONSOLE_LIMIT")) return;
> flexarray_append_pair(dm_envs, "XEN_QEMU_CONSOLE_LIMIT", "1048576");
> ?
>
Nice, this is simpler. I will use this version and keep your ack.
> But I guess I don't object enough to care, so
>
> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
>
>
> > + flexarray_t *dm_args, *dm_envs;
> > + char **args, **envs;
>
> All these parts are a bit of a palaver but I don't see a better way.
> Thanks for doing this work!
>
YW.
Wei.
> Ian.
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
next prev parent reply other threads:[~2016-05-26 15:48 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-26 15:19 [PATCH for-4.7] XSA-180 patches for 4.7 Wei Liu
2016-05-26 15:21 ` [PATCH for-4.7] libxl: set XEN_QEMU_CONSOLE_LIMIT for QEMU Wei Liu
2016-05-26 15:21 ` [PATCH QEMU for-4.7] main loop: Big hammer to fix logfile disk DoS in Xen setups Wei Liu
2016-05-26 15:36 ` George Dunlap
2016-05-26 15:39 ` Wei Liu
2016-05-26 15:42 ` Ian Jackson
2016-05-26 16:10 ` Anthony PERARD
2016-05-26 16:50 ` Anthony PERARD
2016-05-26 15:41 ` [PATCH for-4.7] libxl: set XEN_QEMU_CONSOLE_LIMIT for QEMU Ian Jackson
2016-05-26 15:47 ` Wei Liu [this message]
2016-05-26 15:54 ` Wei Liu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160526154759.GZ22076@citrix.com \
--to=wei.liu2@citrix.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=anthony.perard@citrix.com \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).