CC Michal and Peter

On Wed, Jan 1, 2020 at 1:06 PM Han Han <hhan@redhat.com> wrote:
https://bugzilla.redhat.com/show_bug.cgi?id=1785091

This rng backend is added since QEMU 4.2. It uses getrandom() syscall to
generate random instread of external rng source.

QEMU bug reference: https://bugzilla.redhat.com/show_bug.cgi?id=1689946

Han Han (7):
  qemu_capabilities: Introduce QEMU_CAPS_OBJECT_RNG_BUILTIN
  util: Do not assume comma after object id
  qemu: Implement builtin rng backend
  docs: Add schemas for rng backend builtin
  tests: Add tests fr virtio-rng backend builtin
  docs: Documents for virtio-rng backend builtin
  news: Update news for rng backend type builtin

 docs/formatdomain.html.in                     | 10 ++++++
 docs/formatdomaincaps.html.in                 |  1 +
 docs/news.xml                                 | 10 ++++++
 docs/schemas/domaincommon.rng                 |  6 ++++
 src/conf/domain_audit.c                       |  2 ++
 src/conf/domain_conf.c                        |  9 ++++++
 src/conf/domain_conf.h                        |  1 +
 src/qemu/qemu_capabilities.c                  |  4 +++
 src/qemu/qemu_capabilities.h                  |  1 +
 src/qemu/qemu_command.c                       | 15 +++++++++
 src/qemu/qemu_domain.c                        |  3 ++
 src/util/virqemu.c                            | 13 ++++----
 .../domaincapsdata/qemu_4.2.0-q35.x86_64.xml  |  1 +
 .../domaincapsdata/qemu_4.2.0-tcg.x86_64.xml  |  1 +
 .../qemu_4.2.0-virt.aarch64.xml               |  1 +
 tests/domaincapsdata/qemu_4.2.0.aarch64.xml   |  1 +
 tests/domaincapsdata/qemu_4.2.0.ppc64.xml     |  1 +
 tests/domaincapsdata/qemu_4.2.0.s390x.xml     |  1 +
 tests/domaincapsdata/qemu_4.2.0.x86_64.xml    |  1 +
 .../caps_4.2.0.aarch64.xml                    |  1 +
 .../qemucapabilitiesdata/caps_4.2.0.ppc64.xml |  1 +
 .../qemucapabilitiesdata/caps_4.2.0.s390x.xml |  1 +
 .../caps_4.2.0.x86_64.xml                     |  1 +
 .../qemuxml2argvdata/virtio-rng-builtin.args  | 30 ++++++++++++++++++
 tests/qemuxml2argvdata/virtio-rng-builtin.xml | 26 ++++++++++++++++
 tests/qemuxml2argvtest.c                      |  3 ++
 .../qemuxml2xmloutdata/virtio-rng-builtin.xml | 31 +++++++++++++++++++
 tests/qemuxml2xmltest.c                       |  2 ++
 28 files changed, 172 insertions(+), 6 deletions(-)
 create mode 100644 tests/qemuxml2argvdata/virtio-rng-builtin.args
 create mode 100644 tests/qemuxml2argvdata/virtio-rng-builtin.xml
 create mode 100644 tests/qemuxml2xmloutdata/virtio-rng-builtin.xml

--
2.23.0



--
Best regards,
-----------------------------------
Han Han
Quality Engineer
Redhat.

Email: hhan@redhat.com
Phone: +861065339333