qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [qemu/qemu] 6c4e9d: rng-builtin: add an RNG backend that


From: Peter Maydell
Subject: [Qemu-commits] [qemu/qemu] 6c4e9d: rng-builtin: add an RNG backend that uses qemu_gue...
Date: Wed, 04 Sep 2019 10:15:50 -0700

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: 6c4e9d487fea67ceaebf5942be5b76ed675d0e9a
      
https://github.com/qemu/qemu/commit/6c4e9d487fea67ceaebf5942be5b76ed675d0e9a
  Author: Laurent Vivier <address@hidden>
  Date:   2019-09-04 (Wed, 04 Sep 2019)

  Changed paths:
    M backends/Makefile.objs
    A backends/rng-builtin.c
    M qemu-options.hx

  Log Message:
  -----------
  rng-builtin: add an RNG backend that uses qemu_guest_getrandom()

Add a new RNG backend using QEMU builtin getrandom function.

It can be created and used with something like:

    ... -object rng-builtin,id=rng0 -device virtio-rng,rng=rng0 ...

Signed-off-by: Laurent Vivier <address@hidden>
Message-Id: <address@hidden>


  Commit: 5f7655f6ef1583c4b15c5a6e1aa2348538f6104b
      
https://github.com/qemu/qemu/commit/5f7655f6ef1583c4b15c5a6e1aa2348538f6104b
  Author: Markus Armbruster <address@hidden>
  Date:   2019-09-04 (Wed, 04 Sep 2019)

  Changed paths:
    M hw/virtio/virtio-rng.c
    M include/hw/virtio/virtio-rng.h

  Log Message:
  -----------
  virtio-rng: Keep the default backend out of VirtIORNGConf

The default backend is only used within virtio_rng_device_realize().
Replace VirtIORNGConf member default_backend by a local variable.
Adjust its type to reduce conversions.

While there, pass &error_abort instead of NULL when failure would be a
programming error.

Signed-off-by: Markus Armbruster <address@hidden>
Signed-off-by: Laurent Vivier <address@hidden>
Message-Id: <address@hidden>


  Commit: 0198c2621a1e57d4ceaca1326897f007963c12df
      
https://github.com/qemu/qemu/commit/0198c2621a1e57d4ceaca1326897f007963c12df
  Author: Laurent Vivier <address@hidden>
  Date:   2019-09-04 (Wed, 04 Sep 2019)

  Changed paths:
    M backends/rng-builtin.c
    M hw/virtio/virtio-rng.c
    M include/sysemu/rng.h
    M qemu-options.hx

  Log Message:
  -----------
  virtio-rng: change default backend to rng-builtin

Reviewed-by: Markus Armbruster <address@hidden>
Signed-off-by: Laurent Vivier <address@hidden>
Message-Id: <address@hidden>


  Commit: eb1556c493d8abc5bfc8685561bcea934700e200
      
https://github.com/qemu/qemu/commit/eb1556c493d8abc5bfc8685561bcea934700e200
  Author: Julia Suvorova <address@hidden>
  Date:   2019-09-04 (Wed, 04 Sep 2019)

  Changed paths:
    M hw/core/machine.c
    M hw/virtio/virtio-pci.c
    M hw/virtio/virtio-pci.h

  Log Message:
  -----------
  virtio-pci: Add Function Level Reset support

Using FLR becomes convenient in cases where resetting the bus is
impractical, for example, when debugging the behavior of individual
functions.

Signed-off-by: Julia Suvorova <address@hidden>
Message-Id: <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>


  Commit: 8726b70b449896f1211f869ec4f608904f027207
      
https://github.com/qemu/qemu/commit/8726b70b449896f1211f869ec4f608904f027207
  Author: Johannes Berg <address@hidden>
  Date:   2019-09-04 (Wed, 04 Sep 2019)

  Changed paths:
    M contrib/libvhost-user/libvhost-user.c

  Log Message:
  -----------
  libvhost-user: fix SLAVE_SEND_FD handling

It doesn't look like this could possibly work properly since
VHOST_USER_PROTOCOL_F_SLAVE_SEND_FD is defined to 10, but the
dev->protocol_features has a bitmap. I suppose the peer this
was tested with also supported VHOST_USER_PROTOCOL_F_LOG_SHMFD,
in which case the test would always be false, but nevertheless
the code seems wrong.

Use has_feature() to fix this.

Fixes: d84599f56c82 ("libvhost-user: support host notifier")
Signed-off-by: Johannes Berg <address@hidden>
Message-Id: <address@hidden>
Reviewed-by: Tiwei Bie <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>


  Commit: eeb39263aa9b05b4ac3f8d8e957958071834a7b6
      
https://github.com/qemu/qemu/commit/eeb39263aa9b05b4ac3f8d8e957958071834a7b6
  Author: Johannes Berg <address@hidden>
  Date:   2019-09-04 (Wed, 04 Sep 2019)

  Changed paths:
    M contrib/libvhost-user/libvhost-user.c

  Log Message:
  -----------
  libvhost-user: introduce and use vu_has_protocol_feature()

This simplifies the various has_feature() checks, we already
have vu_has_feature() but it checks features, not protocol
features.

Signed-off-by: Johannes Berg <address@hidden>
Message-Id: <address@hidden>
Reviewed-by: Tiwei Bie <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>


  Commit: a8b5ad8e1faef0d1bb3e550530328e8ec76fe87c
      
https://github.com/qemu/qemu/commit/a8b5ad8e1faef0d1bb3e550530328e8ec76fe87c
  Author: Peter Maydell <address@hidden>
  Date:   2019-09-04 (Wed, 04 Sep 2019)

  Changed paths:
    M backends/Makefile.objs
    A backends/rng-builtin.c
    M contrib/libvhost-user/libvhost-user.c
    M hw/core/machine.c
    M hw/virtio/virtio-pci.c
    M hw/virtio/virtio-pci.h
    M hw/virtio/virtio-rng.c
    M include/hw/virtio/virtio-rng.h
    M include/sysemu/rng.h
    M qemu-options.hx

  Log Message:
  -----------
  Merge remote-tracking branch 'remotes/mst/tags/for_upstream' into staging

virtio,vhost: fixes, features, cleanups.

FLR support.
Misc fixes, cleanups.

Signed-off-by: Michael S. Tsirkin <address@hidden>

# gpg: Signature made Wed 04 Sep 2019 12:53:35 BST
# gpg:                using RSA key 281F0DB8D28D5469
# gpg: Good signature from "Michael S. Tsirkin <address@hidden>" [full]
# gpg:                 aka "Michael S. Tsirkin <address@hidden>" [full]
# Primary key fingerprint: 0270 606B 6F3C DF3D 0B17  0970 C350 3912 AFBE 8E67
#      Subkey fingerprint: 5D09 FD08 71C8 F85B 94CA  8A0D 281F 0DB8 D28D 5469

* remotes/mst/tags/for_upstream:
  libvhost-user: introduce and use vu_has_protocol_feature()
  libvhost-user: fix SLAVE_SEND_FD handling
  virtio-pci: Add Function Level Reset support
  virtio-rng: change default backend to rng-builtin
  virtio-rng: Keep the default backend out of VirtIORNGConf
  rng-builtin: add an RNG backend that uses qemu_guest_getrandom()

Signed-off-by: Peter Maydell <address@hidden>


Compare: https://github.com/qemu/qemu/compare/9de65783e188...a8b5ad8e1fae



reply via email to

[Prev in Thread] Current Thread [Next in Thread]