roadmap

Milestone 447 appendix: the five tests, and why they are kernel threads

An appendix to milestone 447 (a thread's vector registers are its own). The block is complete without it: its proof summary names the tests and the falsification. This holds what each test catches.

The five tests

Five #[test_case]s in kernel/src/fp.rs, running on all three architectures.

Why the tests are kernel threads

The tests are kernel threads, not user programs, and that is forced rather than chosen. Every target in targets/ is soft-float, so no userspace binary in this tree can execute an FP instruction to be tested with. That is why all three first-use handlers serve the kernel's own exception level as well as userspace. Refusing EL1 would have meant a mechanism whose only possible test was a different mechanism. The C seam of §31 (the foreign-language seam: C holds no capabilities and makes no system calls) is untouched for the same reason. It is the first thing that changes if the target flip is taken.