Repository navigation
Enable kemu vector caching in l4h - #25
Merged
Merged
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.
Enable kemu's vector register cache in x86_64 l4h guests by reading interrupted user XMM0–7 from the seL4 user TCB. Preserve interrupt state, honor XSAVE's SSE init-state bit, and run kemu's return-to-user recovery with interrupts disabled as its API requires.
Pin kemu to latest merged main (
3dbb1a0), including the vector cache, interrupted-SVC recovery, and subsequent audit fixes. Forward user #GP faults tokemu_user_gp()for tagged and high AArch64 addresses, and call the newkemu_syscall_rollback()hook so seccomp traps preserve the guest's original x0. Extend the guest smoke test with four threads using tagged SIMD loads/stores, checking live vectors in signal frames and after signal return.Validation:
3dbb1a0. The normal KVM guest ABI and vector suites pass, including the new seccomp and semaphore ABI checks.kemu.stress=1) passed the ABI suite but failed inkemu-vectorswith a segmentation fault at address0x40000040(host IP0x40166549). The cause is unresolved. Cache-disabled, one-vCPU, and interpreter checks pass.0934c93, identical in source to tested4119d6c) passed KVM guest ABI and tagged SIMD/thread/signal tests with forced invalidation, caching disabled, one vCPU, and interpreter execution. The formerly failing SVC reproducer passed five consecutive runs.git diff --checkpassed.Guest boots reuse the existing seL4/root-task artifacts with newly built guest kernels; this change does not require rebuilding host components.