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

Fix issue #4491: USB device reset for Privileged VMs #4492

Merged
merged 1 commit into from
Aug 9, 2021

Conversation

jeremfg
Copy link
Contributor

@jeremfg jeremfg commented Aug 6, 2021

When a VM has PCI devices attached, xenopsd will call a usb reset with parameter "-r" for USB passthrough devices to indicate a privileged VM.
xen-api doesn't parse option "-r" properly and is wrongly expecting an integer. This PR fixes this.

@jeremfg jeremfg force-pushed the Fix4491_privileged_usb_reset branch from c922f91 to 2085ce1 Compare August 6, 2021 18:49
…h PCI device attached) is not working due to bad argument '-r'

Signed-off-by: Jérémie Faucher-Goulet <jeremiefauchergoulet@hotmail.com>
@jeremfg jeremfg force-pushed the Fix4491_privileged_usb_reset branch from 2085ce1 to 9d8f5bb Compare August 6, 2021 18:57
@psafont
Copy link
Member

psafont commented Aug 9, 2021

Do the VMs that gave you trouble boot successfully with this change?

@jeremfg
Copy link
Contributor Author

jeremfg commented Aug 9, 2021

Do the VMs that gave you trouble boot successfully with this change?

Yes. I've kept the change locally and use this.

@psafont psafont merged commit 62e1447 into xapi-project:master Aug 9, 2021
@jeremfg jeremfg deleted the Fix4491_privileged_usb_reset branch August 9, 2021 13:29
lindig added a commit to lindig/xen-api that referenced this pull request Aug 12, 2021
…ileged_usb_reset

Signed-off-by: Christian Lindig <christian.lindig@citrix.com>
lindig added a commit to lindig/xen-api that referenced this pull request Aug 12, 2021
…ileged_usb_reset

Signed-off-by: Christian Lindig <christian.lindig@citrix.com>
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.

3 participants