Re: VirtIO MMIO for amd64

Emile 'iMil' Heitor <[email protected]>
Newsgroups gmane.os.netbsd.devel.kernel
Message-ID <[email protected]>
Here's the full patch for GENPVH+cmdline MMIO+Firecracker support

https://imil.net/NetBSD/genpvh+mmio.patch

This patch includes:

- generic PVH boot for qemu, Firecracker etc... see the "PVH boot with
   qemu" thread for details
- a new bus, pvbus, used to attach devices that could be used in more
   than one hypervisor, such as the cmdline MMIO device or pvclock (not
   ported yet)
- MMIO cmdline support, used by qemu and FC to advertise virtio devices
   memory mappings to guests
- a "fix" for MP tables, or like Colin says "bug for bug compatibility",
   needed to detect IOAPIC on guests with no ACPI
- a fix for ld_virtio block device enabling FC to use it

The patch applies on the latest current.

kernel configuration:

pv* at pvbus?
virtio* at pv?
ld* at virtio?
vioif* at virtio?
viornd* at virtio?

This is how fast this thing boots: 
https://twitter.com/iMilnb/status/1743576957046931647

Feedback appreciated.

Cheers,

-- 
------------------------------------------------------------------------
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.