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 980782 - kernel_irqchip defaults to off instead of on without -machine
Summary: kernel_irqchip defaults to off instead of on without -machine
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: qemu-kvm
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Markus Armbruster
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-07-03 08:41 UTC by Markus Armbruster
Modified: 2014-06-18 03:30 UTC (History)
7 users (show)

Fixed In Version: qemu-kvm-1.5.3-2.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-13 10:53:40 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Markus Armbruster 2013-07-03 08:41:36 UTC
Description of problem:
Logic error in kvm_irqchip_create(): it defaults machine option
kernel_irqchip to off when no machine options exist, but to on when
any machine options exist.

How reproducible:
Always

Steps to Reproduce:
1. Run qemu-kvm -nodefaults -display none -monitor stdio
2. Monitor command info qtree
3. Run qemu-kvm -nodefaults -display none -monitor stdio -machine ""
4. Monitor command info qtree
5. Run qemu-kvm -nodefaults -display none -monitor stdio -machine "kernel_irqchip=off"
6. Monitor command info qtree


Actual results:
Step 2+6 show 'dev: apic, id ""'.
Step 4 shows 'dev: kvm-apic, id ""'.

Expected results:
Step 6 show 'dev: apic, id ""'.
Step 2+4 show 'dev: kvm-apic, id ""'.

Additional info:
In step 3., any other way to create a machine option without disabling
KVM or setting its kernel_irqchip works, including -usb, -kernel, ...

Bug exists upstream, but can't bite there, because KVM is disabled by
default, and you can't enable it without creating machine options.

Comment 2 Markus Armbruster 2013-07-11 06:36:54 UTC
Fixed upstream in 96bc97e^..c1b71b0.

Comment 3 Markus Armbruster 2013-08-06 13:14:02 UTC
RHEL-6 code is different, and doesn't have the logic error described above.  It does have the crash bugs fixed upstream 96bc97e and 6d4cd40.  Not sure they're worth fixing, as the only known reproducers are rather silly command lines.

Comment 4 Miroslav Rezanina 2013-08-29 11:16:23 UTC
Fix included in qemu-kvm-1.5.3-2.el7

Comment 6 huiqingding 2014-01-22 05:23:54 UTC
Reproduce this issue using the following version:
qemu-kvm-1.5.2-4.el7.x86_64
kernel-3.10.0-67.el7.x86_64

Steps to Reproduce:
1. Run qemu-kvm -nodefaults -display none -monitor stdio
2. Monitor command info qtree
3. Run qemu-kvm -nodefaults -display none -monitor stdio -machine ""
4. Monitor command info qtree
5. Run qemu-kvm -nodefaults -display none -monitor stdio -machine "kernel_irqchip=off"
6. Monitor command info qtree


Actual results:
Step2 and step6 show 'dev: apic, id ""'.
Step4 shows 'dev: kvm-apic, id ""'.

Verify this issue using the following version:
qemu-kvm-1.5.3-38.el7.x86_64
kernel-3.10.0-67.el7.x86_64

Steps to Verification:
1. Run qemu-kvm -nodefaults -display none -monitor stdio
2. Monitor command info qtree
3. Run qemu-kvm -nodefaults -display none -monitor stdio -machine ""
4. Monitor command info qtree
5. Run qemu-kvm -nodefaults -display none -monitor stdio -machine "kernel_irqchip=off"
6. Monitor command info qtree

Actual results:
Step 6 show 'dev: apic, id ""'.
Step 2 and Step 4 show 'dev: kvm-apic, id ""'.

Based on the above results, I think this bug has been fixed.

Comment 8 Ludek Smid 2014-06-13 10:53:40 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.


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