]> xenbits.xensource.com Git - libvirt.git/commit
doc: schema: Add basic documentation for the virtual RNG device support
authorPeter Krempa <pkrempa@redhat.com>
Thu, 20 Dec 2012 11:06:52 +0000 (12:06 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 25 Feb 2013 09:17:35 +0000 (10:17 +0100)
commitfa16c80f52136371dcc88649052fd9f7adff73eb
treec40ee93e342177b14e76b71cc6ef3773019c3953
parent5e3c3447857faeada02702d5b186a6c805858a74
doc: schema: Add basic documentation for the virtual RNG device support

This patch documents XML elements used for (basic) support of virtual
RNG devices.

In the devices section in the domain XML users may specify:

For the default 'random' backend:
  <devices>
    <rng model='virtio'>
      <backend model='random'>/dev/urandom</backend>
    </rng>
  </devices>

For the slightly more advanced EGD backend:
  <devices>
    <rng model='virtio'>
      <backend model='egd' type='udp'>
        <!-- this is a definition of a character device -->
        <source mode='bind' service='1234'/>
        <source mode='connect' host='1.2.3.4' service='1234'/>
        <!-- or other valid character device configuration -->
      </backend>
    </rng>
  </devices>

For the planned random daemon/pool:
  <devices>
    <rng model='virtio'>
      <backend model='pool' pool='poolname'>class</backend>
    </rng>
  </devices>

to enable the RNG device for guests.
docs/formatdomain.html.in
docs/schemas/domaincommon.rng