Re: VirtIO MMIO for amd64

Emile 'iMil' Heitor <[email protected]>
Newsgroups gmane.os.netbsd.devel.kernel
Message-ID <[email protected]>

On 2/23/22 20:26, el16095 wrote:
> Firecracker informs VMs about MMIO devices by appending to the boot 
> command line a string like this "virtio_mmio.device=4K@0xd0000000:5" 
> ([virtio_mmio.]device=<size>@<baseaddr>:<irq>). So, from what I 
> understand I'd need to write glue code that takes this information and 
> uses it to setup the MMIO devices on the VM side the way Firecracker 
> expects it to; and then attach virtio through that, right?

FYI I'm on it, based on Colin Percival's work here 
https://github.com/freebsd/freebsd-src/blob/main/sys/dev/virtio/mmio/virtio_mmio_cmdline.c
I'm getting some results but Firecracker uses MMIO v2 and we only have
v1 so there's still quite some work to do.

-- 
------------------------------------------------------------------------
Emile `iMil' Heitor <imil@{home.imil.net,NetBSD.org}> | https://imil.net
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.