Bug 1879052
| Summary: | IOMMU enable failed on "vhost-vsock-pci" device (QEMU) | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux Advanced Virtualization | Reporter: | Zhenyu Zhang <zhenyzha> | |
| Component: | qemu-kvm | Assignee: | Stefano Garzarella <sgarzare> | |
| qemu-kvm sub component: | PCI | QA Contact: | Qinghua Cheng <qcheng> | |
| Status: | CLOSED ERRATA | Docs Contact: | ||
| Severity: | medium | |||
| Priority: | high | CC: | ailan, coli, ddepaula, jinzhao, juzhang, ngu, qcheng, qzhang, sgarzare, smitterl, virt-maint, yafu | |
| Version: | 8.3 | Keywords: | RFE, TestOnly | |
| Target Milestone: | rc | Flags: | pm-rhel:
mirror+
|
|
| Target Release: | 8.3 | |||
| Hardware: | All | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | qemu-5.2 384c2561bddfa00cd3eaf9edbc1af6c7c120511f | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1894101 (view as bug list) | Environment: | ||
| Last Closed: | 2021-11-16 07:51:01 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: | 1894101 | |||
| Bug Blocks: | ||||
|
Description
Zhenyu Zhang
2020-09-15 10:42:39 UTC
Jon, should it be triaged by someone working on vsock? Stefano - is there any relationship to bug 1868449 here? or is this something new? (In reply to John Ferlan from comment #2) > Stefano - is there any relationship to bug 1868449 here? or is this > something new? No, I think it is not related. It seems that vhost-vsock doesn't support iommu-platform=on since the very beginning: https://patchew.org/QEMU/20200226094357.25061-1-jasowang@redhat.com I'll take a closer look! QEMU should work as is, but I found a little issue that I fixed upstream: https://lists.gnu.org/archive/html/qemu-devel/2020-10/msg09077.html The patch was already merged: 384c2561bd ("vhost-vsock: set vhostfd to non-blocking mode") The issue is mainly related to the vhost-vsock kernel module that doesn't have IOTLB API support, so I'll create a new BZ for kernel. Merged upstream in QEMU-5.2: 384c2561bddfa00cd3eaf9edbc1af6c7c120511f - set vhostfd to non-blocking mode But it depends on a kernel patch, so leaving it as POST + TestOnly. Since this is testOnly, I'm moving it to ON_QA Verified on RHEL8.5 kernel: 4.18.0-307.el8.x86_64 qemu-kvm: qemu-kvm-6.0.0-16.module+el8.5.0+10848+2dccc46d.x86_64 Enable iommu in command line for vsock, guest vm startup successfully. Command line 1: .... -machine q35,kernel-irqchip=split \ -device intel-iommu,intremap=on,device-iotlb=on \ -device vhost-vsock-pci,guest-cid=3,iommu_platform=on,ats=on \ .... Command line 2: ... -device vhost-vsock-pci,id=vhost_vsock0,guest-cid=3,bus=pcie-root-port-4,addr=0x0,iommu_platform=on \ ... 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 (virt:av bug fix and enhancement update), 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/RHBA-2021:4684 |