Discussion:
Generic PCI/VirtIO m68k port?
(too old to reply)
Chris Hanson
2021-11-05 18:55:47 UTC
Permalink
Has anyone considered adding a "generic" NetBSD/m68k port that follows Linux boot protocol and (just) supports VirtIO?

My understanding is that QEMU supports PCI and VirtIO with m68k now, which would make it good to use as a pkgsrc builder. (It may also support SMP, I'm not sure. Be cool if it did…)

-- Chris


--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Simon Burge
2021-11-09 11:34:51 UTC
Permalink
Hi Chris, Laurent, folks,
QEMU m68k only supports virtio, not PCI.
the virt machine type in qemu-system-m68k uses memory mapped virtio
devices (on PCI machines, they are mapped in a PCI memory region and
the PCI card is plugged on the PCI bus)
An OS port is really easy to do (well, I have always to finish the
linux one), as virtio is generic and already implemented for other
archs. Only issues we can have is to find bugs in virtio for 32bit
big endian guest as m68k is the only one to use it. We need also to
implement guestfish drivers, that are generic too in linux, not sure
it's implemented in BSD (it's for android).
NetBSD has the MIPSSIM kernel under evbmips which also uses memory
mapped virtio (and no PCI). This should also be able to run 32-bit
big endian, but I don't think I've tried that combination. I have
used 64-bit big endian memory mapped virtio.

The glue at the NetBSD end is pretty simple - look at
sys/arch/evbmips/mipssim/virtio_mainbus.c .

Cheers,
Simon.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
John Klos
2021-11-09 14:53:27 UTC
Permalink
Hi,
Post by Chris Hanson
Has anyone considered adding a "generic" NetBSD/m68k port that follows
Linux boot protocol and (just) supports VirtIO?
My understanding is that QEMU supports PCI and VirtIO with m68k now,
which would make it good to use as a pkgsrc builder. (It may also
support SMP, I'm not sure. Be cool if it did
)
Jake Hamby is working on QEMU/Amiga which will certainly run NetBSD/amiga:

https://twitter.com/jhamby/status/1457911452019224580

I'm sure some of his work would make a generic QEMU implementation easier
(or possibly irrelevant).

John
John Paul Adrian Glaubitz
2021-11-09 15:02:51 UTC
Permalink
Hi!
Post by John Klos
https://twitter.com/jhamby/status/1457911452019224580
I'm sure some of his work would make a generic QEMU implementation easier (or possibly irrelevant).
That's awesome. Hope all that work is going to be upstreamed in the end, so that
we get an Amiga machine type in QEMU. That would be truly awesome.

Adrian
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer - ***@debian.org
`. `' Freie Universitaet Berlin - ***@physik.fu-berlin.de
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913


--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Loading...