Skip to content

feat: reap KVM session-owner orphans on fresh Host ensure - #340

Merged
ZhiXiao-Lin merged 2 commits into
mainfrom
feat/kvm-reap-orphaned-session-on-fresh-ensure
Sep 13, 2026
Merged

ZhiXiao-Lin merged 2 commits into
mainfrom
feat/kvm-reap-orphaned-session-on-fresh-ensure

Conversation

@ZhiXiao-Lin

Copy link
Copy Markdown

Summary

  • Box-owned Linux KVM Host spawn forces A3S_OCI_KVM_SESSION_OWNER=1 (parallel to native supervised create).
  • Fresh with_linux_kvm_oci_qualification construction reaps orphaned session-owner / shim identities from KVM Live bindings under {runtime_root}/shares when reclaiming a dead Host.
  • Retained-manager Live reopen keeps the default ensure path (no reap).
  • Stopped-only box-owned qualification asserts orphans survive Host SIGKILL until fresh ensure tears them down.
  • Docs updated without KVM MicroVM production, B2, or cutover claims.

Test plan

  • Linux CI Format / Clippy / unit tests
  • linux-kvm-oci-qualification --box-owned proves restart_session_orphans_observed + restart_session_orphans_reaped
  • Live retained-manager harness still reopens with session-owner intact (no reap)

ZhiXiao-Lin and others added 2 commits September 13, 2026 13:24
Box-owned KVM Host spawn forces session-owner create. Fresh qualification
construction tears down Live-survivable session-owner/shim children when
reclaiming a dead Host; retained-manager Live reopen keeps the no-reap path.

Co-authored-by: Cursor <[email protected]>
@ZhiXiao-Lin
ZhiXiao-Lin merged commit 4f758e0 into main Sep 13, 2026
14 checks passed
@ZhiXiao-Lin
ZhiXiao-Lin deleted the feat/kvm-reap-orphaned-session-on-fresh-ensure branch September 13, 2026 06:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant