Bug 1738450
| Summary: | For intel-iommu, qemu shows conflict behaviors between booting a guest with vfio and hot plugging vfio device | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux Advanced Virtualization | Reporter: | Pei Zhang <pezhang> |
| Component: | qemu-kvm | Assignee: | Peter Xu <peterx> |
| qemu-kvm sub component: | General | QA Contact: | Pei Zhang <pezhang> |
| Status: | CLOSED ERRATA | Docs Contact: | |
| Severity: | medium | ||
| Priority: | medium | CC: | alex.williamson, bdas, chayang, ddepaula, jinzhao, juzhang, knoel, peterx, rbalakri, virt-maint, yanghliu |
| Version: | 8.1 | Flags: | knoel:
mirror+
|
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | qemu-kvm-4.2.0-1.module+el8.2.0+4793+b09dd2fb | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1738440 | Environment: | |
| Last Closed: | 2020-05-05 09:47:43 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: | 1738440 | ||
| Bug Blocks: | |||
|
Description
Pei Zhang
2019-08-07 08:16:39 UTC
Versions: 4.18.0-128.el8.x86_64 qemu v4.1.0-rc3 Verified this bz with qemu-kvm-4.2.0-1.module+el8.2.0+4793+b09dd2fb.x86_64: Steps following Description. After step 2, qemu prompts warning info and works well. This is expected behavior. (qemu) device_add vfio-pci,host=0000:5e:00.0,bus=root.3 Error: Device assignment is not allowed without enabling caching-mode=on for Intel IOMMU. After step 3, qemu fails reboot without "caching-mode=on". This is expected behavior. -device intel-iommu,intremap=on,device-iotlb=on \ -device vfio-pci,host=0000:5e:00.0,bus=root.3 \ (qemu) qemu-kvm: -device vfio-pci,host=0000:5e:00.0,bus=root.3: warning: vfio 0000:5e:00.0: failed to setup resample irqfd: Invalid argument qemu-kvm: We need to set caching-mode=on for intel-iommu to enable device assignment with IOMMU protection. So this bug has been fixed very well. Move to 'Verified'. QEMU has been recently split into sub-components and as a one-time operation to avoid breakage of tools, we are setting the QEMU sub-component of this BZ to "General". Please review and change the sub-component if necessary the next time you review this BZ. Thanks 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/RHBA-2020:2017 |