Bug 1298070
Summary: | libvirt should support hotplug usb redirection device successfully | ||
---|---|---|---|
Product: | [Community] Virtualization Tools | Reporter: | Pei Zhang <pzhang> |
Component: | libvirt | Assignee: | Libvirt Maintainers <libvirt-maint> |
Status: | CLOSED NEXTRELEASE | QA Contact: | |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | unspecified | CC: | agedosier, dyuan, mprivozn, mzhan, rbalakri, xuzhang |
Target Milestone: | --- | Keywords: | Reopened |
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | libvirt-1.3.6 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-06-10 13:23:22 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Pei Zhang
2016-01-13 07:31:06 UTC
sorry for missing libvirt version : # rpm -q libvirt libvirt-1.3.1-1.el7_v1.3.1_rc1_15_g71daae9.x86_64 Patch posted upstream: https://www.redhat.com/archives/libvir-list/2016-February/msg01003.html I've just pushed patch upstream: commit c92547c34a85331f34df7d2fe1c55eb40fea3f71 Author: Osier Yang <osier> AuthorDate: Tue Feb 23 00:44:09 2016 +0800 Commit: Michal Privoznik <mprivozn> CommitDate: Thu Feb 25 09:17:41 2016 +0100 Fix bug of attaching redirdev device RHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=1298070 The corresponding chardev must be attached first, otherwise the the qemu command line won't be complete (missing the host part), v1.3.2-rc1-4-gc92547c Hi, This issue still can be reproduced with libvirt-1.3.4-1.el7.x86_64 #cat usb-redir.xml <redirdev bus='usb' type='spicevmc'> </redirdev> #virsh attach-device g1 usb-redir.xml error: Failed to attach device from usb-redir.xml error: operation failed: Hotplug unsupported for char device type 'spicevmc' Hi Michal, I tested this issue with libvirt-1.3.4-1 and think it needs further modification. It should be attached successfully. Could you help check it? thanks. steps: 1. start a guest 2. prepare usb redirdev: <redirdev bus='usb' type='spicevmc'> </redirdev> 3. attach-device # virsh attach-device rhel72 usb-redir.xml error: Failed to attach device from usb-redir.xml error: operation failed: Hotplug unsupported for char device type 'spicevmc' # virsh attach-device rhel72 usb-redir.xml --config error: Failed to attach device from usb-redir.xml error: Operation not supported: persistent attach of device 'redirdev' is not supported Hey, thanks for the testing. It looks like you're totally right. I've proposed the patches on the list: https://www.redhat.com/archives/libvir-list/2016-June/msg00615.html I've just pushed the patch upstream: commit 3668526fa6f64f8de44f0faa639001b224ec6a15 Author: Michal Privoznik <mprivozn> AuthorDate: Wed Jun 8 15:51:27 2016 +0200 Commit: Michal Privoznik <mprivozn> CommitDate: Fri Jun 10 15:22:07 2016 +0200 qemuMonitorJSONAttachCharDev: Teach spicevmc https://bugzilla.redhat.com/show_bug.cgi?id=1298070 We have the code for attaching redirdevs for ages now. Unfortunately, our monitor code that handles talking to the qemu process was missing a little piece of code that actually enabled the feature. BTW: it really is called "type" on the monitor, even though it's called "name" on the cmd line. Don't ask. Signed-off-by: Michal Privoznik <mprivozn> v1.3.5-214-g3668526 |