Re: [PATCH v4 6/6] board: qemu: m68k: Create virtio mmio instances

Simon Glass
2026-04-13T15:04:22Z

Hi Daniel,

On 2026-04-13T09:22:34, Daniel Palmer <daniel@thingy.jp> wrote:
> board: qemu: m68k: Create virtio mmio instances
>
> So that you can use virtio network, block etc create the virtio mmio
> instances. There are 128 of these even if they are not all used, a
> single mmio base value is passed via bootinfo.
>
> Signed-off-by: Daniel Palmer <daniel@thingy.jp>
>
> arch/m68k/Kconfig | 14 ++++++-----
> board/emulation/qemu-m68k/qemu-m68k.c | 45 +++++++++++++++++++++++++++++++++++
> 2 files changed, 53 insertions(+), 6 deletions(-)

> diff --git a/board/emulation/qemu-m68k/qemu-m68k.c b/board/emulation/qemu-m68k/qemu-m68k.c
> @@ -40,6 +40,38 @@
> +static int create_virtio_mmios(void)
> +{
> + struct driver *drv;
> + int i, ret;
> +
> + if (!virtio_mmio_base)
> + return -ENODEV;

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