From: Ian Jackson Subject: Re: [PATCH] libxl: fix guest networking Date: Mon, 17 Jan 2011 17:21:02 +0000 Message-ID: <19764.31358.957714.709713@mariner.uk.xensource.com> References: <201101121555.03215.Christoph.Egger@amd.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <201101121555.03215.Christoph.Egger@amd.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Christoph Egger Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Christoph Egger writes ("[Xen-devel] [PATCH] libxl: fix guest networking"): > As previously reported when I start guests with xl then the > guest network does not work because the qemu-ifup script > no longer runs. Thanks, I have applied this patch. However, two comments: Firstly, like many of your patches, I had to change the Subject of the commit message to something more informative. "fix guest networking" is rather vague. You'd make our lives just infinitesimally easier if you wrote a better subject line yourself :-). Secondly, +static const char *libxl_tapif_script(libxl__gc *gc) +{ +#ifdef __linux__ + return libxl__strdup(gc, "no"); +#else + return libxl__sprintf(gc, "%s/qemu-ifup", libxl_xen_script_dir_path()); +#endif +} I'm really not a fan of #ifdefs in the main parts of the code. Perhaps we can (in 4.2) create a file where we can dump these kind of things. Thanks, Ian.