]> git.ipfire.org Git - thirdparty/libvirt.git/commit
bhyve: support random number generator device
authorRoman Bogorodskiy <bogorodskiy@gmail.com>
Sun, 6 Apr 2025 09:59:18 +0000 (11:59 +0200)
committerRoman Bogorodskiy <bogorodskiy@gmail.com>
Thu, 10 Apr 2025 13:05:22 +0000 (15:05 +0200)
commit03fac384c5aee04793a7cb34a60639306ff0ce03
tree79f5647f71e53dbda21f21453c71e02f360ecc66
parent97ed7f22b089c5fdd9ee02cffc6854f6e021ab2b
bhyve: support random number generator device

Bhyve supports the Virtio RNG interface. It's always using the
/dev/random device and doesn't have any configuration options.

Thus, in XML it's represented as:

  <rng model='virtio'>
    <backend model='random'/>
  </rng>

So extend the bhyve driver to support that and add a set of tests for
this feature.

Signed-off-by: Roman Bogorodskiy <bogorodskiy@gmail.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/bhyve/bhyve_capabilities.c
src/bhyve/bhyve_capabilities.h
src/bhyve/bhyve_command.c
src/bhyve/bhyve_device.c
tests/bhyvexml2argvdata/bhyvexml2argv-virtio-rnd.args [new file with mode: 0644]
tests/bhyvexml2argvdata/bhyvexml2argv-virtio-rnd.ldargs [new file with mode: 0644]
tests/bhyvexml2argvdata/bhyvexml2argv-virtio-rnd.xml [new file with mode: 0644]
tests/bhyvexml2argvtest.c
tests/bhyvexml2xmloutdata/bhyvexml2xmlout-virtio-rnd.xml [new file with mode: 0644]
tests/bhyvexml2xmltest.c