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)
Tue, Mar 5, 2:53 AM
Unknown Object (File)
Dec 23 2023, 3:44 AM
Unknown Object (File)
Dec 20 2023, 5:47 AM
Unknown Object (File)
Nov 18 2023, 11:57 AM
Unknown Object (File)
Nov 18 2023, 10:34 AM
Unknown Object (File)
Oct 25 2023, 6:33 AM
Unknown Object (File)
Aug 28 2023, 5:08 PM
Unknown Object (File)
Jul 6 2023, 2:33 AM

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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.