Revision tags: release/14.1.0, release/13.3.0 |
|
#
de140d60 |
| 05-Feb-2024 |
Mark Johnston <markj@FreeBSD.org> |
virtio: Use device_set_descf()
No functional change intended.
MFC after: 1 week
|
#
fdafd315 |
| 24-Nov-2023 |
Warner Losh <imp@FreeBSD.org> |
sys: Automated cleanup of cdefs and other formatting
Apply the following automated changes to try to eliminate no-longer-needed sys/cdefs.h includes as well as now-empty blank lines in a row.
Remov
sys: Automated cleanup of cdefs and other formatting
Apply the following automated changes to try to eliminate no-longer-needed sys/cdefs.h includes as well as now-empty blank lines in a row.
Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/ Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/ Remove /\n+#if.*\n#endif.*\n+/ Remove /^#if.*\n#endif.*\n/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/
Sponsored by: Netflix
show more ...
|
Revision tags: release/14.0.0 |
|
#
180c0240 |
| 18-Sep-2023 |
Mina Galić <freebsd@igalic.co> |
virtio: remove virtio_alloc_virtqueues' flags arg
Summary: the flags argument is unused. Its initial design idea has been superceded by the addition of virtio_setup_intr and related APIs.
Sponsored
virtio: remove virtio_alloc_virtqueues' flags arg
Summary: the flags argument is unused. Its initial design idea has been superceded by the addition of virtio_setup_intr and related APIs.
Sponsored by: The FreeBSD Foundation
Reviewers: bryanv
Reviewed By: bryanv
Subscribers: cognet, imp
Differential Revision: https://reviews.freebsd.org/D41850
show more ...
|
#
ccb576a8 |
| 18-Sep-2023 |
Mina Galić <freebsd@igalic.co> |
virtio: use bool for boolean functions
Summary: these static functions: - vq_ring_use_indirect
and these public functions: - virtio_bus_is_modern - virtio_with_feature - virtqueue_empty - virtqueue
virtio: use bool for boolean functions
Summary: these static functions: - vq_ring_use_indirect
and these public functions: - virtio_bus_is_modern - virtio_with_feature - virtqueue_empty - virtqueue_full
exclusively return a boolean value. Change their return values to bool.
Sponsored by: The FreeBSD Foundation
Reviewers: bryanv
Reviewed By: bryanv
Subscribers: cognet, imp
Differential Revision: https://reviews.freebsd.org/D41848
show more ...
|
#
685dc743 |
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
sys: Remove $FreeBSD$: one-line .c pattern
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
|
#
4d846d26 |
| 10-May-2023 |
Warner Losh <imp@FreeBSD.org> |
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD
The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD
The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause.
Discussed with: pfg MFC After: 3 days Sponsored by: Netflix
show more ...
|
Revision tags: release/13.2.0, release/12.4.0, release/13.1.0 |
|
#
5c4c96d3 |
| 07-May-2022 |
John Baldwin <jhb@FreeBSD.org> |
virtio: Remove unused devclass arguments to DRIVER_MODULE.
|
Revision tags: release/12.3.0 |
|
#
6c4f9516 |
| 11-Oct-2021 |
Alex Richardson <arichardson@FreeBSD.org> |
virtio: make the write_config buffer argument const
No functional change intended, but noticed that we could add const here while adding linuxkpi support for virtio.
Reviewed By: bryanv, imp Differ
virtio: make the write_config buffer argument const
No functional change intended, but noticed that we could add const here while adding linuxkpi support for virtio.
Reviewed By: bryanv, imp Differential Revision: https://reviews.freebsd.org/D32370
show more ...
|
#
ddfc9c4c |
| 23-Jun-2021 |
Warner Losh <imp@FreeBSD.org> |
newbus: Move from bus_child_{pnpinfo,location}_src to bus_child_{pnpinfo,location} with sbuf
Now that the upper layers all go through a layer to tie into these information functions that translates
newbus: Move from bus_child_{pnpinfo,location}_src to bus_child_{pnpinfo,location} with sbuf
Now that the upper layers all go through a layer to tie into these information functions that translates an sbuf into char * and len. The current interface suffers issues of what to do in cases of truncation, etc. Instead, migrate all these functions to using struct sbuf and these issues go away. The caller is also in charge of any memory allocation and/or expansion that's needed during this process.
Create a bus_generic_child_{pnpinfo,location} and make it default. It just returns success. This is for those busses that have no information for these items. Migrate the now-empty routines to using this as appropriate.
Document these new interfaces with man pages, and oversight from before.
Reviewed by: jhb, bcr Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D29937
show more ...
|
#
fb53b42e |
| 07-May-2021 |
Alfredo Dal'Ava Junior <alfredo@FreeBSD.org> |
virtio-modern: fix PCI common read/write functions on big endian targets
Virtio modern has the common data organized in little endian, but on powerpc64 BE it was reading and writing in the wrong end
virtio-modern: fix PCI common read/write functions on big endian targets
Virtio modern has the common data organized in little endian, but on powerpc64 BE it was reading and writing in the wrong endian.
Submitted by: Leonardo Bianconi <leonardo.bianconi@eldorado.org.br> Reviewed by: bryanv, alfredo Sponsored by: Eldorado Research Institute (eldorado.org.br) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D28947
show more ...
|
Revision tags: release/13.0.0 |
|
#
e6cc42f1 |
| 19-Jan-2021 |
Bryan Venteicher <bryanv@FreeBSD.org> |
virtio: Handle possible failure of virtio_finalize_features()
Try to standardize how drivers negotiate feature and the function names
Reviewed by: grehan (mentor) Differential Revision: https://rev
virtio: Handle possible failure of virtio_finalize_features()
Try to standardize how drivers negotiate feature and the function names
Reviewed by: grehan (mentor) Differential Revision: https://reviews.freebsd.org/D27930
show more ...
|
#
9da9560c |
| 19-Jan-2021 |
Bryan Venteicher <bryanv@FreeBSD.org> |
virtio: Add VirtIO PCI modern (V1) support
Use the existing legacy PCI driver as the basis for shared code between the legacy and modern PCI drivers. The existing virtio_pci kernel module will conta
virtio: Add VirtIO PCI modern (V1) support
Use the existing legacy PCI driver as the basis for shared code between the legacy and modern PCI drivers. The existing virtio_pci kernel module will contain both the legacy and modern drivers.
Changes to the virtqueue and each device driver (network, block, etc) for V1 support come in later commits.
Update the MMIO driver to reflect the VirtIO bus method changes, but the modern compliance can be improved on later.
Note that the modern PCI driver requires bus_map_resource() to be implemented, which is not the case on all archs.
The hw.virtio.pci.transitional tunable default value is zero so transitional devices will continue to be driven via the legacy driver.
Reviewed by: grehan (mentor) Differential Revision: https://reviews.freebsd.org/D27856
show more ...
|