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.
Cause
Currently -nodefconfig doesn't disable import of cpu-x86_64.conf.
This combined with -readconfig imports occurring after cpudef_setup()
disallow pointing qemu at an alternate cpu-x86_64.conf file.
Consequence
User effectively can't read in alternate cpu-x86_64.conf file impacting
qemu debug and potentially end user local configuration.
Workaround
Requires moving/overwriting default config files by the user.
Result
-nodefconfig works as intended and intuitively expected.
Created attachment 439585[details]
Example patch providing above fix.
Description of problem:
Currently -nodefconfig doesn't disable import of cpu-x86_64.conf.
This combined with -readconfig imports occurring after cpudef_setup()
disallow pointing qemu at an alternate cpu-x86_64.conf file.
Notably, -readconfig support is broken.
Version-Release number of selected component (if applicable):
RHEL6.0-20100816.n.0-Server-x86_64
How reproducible:
launch qemu with:
-nodefconfig -readconfig ? -readconfig mydebug/cpu-x86_64.conf
the definitions in the system installed:
/usr/share/qemu-kvm/cpu-model/cpu-x86_64.conf
are unconditionally imported while the:
mydebug/cpu-x86_64.conf
definitions are read in but have no effect due to occurring after the
call to cpudef_setup() in the above example.
Steps to Reproduce:
(as stated above)
Actual results:
can't read in alternate cpu-x86_64.conf file.
Expected results:
should be able to use CLI as described above for debug.
Additional info:
1. Broken -readconfig support went unnoticed as libvirt does not use this
option. Given libvirt dependencies it may be necessary to entertain
another flag to disable import of cpu-x86_64.conf as libvirt assumes
this file is unconditionally imported.
2. A patch is attached which includes import of cpu-x86_64.conf under
-nodefconfig and fixes the behavior of -readconfig.
3. All of the above and related cpu config logic is subject to change
pending reconciling this rhel6 special functionality upstream.
Technical note added. If any revisions are required, please edit the "Technical Notes" field
accordingly. All revisions will be proofread by the Engineering Content Services team.
New Contents:
Cause
Currently -nodefconfig doesn't disable import of cpu-x86_64.conf.
This combined with -readconfig imports occurring after cpudef_setup()
disallow pointing qemu at an alternate cpu-x86_64.conf file.
Consequence
User effectively can't read in alternate cpu-x86_64.conf file impacting
qemu debug and potentially end user local configuration.
Workaround
Requires moving/overwriting default config files by the user.
Result
-nodefconfig works as intended and intuitively expected.
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.
http://rhn.redhat.com/errata/RHSA-2011-0534.html
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.
http://rhn.redhat.com/errata/RHSA-2011-0534.html
Created attachment 439585 [details] Example patch providing above fix. Description of problem: Currently -nodefconfig doesn't disable import of cpu-x86_64.conf. This combined with -readconfig imports occurring after cpudef_setup() disallow pointing qemu at an alternate cpu-x86_64.conf file. Notably, -readconfig support is broken. Version-Release number of selected component (if applicable): RHEL6.0-20100816.n.0-Server-x86_64 How reproducible: launch qemu with: -nodefconfig -readconfig ? -readconfig mydebug/cpu-x86_64.conf the definitions in the system installed: /usr/share/qemu-kvm/cpu-model/cpu-x86_64.conf are unconditionally imported while the: mydebug/cpu-x86_64.conf definitions are read in but have no effect due to occurring after the call to cpudef_setup() in the above example. Steps to Reproduce: (as stated above) Actual results: can't read in alternate cpu-x86_64.conf file. Expected results: should be able to use CLI as described above for debug. Additional info: 1. Broken -readconfig support went unnoticed as libvirt does not use this option. Given libvirt dependencies it may be necessary to entertain another flag to disable import of cpu-x86_64.conf as libvirt assumes this file is unconditionally imported. 2. A patch is attached which includes import of cpu-x86_64.conf under -nodefconfig and fixes the behavior of -readconfig. 3. All of the above and related cpu config logic is subject to change pending reconciling this rhel6 special functionality upstream.