From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O4Uax-0005Vs-6x for qemu-devel@nongnu.org; Wed, 21 Apr 2010 03:43:39 -0400 Received: from [140.186.70.92] (port=43857 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O4Uav-0005TO-SF for qemu-devel@nongnu.org; Wed, 21 Apr 2010 03:43:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O4Uau-0000Kt-ID for qemu-devel@nongnu.org; Wed, 21 Apr 2010 03:43:37 -0400 Received: from mx1.redhat.com ([209.132.183.28]:11568) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O4Uau-0000Kn-8J for qemu-devel@nongnu.org; Wed, 21 Apr 2010 03:43:36 -0400 Message-ID: <4BCEAC99.8000206@redhat.com> Date: Wed, 21 Apr 2010 09:43:21 +0200 From: Gerd Hoffmann MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH 2/2] VirtIO RNG References: <4BB2053C.6000701@collabora.co.uk> <201004031606.26893.paul@codesourcery.com> <4BC482A6.4040504@collabora.co.uk> <201004131632.25820.paul@codesourcery.com> <4BCDC51F.2030205@collabora.co.uk> <20100420161302.GA11723@shareable.org> <4BCE061B.2030506@collabora.co.uk> <20100420205654.GI11723@shareable.org> <4BCE1D3B.7000306@collabora.co.uk> In-Reply-To: <4BCE1D3B.7000306@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: Paul Brook , qemu-devel@nongnu.org On 04/20/10 23:31, Ian Molton wrote: > Using virtio-rng means that the data is going into the guest > kernels hwrng subsystem. Which is *the* major advantage of the virtio-rng driver. In case the guest kernel is recent enougth to have support for it, it will JustWork[tm]. No need for guest configuration, no need for some userspace tool. I'd like to see this driver being merged. With any kind of serial port (be it a emulated 16550 or virtio-serial) you'll need some daemon running inside the guest grabbing entropy data from the port and feeding it back into the kernel. Nobody prevents you from doing that if you want (or have to due to lack of virtio-rng support in the guest). Just link the port with the egd chardev and configure the guest accordingly. cheers, Gerd