Page MenuHomeFreeBSD

virtio: Support MMIO bus for all devices
ClosedPublic

Authored by jrtc27 on May 6 2020, 6:28 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Feb 10, 9:07 AM
Unknown Object (File)
Jan 10 2025, 3:54 AM
Unknown Object (File)
Dec 25 2024, 9:42 AM
Unknown Object (File)
Dec 15 2024, 9:15 PM
Unknown Object (File)
Dec 6 2024, 10:32 AM
Unknown Object (File)
Nov 29 2024, 11:29 PM
Unknown Object (File)
Sep 20 2024, 1:27 PM
Unknown Object (File)
Sep 17 2024, 5:20 PM

Details

Summary

The bus is independent of the device, so all devices can be attached to
either a PCI bus or an MMIO bus. For example, QEMU's virtio-rng-device
gives the MMIO variant of virtio-rng-pci, and is now detected.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 30943
Build 28654: arc lint + arc unit

Event Timeline

jrtc27 requested review of this revision.May 6 2020, 6:28 AM
jrtc27 created this revision.
This revision is now accepted and ready to land.May 6 2020, 6:32 AM
br accepted this revision.EditedMay 6 2020, 10:49 AM

we should also add these devices to riscv kernel config (at least random and console)

In D24730#544269, @br wrote:

we should also add these devices to riscv kernel config (at least random and console)

None of the other GENERIC configs list them. I assume they normally get picked up as modules? We can either do that or, if we really want them linked in to the kernel, modify our own kernel config (which we already need to change the kernel's LMA and tell it to mount /dev/vtbd0 as the root filesystem). But I don't think our GENERIC config should diverge in this regard.

This revision was automatically updated to reflect the committed changes.