Module Name: src Committed By: reinoud Date: Wed Jan 20 19:46:48 UTC 2021
Modified Files: src/sys/dev/acpi: virtio_acpi.c src/sys/dev/fdt: virtio_mmio_fdt.c src/sys/dev/pci: if_vioif.c ld_virtio.c vio9p.c viomb.c viornd.c vioscsi.c virtio.c virtio_pci.c virtioreg.h virtiovar.h src/sys/dev/virtio: virtio_mmio.c Added Files: src/sys/dev/pci: virtio_pcireg.h Log Message: Add VirtIO PCI v1.0 attachments and fix the drivers affected. The vioif, ld, scsi, viornd and viomb devices were adjusted when needed and tested both in legacy 0.9 and v1.0 attachments trough PCI on amd64, sparc64, aarch64 and aarch64-eb. ACPI/FDT attachments also tested on aarch64/aarch64-eb. Known issues * viomb on aarch64 works only with ACPI/FDT attachment but not with PCI attachment. PCI and ACPI/FDT attachment works on aarch64-eb. * virtio on sparc64 attaches but is it not functioning though not a regression. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/sys/dev/acpi/virtio_acpi.c cvs rdiff -u -r1.4 -r1.5 src/sys/dev/fdt/virtio_mmio_fdt.c cvs rdiff -u -r1.65 -r1.66 src/sys/dev/pci/if_vioif.c cvs rdiff -u -r1.28 -r1.29 src/sys/dev/pci/ld_virtio.c cvs rdiff -u -r1.2 -r1.3 src/sys/dev/pci/vio9p.c cvs rdiff -u -r1.11 -r1.12 src/sys/dev/pci/viomb.c cvs rdiff -u -r1.13 -r1.14 src/sys/dev/pci/viornd.c cvs rdiff -u -r1.24 -r1.25 src/sys/dev/pci/vioscsi.c cvs rdiff -u -r1.42 -r1.43 src/sys/dev/pci/virtio.c cvs rdiff -u -r1.14 -r1.15 src/sys/dev/pci/virtio_pci.c cvs rdiff -u -r0 -r1.1 src/sys/dev/pci/virtio_pcireg.h cvs rdiff -u -r1.6 -r1.7 src/sys/dev/pci/virtioreg.h cvs rdiff -u -r1.16 -r1.17 src/sys/dev/pci/virtiovar.h cvs rdiff -u -r1.3 -r1.4 src/sys/dev/virtio/virtio_mmio.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.