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 2064530

Summary: Rebuild qemu-kvm with clang-14
Product: Red Hat Enterprise Linux 9 Reporter: Tom Stellard <tstellar>
Component: qemu-kvmAssignee: Miroslav Rezanina <mrezanin>
qemu-kvm sub component: General QA Contact: zhenchao <zhencliu>
Status: CLOSED ERRATA Docs Contact:
Severity: unspecified    
Priority: unspecified CC: berrange, coli, jinzhao, juzhang, mdeng, virt-maint, wquan, yfu, zhencliu
Version: 9.1Flags: zhencliu: needinfo-
pm-rhel: mirror+
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: qemu-kvm-7.0.0-4.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-15 09:54:33 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: 2061041    
Bug Blocks:    

Description Tom Stellard 2022-03-16 05:37:07 UTC
We will be updating clang to version 14 for RHEL9.1.  qemu-kvm should plan to rebuild with this new version for the RHEL9.1 release.  Let me know if you have any concerns about this.

Comment 1 Miroslav Rezanina 2022-03-16 13:55:20 UTC
As we are doing regular update this should be done natural way with first build after clang update.

Comment 2 Daniel Berrangé 2022-05-17 09:02:18 UTC
Looks like new compiler exposed a logic bug in migration code that needs this upstream fix:

commit f912ec5b2d65644116ff496b58d7c9145c19e4c0
Author: Dr. David Alan Gilbert <dgilbert>
Date:   Wed Apr 6 11:25:15 2022 +0100

    migration: Fix operator type
    
    Clang spotted an & that should have been an &&; fix it.
    
    Reported by: David Binderman / https://gitlab.com/dcb
    Fixes: 65dacaa04fa ("migration: introduce save_normal_page()")
    Resolves: https://gitlab.com/qemu-project/qemu/-/issues/963
    Signed-off-by: Dr. David Alan Gilbert <dgilbert>
    Message-Id: <20220406102515.96320-1-dgilbert>
    Reviewed-by: Peter Maydell <peter.maydell>
    Reviewed-by: Peter Xu <peterx>
    Signed-off-by: Dr. David Alan Gilbert <dgilbert>

Comment 6 Yanan Fu 2022-05-23 05:43:17 UTC
QE bot(pre verify): Set 'Verified:Tested,SanityOnly' as gating/tier1 test pass.

Comment 13 errata-xmlrpc 2022-11-15 09:54:33 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-2022:7967