Add support for the virtio RNG entropy-source device.

Call through to /dev/random synchronously to fill
virtio buffers with RNG data.

Tested with FreeBSD-CURRENT and Ubuntu guests.

Submitted by:	Leon Dang
Discussed with:	markm
MFC after:	3 weeks
Sponsored by:	Nahanni Systems
This commit is contained in:
Peter Grehan
2014-04-02 20:18:17 +00:00
parent 2a4eeaa4d2
commit 9d0c4e17d9
4 changed files with 194 additions and 1 deletions
+1
View File
@@ -26,6 +26,7 @@ SRCS= \
pci_passthru.c \
pci_virtio_block.c \
pci_virtio_net.c \
pci_virtio_rnd.c \
pci_uart.c \
pm.c \
pmtmr.c \