Bug 2229133

Summary: Backport some virtio-iommu and smmu fixes
Product: Red Hat Enterprise Linux 9 Reporter: Eric Auger <eric.auger>
Component: qemu-kvmAssignee: Eric Auger <eric.auger>
qemu-kvm sub component: Devices QA Contact: jinl
Status: VERIFIED --- Docs Contact:
Severity: medium    
Priority: unspecified CC: coli, jinzhao, juzhang, virt-maint, yanghliu, yihyu
Version: 9.3Keywords: Triaged
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: qemu-kvm-8.0.0-11.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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:

Description Eric Auger 2023-08-04 09:58:41 UTC
This BZ to track the backport of the following fixes:

c6445544d4  hw/arm/smmu: Handle big-endian hosts correctly
cf2f89edf3  hw/virtio-iommu: Fix potential OOB access in virtio_iommu_handle_command()
1084feddc6  virtio-iommu: Standardize granule extraction and formatting

Comment 2 Eric Auger 2023-08-04 15:30:05 UTC
request-evaluation

Comment 6 jinl 2023-08-10 09:49:02 UTC
Test with host
qemu-kvm-8.0.0-11.el9
5.14.0-350.el9.x86_64

Regression test pass for virtio-iommu on x86

RESULTS    : PASS 85 | ERROR 0 | FAIL 0 | SKIP 1 | WARN 0 | INTERRUPT 0 | CANCEL 0
JOB HTML   : /home/kar/workspace/job-results/job-2023-08-10T00.48-96b7b66/results.html
JOB TIME   : 16792.40 s

Comment 7 Yanan Fu 2023-08-10 11:18:39 UTC
QE bot(pre verify): Set 'Verified:Tested,SanityOnly' as gating/tier1 test pass.

Comment 11 Yanghang Liu 2023-08-15 04:47:46 UTC
Test for vfio-vf/vfio-pf: PASS

Test env:
qemu-kvm-8.0.0-11.el9.x86_64
libvirt-9.5.0-5.el9.x86_64
5.14.0-354.el9.x86_64
host CPU model: Skylake-Server-IBRS and EPYC-Milan

Test device:
XL710,XXV710, SFC9220

Test scenario:
start a VM with a PF/VF + virtio iommu device
reboot a VM with a PF/VF + virtio iommu device
shutdown a VM with a PF/VF + virtio iommu device
hotplug a PF/VF into a VM with a virtio iommu device
hotunplug a PF/VF from the VM with a virtio iommu device



Detailed test result:
2023-08-14 18:59:08 | PASS - XL710 PF +  virtio iommu device test
2023-08-15 00:05:23 | PASS - SFC9220 VF +  virtio iommu device test
2023-08-14 19:03:22 | PASS - XXV710 PF +  virtio iommu device test
2023-08-14 19:38:54 | PASS - XXV710 VF +  virtio iommu device test

Comment 12 jinl 2023-08-16 01:42:02 UTC
Based on Comment 6, Comment 10 and Comment 11 set the BZ to verified.