summaryrefslogtreecommitdiff
path: root/sys/src/cmd/vmx/virtio.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2021-07-11 11:24:13 +0000
committercinap_lenrek <cinap_lenrek@felloff.net>2021-07-11 11:24:13 +0000
commitf58d99aa7a97ba5f79af89f38b78d5924d4e35a2 (patch)
tree42aeb9f910f45bee8073edf3fa118e28cced6af4 /sys/src/cmd/vmx/virtio.c
parentc3589ef3cf33189d342a3ab638b558fd9249b220 (diff)
virtio: add non-legacy virtio 1.0 drivers for disk and ethernet
The new interface uses pci capability structures to locate the registers in a rather fine granular way making it more complicated as they can be located anywhere in any pci bar at any offset. As far as i can see, qemu (6.0.50) never uses i/o bars in non-legacy mode, so only mmio is implemented for now. The previous virtio drivers implemented the legacy interface only which uses i/o ports for all register accesses. This is still the preferred method (and also qemu default) as it is easier to emulate and most likely faster. However, some vps providers like vultr force the legacy interface to disabled with qemu -device option "disable-legacy=on" resulting on a system without a disk and ethernet.
Diffstat (limited to 'sys/src/cmd/vmx/virtio.c')
0 files changed, 0 insertions, 0 deletions