fix(libkernel): follow kern_cpuset for the base cpuset, level checks and interrupt targets #14885
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/14885"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-11-01T22:33:22Z.
Carries #7135 by @AlexOfTheForest, with credit.
What
Carry the remaining cpuset changes after #6540's guest-thread lookup landed: read the base cpuset, check the setter's level before resolving the target, and follow the FreeBSD level/scope ordering for interrupt and domain errors. Affinity remains guest bookkeeping, with no host scheduling change. The base set is still assumed to be
sceKernelGetAvailableCpumask; that console assumption remains unverified in the debt entry.The carry keeps @adriadam10's review points. It preserves current main's checked guest-memory copies and their host-safety debt qualifications, retains unrelated debt, and drops the ten new tests that assert unsupported calls throw. Implemented success and error tests remain. Existing clipping is explicitly distinguished from FreeBSD's subset check.
Original head:
eb4e07e8a9. Base:e0caf13600. Only the original three files change. #11872's proposed debt merge order has not been agreed and is not a runtime dependency; both sets of debt must survive later composition.Tested
e0caf13600plus this change):guest_available_cpumaskandguest_sched_prioritypassed, and so did the neighbouringguest_thread_self,guest_pthread_attr,guest_pthread_attr_errorsandguest_pthread_startctests (6/6). Not run: Windows, macOS, any GPU/game.Source checks confirm that the original two cpuset bodies are retained with main's checked-copy adaptations, production outside them is unchanged, only the two cpuset debt entries change, both host-safety qualifications remain, and exactly ten new unsupported-throw assertions are absent while all other added test lines remain.
tools/check_conventions.pyandgit diff --checkpass. No compiler, native test, title or GPU result is claimed here. Prior contributor runs of #7135 are not runs of this carry. Console size-range reports remain separate evidence; this carry retains main's existing size handling.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by BunnyFl on 2026-11-02T02:03:06Z.
Review: APPROVED
Windows 11, WinLibs GCC 15.2.0 r7, Release. Head
f82fb8a9c9merged into upstream/main93dbd0f82a:guest_available_cpumask,guest_sched_priority,guest_thread_self,guest_pthread_attr,guest_pthread_attr_errors,guest_pthread_start: 6/6 pass.Pthread/Posix/Thread.cpp,guest_available_cpumaskaborts, and the five neighbours still pass.That covers Windows, which the description lists as not run.