Bug 1472131

Summary: Guest OS will down when disk enable the IOMMU for Virtio
Product: Red Hat Enterprise Linux 7 Reporter: Oneata Mircea Teodor <toneata>
Component: seabiosAssignee: jason wang <jasowang>
Status: CLOSED ERRATA QA Contact: FuXiangChun <xfu>
Severity: high Docs Contact:
Priority: high    
Version: 7.4CC: ailan, chayang, coli, dyuan, jasowang, jherrman, jishao, juzhang, knoel, michen, mrezanin, mtessun, pezhang, virt-maint, xuzhang, yalzhang
Target Milestone: rcKeywords: ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: seabios-1.10.2-4.el7 Doc Type: Bug Fix
Doc Text:
Previously, after enabling the Input/Output Memory Management Unit (IOMMU) for a Q35 machine type guest, the guest failed to boot and displayed a "No bootable device" error message. This update fixes the handling of IOMMU on Q35 guests, and the described problem no longer occurs.
Story Points: ---
Clone Of: 1463163 Environment:
Last Closed: 2017-09-05 11:23:01 UTC Type: ---
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: 1463163    
Bug Blocks:    

Description Oneata Mircea Teodor 2017-07-18 06:51:01 UTC
This bug has been copied from bug #1463163 and has been proposed to be backported to 7.4 z-stream (EUS).

Comment 2 Danilo de Paula 2017-07-26 21:15:00 UTC
Fix included in seabios-1.10.2-4.el7

Comment 4 FuXiangChun 2017-07-27 03:25:06 UTC
1)Reproduced bug with:
seabios-1.10.2-3.el7
3.10.0-693.el7.x86_64
qemu-kvm-rhev-2.9.0-16.el7_4.3.x86_64

cli:
/usr/libexec/qemu-kvm -M pc -cpu host -enable-kvm -m 2G -smp 4 -nodefconfig -rtc base=localtime,driftfix=slew -device virtio-scsi-pci,iommu_platform=on,id=scsi0,disable-legacy=on,disable-modern=off -drive file=/home/rhel74-64-virtio.qcow2,format=qcow2,if=none,id=drive-scsi0-0-0-0 -device scsi-hd,bus=scsi0.0,channel=0,scsi-id=0,lun=0,drive=drive-scsi0-0-0-0,id=scsi0-0-0-0,bootindex=1 -vnc :1 -monitor stdio

result:
Boot failed: could not read the boot disk

2)Verified bug with:
seabios-1.10.2-4.el7_4.x86_64
3.10.0-693.el7.x86_64
qemu-kvm-rhev-2.9.0-16.el7_4.3.x86_64

steps:
1. In host, add "iommu=pt intel_iommu=on" to kernel line
2. Add "intel_iommu=on" to kernel line of  q35/pc  guest
3. boot virtio-scsi with iommu_platform=on

result:
Guest works well

Additional
I tested device 'virtio-blk-pci' and machine type pc/q35 as well. Guest still works well.

Comment 5 FuXiangChun 2017-07-27 03:26:13 UTC
According to this comment4, set this bug as verified.

Comment 7 errata-xmlrpc 2017-09-05 11:23:01 UTC
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-2017:2567

Comment 8 Jaroslav Suchanek 2017-09-29 14:02:22 UTC
*** Bug 1482387 has been marked as a duplicate of this bug. ***