vz(usbip): add USB/IP URB engine #5785
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.33) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.33 · 140 lines diff across 1 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.296
Real PR Conversation Timeline
1 comments
"Review active on #5785"
general
weight: 0.35
AkihiroSuda
What This PR Changes
Part 1 of 6 of the USB passthrough split requested in #5770. It adds the host side of the USB/IP data path, with no wiring to any driver or CLI yet.
pkg/usbip/protocol.go: the URB wire format (CMD_SUBMIT,CMD_UNLINK,RET_SUBMIT,RET_UNLINK).pkg/usbip/server.go: runs a URB session over a conn and relays control, bulk and interrupt URBs to aDeviceinterface, which keeps the URB handling OS-neutral. Isochronous URBs fail with-ESHUTDOWN.- Queued URBs are capped at 64 MiB per session.
- When a session ends, every pending URB is answered before the conn closes.
vhci-hcdoopses on any other giveback of a scatter-gather URB.Linked Issue (Required in most cases)
Refs #4766
How I Tested This
Host: macOS 27.2
go test -race ./pkg/usbip/(wire format, submit errors and ZLPs, validation and backlog cap, endpoint queues and unlinks, session end and drain)I tested end to end on hardware on the full stack in #5770.
AI Usage
Assisted-by: Claude Code (Claude Opus 5.5)