Bug 1584571
| Summary: | RFE: qemu: support redirdev hotunplug | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | jiyan <jiyan> |
| Component: | libvirt | Assignee: | Libvirt Maintainers <libvirt-maint> |
| Status: | CLOSED ERRATA | QA Contact: | lijuan men <lmen> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 7.6 | CC: | crobinso, dyuan, hhan, jiyan, jtomko, libvirt-maint, lmen, mtessun, mzhan, pkrempa, xuzhang |
| Target Milestone: | rc | Keywords: | FutureFeature |
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | LibvirtFirstBug | ||
| Fixed In Version: | libvirt-4.3.0-1.el7 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1313272 | Environment: | |
| Last Closed: | 2018-10-30 09:55:54 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: | |||
| Bug Depends On: | 1313272 | ||
| Bug Blocks: | |||
|
Description
jiyan
2018-05-31 08:46:01 UTC
verify the bug
version:
libvirt-4.5.0-9.el7.x86_64
qemu-kvm-rhev-2.12.0-14.el7.x86_64
the basic scenarios:
1)tcp type
[root@localhost ~]# cat redirdev-tcp.xml
<redirdev bus='usb' type='tcp'>
<source mode='connect' host='localhost' service='4000' tls='no'/>
<protocol type='raw'/>
</redirdev>
[root@localhost ~]# virsh attach-device test redirdev-tcp.xml
Device attached successfully
in the guest,
[root@localhost ~]# lsusb
Bus 001 Device 002: ID 0951:1642 Kingston Technology DT101 G2
[root@localhost ~]# virsh detach-device test redirdev-tcp.xml
Device detached successfully
[root@localhost ~]# virsh dumpxml test | grep redi -A 2
[root@localhost ~]#
in the guest,there is not the usb device
2)spicevmc type
[root@localhost ~]# cat redirdev-spice.xml
<redirdev bus='usb' type='spicevmc'>
</redirdev>
[root@localhost ~]# virsh attach-device test redirdev-spice.xml
Device attached successfully
[root@localhost ~]# virsh dumpxml test | grep redi -A 2
<redirdev bus='usb' type='spicevmc'>
<alias name='redir0'/>
<address type='usb' bus='0' port='1'/>
</redirdev>
[root@localhost ~]# virsh detach-device test redirdev-spice.xml
Device detached successfully
[root@localhost ~]# virsh dumpxml test | grep redi -A 2
[root@localhost ~]#
the test matrix is:
usb 1/2/3
i440/q35
type='tcp'/spicevmc
detach using alias/xml
[--persistent] [--config] [--live] [--current]
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2018:3113 |