Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

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: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: unspecified CC: coli, jinzhao, juzhang, virt-maint, yanghliu, yihyu
Version: 9.3Keywords: Triaged
Target Milestone: rcFlags: pm-rhel: mirror+
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: 2023-11-07 08:28:04 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:

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.

Comment 14 errata-xmlrpc 2023-11-07 08:28:04 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 (Moderate: qemu-kvm security, 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/RHSA-2023:6368