WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH 5 of 9] libxl: only use interactive PyGrub mode w

To: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH 5 of 9] libxl: only use interactive PyGrub mode when a console is attached
From: Roger Pau Monné <roger.pau@xxxxxxxxxxxxx>
Date: Mon, 10 Oct 2011 16:51:32 +0200
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 10 Oct 2011 07:52:25 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=ulC6z746D2/l1Pxx5witmQPA+qYdjGWgJHV/dh8FgWs=; b=EWptryRPvSaXdtxfUe/ZJM7VHN/A+As4P++Z9sycPk6gKVbqdY8fcjZ77JSOy8kl+D kk1Vp34vNcjnu9rKlGSo6gXzqRK/mXbK4fnZDQse8XFgz+aZt/UsPvlKZ41unpcoJEaL AaAzBkGpUQIO0ioweMIudduwl8NuxhinantXY=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20115.499.220667.547225@xxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <patchbomb.1317386580@loki> <84a27a9f39f29194a734.1317386585@loki> <20109.55057.491612.998568@xxxxxxxxxxxxxxxxxxxxxxxx> <CAPLaKK5AwPnrvfoPdbc8Ap6pyFqiBuvEWfFUmqSeN_-QR-TZQw@xxxxxxxxxxxxxx> <20115.499.220667.547225@xxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
> That sounds unfortunate.  I agree with you.

Well Ian Campbell proposed to use a timeout in select and drop data
when the timeout is hit, that what I've implemented in

libxl: drop bootloader output if xenconsole file descriptor is not
available for writing

The patch is quite simple and solves the problem, I don't think it
interferes with normal boot process, since a 1s timeout is quite high
for data to be delivered from xenconsoled_fd to the user if the
console is attached. The other option would be to modify xenconsole
daemon, but I think that's far too complicated for a problem that can
be solved easily.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel