Definitions inside usr.sbin/bhyve/virtio.h are thrown away.
Definitions in sys/dev/virtio are used instead.
This reduces code duplication.
Submitted by: Ka Ho Ng <khng@freebsdfoundation.org>
Sponsored by: The FreeBSD Foundation
Differential D29084
bhyve: virtio shares definitions between sys/dev/virtio khng on Mar 5 2021, 3:33 PM. Authored by Tags None Referenced Files
Details Definitions inside usr.sbin/bhyve/virtio.h are thrown away. This reduces code duplication. Submitted by: Ka Ho Ng <khng@freebsdfoundation.org>
Diff Detail
Event TimelineComment Actions Replace VTCFG_R with VIRTIO_PCI_/VIRTIO_MSI_ from sys/dev/virtio/pci/virtio_pci_legacy_var.h Comment Actions take my suggestions/questions with a grain of salt as I'm not familiar with this area of the code.. fundamentally though, this looks like a good change.
Comment Actions
Comment Actions vring_size has to be further aligned. Do it in vring_size_aligned now. See 2.6.2 Legacy Interfaces: A Note on Virtqueue Layout |