usbip-rs/lib
Davíð Steinn Geirsson 015fc393ba fix: forward CLEAR_FEATURE(ENDPOINT_HALT) to real device for host passthrough
When a real USB device stalls an endpoint, the VM sends
CLEAR_FEATURE(ENDPOINT_HALT) to recover. Previously this was a no-op,
leaving the endpoint permanently stalled and causing the guest to hang.

Now the CLEAR_FEATURE handler in device.rs finds the interface that owns
the stalled endpoint and calls clear_halt on its handler. For host
passthrough this forwards to nusb's new Interface::clear_halt; for
simulated devices it remains a no-op.

Fixes YubiKey (and other CCID devices) hanging after endpoint stall
during passthrough.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-31 15:31:27 +00:00
..
fuzz-afl feat(fuzz): add AFL++ with cargo-afl fuzzing support 2026-03-27 00:33:34 +00:00
fuzz-cargo feat(fuzz): add AFL++ with cargo-afl fuzzing support 2026-03-27 00:33:34 +00:00
src fix: forward CLEAR_FEATURE(ENDPOINT_HALT) to real device for host passthrough 2026-03-31 15:31:27 +00:00
Cargo.toml fix: forward CLEAR_FEATURE(ENDPOINT_HALT) to real device for host passthrough 2026-03-31 15:31:27 +00:00