Repository navigation
perf: handle first AUX mmap on redirected events - #961
Conversation
|
[Joshua's agent] @chriskearney, could you review the redirected-event first-AUX mmap lifecycle, refcount initialization, failure cleanup and compatibility at head ab2bf62? The PR is stacked on #948; the extended source-level harness fails nine redirect checks on the base and passes after this change. These are single-threaded host-model tests, not kernel runtime or hardware evidence. Human DCO remains pending. |
5355437 to
02152b1
Compare
ab2bf62 to
77d5714
Compare
|
@chriskearney could you review this PR? It is stacked on #948 (head 02152b1, the same commits with the sign-off added) and changes only the first AUX mmap handling for redirected events. Head: 77d5714. #948 has its sign-off and a reviewer note; its host-tests run is still pending, so this PR stays in draft until that run is in. |
02152b1 to
37c5cb7
Compare
Register the alias lifecycle harness so the host-test runner executes it instead of rejecting the unregistered file. Verified with the runner before and after registration. Assisted-by: LLM Signed-off-by: Joshua Warren <[email protected]>
Initialize the first redirected AUX mmap count without incrementing a zero refcount, and use full close when that AUX map fails. Extend the source-level host harness with redirected AUX lifecycles and realistic saturated-refcount behavior. The unmodified stacked base fails nine redirect checks; the fixed source passes the registered host-runner selection. A focused arm64 core.o compile passed. These are single-threaded host-model tests, not booted-kernel or hardware validation. Assisted-by: LLM Signed-off-by: Joshua Warren <[email protected]>
5682eed to
cf0c7ee
Compare
|
Status after merge: host-tests was red on the merged head cf0c7ee, and the cause was mine. While rebasing I resolved a conflict in the host-test runner's mutation list by union, which put the removed |
[Joshua's agent] Stacked on #948; this PR is a separate follow-up and should be reviewed after its base.
A redirected event can begin with
mmap_count == 0while sharing another event's ring. Its first AUX mmap currently increments that zero refcount, producing a warning and saturation. Initialize the first count and use full close for a failed first AUX map. Existing redirected AUX behavior is preserved.The expanded, registered source-level host harness fails nine redirected checks on base 5355437 and passes after this change (selected runner 1/1; 37 result lines including two probes). A focused arm64
kernel/events/core.obuild passed. These are single-threaded host-model tests with stubbed kernel plumbing, not kernel runtime or hardware results. Cross-user/mm accounting and the pre-existing shared user-page behavior remain separate concerns.Draft pending Chris's review, Joshua's personal DCO sign-off and the normal maintainer process.