From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NF9tZ-0006LE-2b for qemu-devel@nongnu.org; Mon, 30 Nov 2009 12:18:41 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NF9tU-0006JN-30 for qemu-devel@nongnu.org; Mon, 30 Nov 2009 12:18:40 -0500 Received: from [199.232.76.173] (port=48118 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NF9tT-0006JF-S5 for qemu-devel@nongnu.org; Mon, 30 Nov 2009 12:18:35 -0500 Received: from qw-out-1920.google.com ([74.125.92.149]:34513) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NF9tT-0003UI-AZ for qemu-devel@nongnu.org; Mon, 30 Nov 2009 12:18:35 -0500 Received: by qw-out-1920.google.com with SMTP id 5so668770qwc.4 for ; Mon, 30 Nov 2009 09:18:33 -0800 (PST) Message-ID: <4B13FE66.2080401@codemonkey.ws> Date: Mon, 30 Nov 2009 11:18:30 -0600 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] Socket reconnection. References: <4B0DCC45.5080308@collabora.co.uk> In-Reply-To: <4B0DCC45.5080308@collabora.co.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Ian Molton Cc: qemu-devel@nongnu.org Ian Molton wrote: > Hi folks, > > I need my source of data for virtio-rng to be reliable - IOW. if the > server dies and comes back up, I want qemu to reconnect and suck down > fresh entropy, rather than hand the rngd process on the guest. > > I'm using the chardev 'socket' type to make the connection to the host. > > Would a patch adding (optional) auto-reconnect (with a back-off delay) > to the socket chardev be acceptable ? > > If not, I'll have to cook up a thread to handle EGD requests, but that > seems perverse... > Hrm, I'm not sure. What are the circumstances that this connection would die? What happens while the connection is dead? Regards, Anthony Liguori > -Ian > > >