]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Implement support for default 'random' backend for virtio-rng
authorPeter Krempa <pkrempa@redhat.com>
Fri, 11 Jan 2013 16:48:21 +0000 (17:48 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 25 Feb 2013 09:46:19 +0000 (10:46 +0100)
commit234a55604eed46b1d4dd55a4d20b66e12a485bc6
treede3f47312ce61fb80128ed164bbcdf5b51ccb91c
parent1d28aa05a6759bf302f899519591956ba536ce04
qemu: Implement support for default 'random' backend for virtio-rng

This patch implements support for the virtio-rng-pci device and the
rng-random backend in qemu.

Two capabilities bits are added to track support for those:

QEMU_CAPS_DEVICE_VIRTIO_RNG - for the device support and
QEMU_CAPS_OBJECT_RNG_RANDOM - for the backend support.

qemu is invoked with these additional parameters if the device is
enabled:

-object rng-random,id=rng0,filename=/test/phile (to add the backend)
-device virtio-rng-pci,rng=rng0,bus=pci.0,addr=0x4 (to add the device)
src/qemu/qemu_capabilities.c
src/qemu/qemu_capabilities.h
src/qemu/qemu_command.c