From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NDwiL-0000VW-Bx for qemu-devel@nongnu.org; Fri, 27 Nov 2009 04:02:05 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NDwiG-0000PM-Lv for qemu-devel@nongnu.org; Fri, 27 Nov 2009 04:02:04 -0500 Received: from [199.232.76.173] (port=40943 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NDwiG-0000PF-HC for qemu-devel@nongnu.org; Fri, 27 Nov 2009 04:02:00 -0500 Received: from mail2.shareable.org ([80.68.89.115]:53416) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NDwiG-00046i-3G for qemu-devel@nongnu.org; Fri, 27 Nov 2009 04:02:00 -0500 Date: Fri, 27 Nov 2009 09:01:58 +0000 From: Jamie Lokier Subject: Re: [Qemu-devel] Socket reconnection. Message-ID: <20091127090158.GB15458@shareable.org> References: <4B0DCC45.5080308@collabora.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4B0DCC45.5080308@collabora.co.uk> 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... I'm a bit puzzled. Why isn't virtio-rng getting entropy from /dev/random on the host? -- Jamie