1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-10-13 20:12:06 +00:00
serenity/Meta
Idan Horowitz d1f7a2f9a5 Kernel: Finish base implementation of VirtQueues
This commit includes a lot of small changes and additions needed to
finalize the base implementation of VirtIOQueues and VirtDevices:
* The device specific driver implementation now has to handle setting
up the queues it needs before letting the base device class know it
finised initialization
* Supplying buffers to VirtQueues is now done via ScatterGatherLists
instead of arbitary buffer pointers - this ensures the pointers are
physical and allows us to follow the specification in regards to the
requirement that individual descriptors must point to physically
contiguous buffers. This can be further improved in the future by
implementating support for the Indirect-Descriptors feature (as
defined by the specification) to reduce descriptor usage for very
fragmented buffers.
* When supplying buffers to a VirtQueue the driver must supply a
(temporarily-)unique token (usually the supplied buffer's virtual
address) to ensure the driver can discern which buffer has finished
processing by the device in the case in which the device does not
offer the F_IN_ORDER feature.
* Device drivers now handle queue updates (supplied buffers being
returned from the device) by implementing a single pure virtual
method instead of setting a seperate callback for each queue
* Two new VirtQueue methods were added to allow the device driver
to either discard or get used/returned buffers from the device by
cleanly removing them off the descriptor chain (This also allows
the VirtQueue implementation to reuse those freed descriptors)

This also includes the necessary changes to the VirtIOConsole
implementation to match these interface changes.

Co-authored-by: Sahan <sahan.h.fernando@gmail.com>
2021-04-17 10:21:23 +02:00
..
CMake Kernel: Add base support for VirtIO devices 2021-04-17 10:21:23 +02:00
Lagom Everywhere: Update references from ReadMe.md => README.md 2021-04-11 10:52:25 +02:00
Websites/serenityos.org Website: Add link to @ABigPickle's VLA exploit 2021-03-08 22:53:28 +01:00
bochsrc Meta: move Kernel/.bochsrc => Meta/bochsrc 2020-07-01 12:53:39 +02:00
build-image-grub.sh Meta: Allow specifying custom grub config file for build-image-grub.sh 2021-03-01 11:11:56 +01:00
build-image-qemu.sh Build: Sprinkle some portability, fix on OpenBSD 2021-02-14 09:29:22 +01:00
build-root-filesystem.sh Everywhere: Update references from ReadMe.md => README.md 2021-04-11 10:52:25 +02:00
check-ak-test-files.sh Meta: Get building on NixOS (#5005) 2021-01-22 17:44:05 +01:00
check-debug-flags.sh Meta: Fix debug-flag detection 2021-02-13 19:50:31 +01:00
check-newlines-at-eof.py Meta: Resolve some pylint violations in Python lint scripts 2021-04-02 23:07:58 +02:00
check-style.sh Meta: Stop excluding getopt.cpp from linting 2021-03-03 23:42:32 +01:00
check-symbols.sh CI: Don't fail check-symbols if symbol is defiend somewhere else 2021-03-19 22:55:53 +01:00
check-syscall-lists.sh Meta: Check consistency of various syscall tables 2021-01-23 16:47:09 +01:00
debug-kernel.sh Meta: Add a build helper script 2021-03-09 07:28:59 +01:00
generate-embedded-resource-assembly.sh Meta: Get building on NixOS (#5005) 2021-01-22 17:44:05 +01:00
grub-ebr.cfg Kernel: Introduce a new partitioning subsystem 2020-12-27 23:07:44 +01:00
grub-gpt.cfg Kernel: Stop bootloader from setting video mode with Multiboot 2020-05-28 00:50:55 +02:00
grub-mbr.cfg Kernel: Stop bootloader from setting video mode with Multiboot 2020-05-28 00:50:55 +02:00
install-ports-tree.sh Meta: Add install-ports CMake target 2021-04-12 14:06:24 +02:00
lint-ci.sh Meta: Lint AvailablePorts.md 2021-02-15 07:41:16 +01:00
lint-clang-format.sh Meta: Stop excluding getopt.cpp from linting 2021-03-03 23:42:32 +01:00
lint-executable-resources.sh Meta: Get building on NixOS (#5005) 2021-01-22 17:44:05 +01:00
lint-ipc-ids.sh Meta: Get building on NixOS (#5005) 2021-01-22 17:44:05 +01:00
lint-keymaps.py Meta: Resolve some pylint violations in Python lint scripts 2021-04-02 23:07:58 +02:00
lint-missing-resources.sh Meta: Get building on NixOS (#5005) 2021-01-22 17:44:05 +01:00
lint-ports.py Meta: lint-ports: Check package files for required properties 2021-04-16 21:14:00 +02:00
lint-prettier.sh Meta: Get building on NixOS (#5005) 2021-01-22 17:44:05 +01:00
lint-python.sh Meta: Get building on NixOS (#5005) 2021-01-22 17:44:05 +01:00
lint-shell-scripts.sh Base/CI: Boot serenity in CI in a mode that runs tests on target 2021-02-28 18:19:37 +01:00
notify_irc.py Meta: Resolve some pylint violations in Python lint scripts 2021-04-02 23:07:58 +02:00
refresh-serenity-qtcreator.sh Meta: Make CMakeLists accessible to QtCreator 2021-02-21 22:34:09 +01:00
run.sh Kernel: Finish base implementation of VirtQueues 2021-04-17 10:21:23 +02:00
screenshot-000ccc0.png Meta: Update ReadMe with a new screenshot. :^) 2019-02-12 15:47:37 +01:00
screenshot-0f85753.png Meta: Update the screenshot in the ReadMe :^) 2021-04-04 09:57:36 +02:00
screenshot-8ea4375.png Meta: Time for a new screenshot! :^) 2020-06-02 19:29:31 +02:00
screenshot-1133aca.png Meta: Time for a new screenshot (Quake edition) :^) 2019-11-06 21:51:33 +01:00
screenshot-9145a72.png Meta: Time for a new screnshot! :^) 2019-09-18 12:15:02 +02:00
screenshot-23263aa.png Meta: Update ReadMe with a new screenshot :^) 2019-02-27 13:17:43 +01:00
screenshot-191112e.png Meta: Time for a new screenshot to keep things fresh. :^) 2019-06-07 18:14:13 +02:00
screenshot-b5521e1.png Meta: Time for a new screenshot! :^) 2019-03-08 01:10:33 +01:00
screenshot-cdb82f6.png Meta: Tweak ReadMe and add a new screenshot. 2019-03-20 15:52:37 +01:00
screenshot-d727005.png Meta: Tweak ReadMe and add a new screenshot. 2019-04-30 15:27:35 +02:00
screenshot-ef9fbef.png Meta: Time for a new screenshot :^) 2019-04-06 01:31:12 +02:00
screenshot-f8fc892.png Add a little ReadMe. 2019-02-08 11:06:34 +01:00
serenity.sh Meta: Allow serenity.sh to be used outside of assumed working directory 2021-04-17 09:27:19 +02:00
text-to-cpp-string.sh Meta: Use a bash shebang for text-to-cpp-string.sh 2021-01-22 18:41:08 +01:00
write-only-on-difference.sh Build: Sprinkle some portability, fix on OpenBSD 2021-02-14 09:29:22 +01:00