From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NDSGn-0006gA-9m for qemu-devel@nongnu.org; Wed, 25 Nov 2009 19:31:37 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NDSGm-0006fp-TD for qemu-devel@nongnu.org; Wed, 25 Nov 2009 19:31:36 -0500 Received: from [199.232.76.173] (port=55220 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NDSGm-0006fm-OE for qemu-devel@nongnu.org; Wed, 25 Nov 2009 19:31:36 -0500 Received: from bhuna.collabora.co.uk ([93.93.128.226]:58000) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NDSGm-0004CW-DV for qemu-devel@nongnu.org; Wed, 25 Nov 2009 19:31:36 -0500 Received: from [192.168.1.164] (94-192-117-31.zone6.bethere.co.uk [94.192.117.31]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by bhuna.collabora.co.uk (Postfix) with ESMTPSA id 49EDA6002F3 for ; Thu, 26 Nov 2009 00:31:35 +0000 (GMT) Message-ID: <4B0DCC45.5080308@collabora.co.uk> Date: Thu, 26 Nov 2009 00:31:01 +0000 From: Ian Molton MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Socket reconnection. List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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... -Ian