Skip to content

Add dynamic CID allocation for Linux VMs#3

Merged
domenkozar merged 1 commit into
mainfrom
cid-allocation
Nov 26, 2025
Merged

Add dynamic CID allocation for Linux VMs#3
domenkozar merged 1 commit into
mainfrom
cid-allocation

Conversation

@domenkozar
Copy link
Copy Markdown
Member

Each Linux VM now gets a unique CID (Context ID) for vsock communication, preventing address collisions when running multiple VMs concurrently.

Follows the existing IpGuard RAII pattern with CidGuard for automatic cleanup. macOS VMs are unaffected as the Virtualization framework handles CID allocation automatically.

🤖 Generated with Claude Code

Comment thread runner/src/vsock.rs
Each Linux VM now gets a unique CID (Context ID) for vsock communication,
preventing address collisions when running multiple VMs concurrently.

Follows the existing IpGuard RAII pattern with CidGuard for automatic
cleanup. macOS VMs are unaffected as the Virtualization framework
handles CID allocation automatically.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@domenkozar domenkozar requested a review from sandydoo November 26, 2025 12:48
@domenkozar domenkozar merged commit df67f61 into main Nov 26, 2025
6 checks passed
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.

2 participants