Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support resetting device on attach #36

Merged
merged 3 commits into from
May 29, 2024
Merged

Conversation

marmarek
Copy link
Member

This fixes attaching Nitrokey 3 Bootloader, but may help with other devices too.

Fixes QubesOS/qubes-issues#8953

marmarek added 3 commits May 29, 2024 03:16
If device is already attached to usbip-host, leave it there. This avoids
any other driver interacting with the device in the short time (if some
module gets loaded at this time for example).

QubesOS/qubes-issues#
Some device require reset after interacting with previous driver. When
device was used with usbip-host before, it took care of that when
detaching from previous target (VM). But if it was attached to some
other driver in sys-usb before, this needs to be done manually.

To limit possible impact, make this opt-in. There are two methods to opt
into this feature:
1. Enable it for all devices using (adjust sys-usb name if applicable):
   qvm-service --enable sys-usb usb-reset-on-attach
2. Enable for specific device by setting QUBES_USB_RESET udev property.

QubesOS/qubes-issues#8953
@marmarek marmarek merged commit 15fa205 into QubesOS:main May 29, 2024
2 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.

Unable to update Nitrokey 3 within an app qube
1 participant