[PATCH 08/11] virtio: sandbox: Bind RNG rather than block device

Simon Glass sjg at chromium.org
Mon Apr 11 20:35:19 CEST 2022


Hi Andrew,

On Thu, 7 Apr 2022 at 04:16, Andrew Scull <ascull at google.com> wrote:
>
> On Thu, 7 Apr 2022 at 08:20, Heinrich Schuchardt <xypron.glpk at gmx.de> wrote:
> >
> > On 3/31/22 12:09, Andrew Scull wrote:
> > > The virtio-rng driver is extremely simple, making it suitable for
> > > testing more of the virtio uclass logic. Have the sandbox driver bind
> > > the virtio-rng driver rather than the virtio-blk driver so it can be
> > > used in tests.
> >
> > test/dm/rng.c assumes that drivers/rng/sandbox_rng.c is providing the
> > only RNG device.
> >
> > Does test/dm/virtio.c guarantee that no virtio-rng device is bound after
> > the test is run?
>
> My understanding was that dm_test_pre_run() in test/test-main.c reset
> the driver model for each dm test, which would imply that nothing is
> bound at the start of the test. Have I understood this correctly?

Yes.

Reviewed-by: Simon Glass <sjg at chromium.org>

Regards,
Simon


More information about the U-Boot mailing list