Page MenuHomeFreeBSD

virtio: Support MMIO bus for all devices
ClosedPublic

Authored by jrtc27 on May 6 2020, 6:28 AM.
Tags
None
Referenced Files
F103828077: D24730.diff
Fri, Nov 29, 11:29 PM
Unknown Object (File)
Sep 20 2024, 1:27 PM
Unknown Object (File)
Sep 17 2024, 5:20 PM
Unknown Object (File)
Sep 9 2024, 3:29 AM
Unknown Object (File)
Sep 7 2024, 5:14 AM
Unknown Object (File)
Sep 5 2024, 3:10 PM
Unknown Object (File)
Aug 28 2024, 8:02 AM
Unknown Object (File)
Aug 22 2024, 9:07 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.