[PATCH v2] virtio: fix boot device hunting in qemu with virtio

Simon Glass sjg at chromium.org
Mon May 4 14:15:22 CEST 2026


On Mon, 4 May 2026 at 01:11, Ludwig Nussel <ludwig.nussel at siemens.com> wrote:
>
> Commit 70101c3217ae ("virtio: mmio: Return error codes on probe
> failures") returns -ENODEV where it would return 0 before. That path is
> apparently hit in qemu and breaks boot device discovery
> (virtio_bootdev_hunt() expects only ENOENT). So return -ENOENT in
> that path instead.
> The remaining two error returns in the function are untouched as I
> don't know where they play a role.
>
> Signed-off-by: Ludwig Nussel <ludwig.nussel at siemens.com>
>
> ---
>
> Changes in v2:
>  - return ENOENT in probe()
>
>  drivers/virtio/virtio_mmio.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>

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


More information about the U-Boot mailing list