Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Sep 2014 16:25:56 -0500
From:      Bryan Venteicher <bryanv@freebsd.org>
To:        John Nielsen <lists@jnielsen.net>
Cc:        Bryan Venteicher <bryanv@freebsd.org>, freebsd-virtualization@freebsd.org
Subject:   Re: Using virtio_random
Message-ID:  <CAGaYwLdj_4cn2=tmO6ObxgHZSit_k6=MPBSr48nM-1C1m-Zp4A@mail.gmail.com>
In-Reply-To: <3A1313AD-5B06-4F17-9C17-B91AA32FEE88@jnielsen.net>
References:  <3A1313AD-5B06-4F17-9C17-B91AA32FEE88@jnielsen.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Sep 15, 2014 at 6:17 PM, John Nielsen <lists@jnielsen.net> wrote:

> Hi all-
>
> I am happy to see that virtio_random(4) will be included in FreeBSD 10.1.
> To try it out, I loaded up BETA1 in a virtual machine with entropy
> passthrough enabled. After booting it with the virtio_random module loaded
> I see this in dmesg:
>
> virtio_pci3: <VirtIO PCI Entropy adapter> port 0xc0a0-0xc0bf irq 10 at
> device 6.0 on pci0
> vtrnd0: <VirtIO Entropy Adapter> on virtio_pci3
> virtio_pci3: host features: 0x71000000
> <EventIdx,RingIndirect,NotifyOnEmpty>
> virtio_pci3: negotiated features: 0
>
> So far, so good. (I think? The 'negotiated features: 0' gives me pause..)
>
>
The VirtIO random device is simple enough that's there is no benefit of the
offered features.


> Now how do I use the driver as an entropy source (or verify that it's
> being used)? I don't see any difference in the output of "sysctl
> kern.random" with or without the driver loaded. Is something missing?
>
>
The driver periodically (IIRC every 5 seconds) feeds random_harvest(9) with
random data from the host.


> Thanks,
>
> JN
>
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGaYwLdj_4cn2=tmO6ObxgHZSit_k6=MPBSr48nM-1C1m-Zp4A>