[kernel] Add optional GEM INT EF resident broker#2745
Closed
parabyte wants to merge 1 commit into
Closed
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This adds a default-off, real-mode IBM PC broker for the original GEM INT EFh AES/VDI entry point.
GEMAESvector only while one resident user process is registeredThe control call uses syscall slot 65, whose former module-loading operation is already removed.
Compatibility and bounds
CONFIG_GEM_TRAPdefaults to off and is offered only for IBM PC real-mode builds. The direct IVT path is excluded whenCONFIG_286_PMODEis selected.All public fields, registers, limits, counters, and generation halves are 8 or 16 bits. The broker uses a fixed 640-byte table, performs no dynamic allocation, and preserves far addresses as explicit segment and offset words.
The saved vector is restored only if INT EFh still points to this broker. Owner exec, owner exit, client exec, client exit, interruption, cancellation, and stale replies all have explicit cleanup paths.
Validation
Validated at commit
e1cf24a810c7c1e74d1ca53f84a8a8ca66a2d432on upstream masterb7cfe4973487ab235169dd9eb489285409fb8b2awith an IBM PC configuration generated withCONFIG_GEM_TRAP=y:gemtrap.oand broker test-object 8086 instruction audits: passisapcguest regression:GEM_TRAP_BROKER_PASSThis is deliberately separate from the GEM user-space desktop integration so the kernel ABI can be reviewed on its own.
Related background: #871.