Red Hat Bugzilla – Bug 1515110
Regression in QEMU handling for sub-page MMIO BARs for vfio-pci devices [rhel-7.4.z]
Last modified: 2018-01-25 06:44:56 EST
This bug has been copied from bug #1511802 and has been proposed to be backported to 7.4 z-stream (EUS).
Fix included in qemu-kvm-1.5.3-141.el7_4.5
Reproduce this bz successfully, and it is ok with qemu-kvm-1.5.3-141.el7_4.5. Test steps: 1. Unbind one EHCI device from host, and bind to vfio-pci. #lspci | grep "USB Enhanced" 00:1a.0 USB controller: Intel Corporation C610/X99 series chipset USB Enhanced Host Controller #2 (rev 05) 00:1d.0 USB controller: Intel Corporation C610/X99 series chipset USB Enhanced Host Controller #1 (rev 05) Choose "00:1a.0". # readlink /sys/bus/pci/devices/0000\:00\:1a.0/iommu_group ../../../kernel/iommu_groups/10 # ls /sys/kernel/iommu_groups/10/devices/ 0000:00:1a.0 ---> iommu group 10 only have one device, it is ok for testing. Unbind it from host and bind it vfio-pci. #ll /sys/bus/pci/devices/0000\:00\:1a.0/driver lrwxrwxrwx. 1 root root 0 Nov 29 04:19 /sys/bus/pci/devices/0000:00:1a.0/driver -> ../../../bus/pci/drivers/vfio-pci 2. Boot VM with this passthrough device: -device vfio-pci,host=00:1a.0,id=ehci \ 3. Connect to VM and check the status of the VM. ----------------Reproduce-------------- Test version: qemu: qemu-kvm-1.5.3-141.el7 kernel: kernel-3.10.0-693.el7.x86_64 Test result: Guest stuck at "Press ESC for boot menu" (i add "-boot menu=on in the command line"), without "-boot menu=on", guest stuck at "ipxe(hrrp://ipxe.org)...." when i boot without the pass through EHCI device, guest work well. ----------------Verification-------------- Test version: qemu: qemu-kvm-1.5.3-141.el7_4.5.x86_64 kernel: kernel-3.10.0-693.el7.x86_64 Test result: Guest can boot up normally, reboot, shutdown and hot-plug/unplug the pass through device several times, no problem.
Move to verified per comment 6.
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-2018:0148