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 2095608 - Please correct the error message when try to start qemu with "-M kernel-irqchip=split"
Summary: Please correct the error message when try to start qemu with "-M kernel-irqch...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: qemu-kvm
Version: 9.1
Hardware: aarch64
OS: Linux
low
low
Target Milestone: rc
: 9.1
Assignee: Cornelia Huck
QA Contact: Yihuang Yu
URL:
Whiteboard:
Depends On:
Blocks: 1924294 2091421
TreeView+ depends on / blocked
 
Reported: 2022-06-10 01:57 UTC by Yihuang Yu
Modified: 2022-11-15 10:21 UTC (History)
9 users (show)

Fixed In Version: qemu-kvm-7.0.0-10.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-11-15 09:54:42 UTC
Type: Enhancement
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Gitlab redhat/centos-stream/src qemu-kvm merge_requests 110 0 None opened kvm: don't use perror() without useful errno 2022-08-02 09:16:14 UTC
Red Hat Issue Tracker RHELPLAN-124940 0 None None None 2022-06-10 02:05:14 UTC
Red Hat Product Errata RHSA-2022:7967 0 None None None 2022-11-15 09:55:24 UTC

Description Yihuang Yu 2022-06-10 01:57:53 UTC
Description of problem:
int kvm_arch_irqchip_create(KVMState *s)
{
    if (kvm_kernel_irqchip_split()) {
        perror("-machine kernel_irqchip=split is not supported on ARM.");
        exit(1);
    }

perror will capture the error context and print it with its own message. But there is no error context here, so the error message becomes "-machine kernel_irqchip=split is not supported on ARM.: Success". I think we should cut out ": Success" from the message, even though this is a negative test.

Version-Release number of selected component (if applicable):
qemu-kvm-7.0.0-5.el9.aarch64

How reproducible:
always

Steps to Reproduce:
1. Start qemu process with "-M kernel-irqchip=split"
# /usr/libexec/qemu-kvm -M kernel-irqchip=split

Actual results:
-machine kernel_irqchip=split is not supported on ARM.: Success

Expected results:
Cut ": Success" out from the error message.
-machine kernel_irqchip=split is not supported on ARM.

Additional info:
Only aarch64 does not support kernel-irqchip=split, so this should be an aarch64-specific issue.
https://gitlab.com/qemu-project/qemu/-/blob/master/target/arm/kvm.c#L959-964

Also can reproduce it using upstream qemu.
./build/aarch64-softmmu/qemu-system-aarch64 -version
QEMU emulator version 7.0.50 (v7.0.0-1512-gca127b3fc2)
Copyright (c) 2003-2022 Fabrice Bellard and the QEMU Project developers

./build/aarch64-softmmu/qemu-system-aarch64 -accel kvm -M virt,kernel-irqchip=split
-machine kernel_irqchip=split is not supported on ARM.: Success

Comment 5 Cornelia Huck 2022-07-29 06:47:01 UTC
upstream patch: https://lore.kernel.org/all/20220728142446.438177-1-cohuck@redhat.com/

Comment 6 Cornelia Huck 2022-08-01 16:01:33 UTC
Now merged as 47c182fe8b03c0c40059fb95840923e65c9bdb4f.

Comment 11 Yihuang Yu 2022-08-09 08:28:47 UTC
Verify with qemu-kvm-7.0.0-10.el9

# /usr/libexec/qemu-kvm -version
QEMU emulator version 7.0.0 (qemu-kvm-7.0.0-10.el9)
Copyright (c) 2003-2022 Fabrice Bellard and the QEMU Project developers

# /usr/libexec/qemu-kvm -cpu host -M virt,kernel-irqchip=split
qemu-kvm: -machine kernel_irqchip=split is not supported on ARM.

Comment 14 Yihuang Yu 2022-08-16 08:25:10 UTC
This is a negative test so no need to run regression tests, and based on comment 11, move this status to "VERIFIED" directly.

Comment 17 errata-xmlrpc 2022-11-15 09:54:42 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


Note You need to log in before you can comment on or make changes to this bug.