Bug 1468260
Summary: | vhost-user/iommu: crash when backend disconnects | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Maxime Coquelin <maxime.coquelin> | |
Component: | qemu-kvm-rhev | Assignee: | Maxime Coquelin <maxime.coquelin> | |
Status: | CLOSED ERRATA | QA Contact: | Pei Zhang <pezhang> | |
Severity: | medium | Docs Contact: | ||
Priority: | high | |||
Version: | 7.4 | CC: | ailan, chayang, jherrman, juzhang, michen, mrezanin, mtessun, pezhang, virt-maint, xiywang | |
Target Milestone: | rc | Keywords: | ZStream | |
Target Release: | --- | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | qemu-kvm-rhev-2.10.0-1.el7 | Doc Type: | Bug Fix | |
Doc Text: |
Previously, the qemu-kvm service in some cases terminated unexpectedly when starting the Input/Output Memory Management Unit (IOMMU) feature. This update ensures that all active conections are released in the proper order when starting IOMMU. As a result, the back end no longer attempts to handle requests after the connections are released, which prevents the problem from occurring.
|
Story Points: | --- | |
Clone Of: | ||||
: | 1480446 (view as bug list) | Environment: | ||
Last Closed: | 2018-04-11 00:26:27 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: | ||||
Bug Blocks: | 1480446 |
Description
Maxime Coquelin
2017-07-06 13:35:37 UTC
This bug has been fixed. ==Reproduce== Versions: qemu-kvm-rhev-2.9.0-8.el7.x86_64 dpdk-17.11-1.el7fdb.x86_64 3.10.0-820.el7.x86_64 Steps: 1. In host, boot testpmd with iommu-support=on in vhost-user # testpmd \ -l 1,3,5 --socket-mem=1024,1024 -n 4 \ -d /usr/lib64/librte_pmd_vhost.so \ --vdev 'net_vhost0,iface=/tmp/vhost-user1,iommu-support=1' -- \ --portmask=3 --disable-hw-vlan -i --rxq=1 --txq=1 \ --nb-cores=2 --forward-mode=io 2. Boot qemu with vIOMMU, and vhost-user "iommu_platform=on,ats=on" /usr/libexec/qemu-kvm -name rhel7.5_nonrt \ -M q35,kernel-irqchip=split \ -cpu host -m 8G \ -device intel-iommu,intremap=true,caching-mode=true \ -object memory-backend-file,id=mem,size=8G,mem-path=/dev/hugepages,share=on \ -numa node,memdev=mem -mem-prealloc \ -smp 4,sockets=1,cores=4,threads=1 \ -device pcie-root-port,id=root.1,slot=1 \ -device pcie-root-port,id=root.2,slot=2 \ -drive file=/home/images_nfv-virt-rt-kvm/rhel7.5_nonrt.qcow2,format=qcow2,if=none,id=drive-virtio-blk0,werror=stop,rerror=stop \ -device virtio-blk-pci,drive=drive-virtio-blk0,id=virtio-blk0,bus=root.1 \ -chardev socket,id=charnet1,path=/tmp/vhost-user1 \ -netdev vhost-user,chardev=charnet1,id=hostnet1 \ -device virtio-net-pci,netdev=hostnet1,id=net1,mac=18:66:da:5f:dd:02,iommu_platform=on,ats=on,bus=root.2 \ -vnc :2 \ -monitor stdio \ 3. qemu quit with segmentation after several seconds. (qemu) Segmentation fault So this bug has been reproduced. ==Verification== Versions: qemu-kvm-rhev-2.10.0-12.el7.x86_64 dpdk-17.11-1.el7fdb.x86_64 3.10.0-820.el7.x86_64 Steps: 1. In host, boot testpmd with iommu-support=on in vhost-user Same command line as above step 2. 2. Boot qemu with vIOMMU, and vhost-user "iommu_platform=on,ats=on" Same command line as above step 2. 3. Check qemu and guest status, work well, no any error. 4. Reboot/shutdown guest, work well. So this bug has been fixed very well. Thanks. Move status of this bug to "VERIFIED" 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:1104 |