Bug 1965638
Summary: | Guest kernel panic when booting with qemu-6.0.50 using custom libvirt XML | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Lukáš Doktor <ldoktor> | |
Component: | qemu-kvm | Assignee: | Virtualization Maintenance <virt-maint> | |
qemu-kvm sub component: | CPU Models | QA Contact: | liunana <nanliu> | |
Status: | CLOSED ERRATA | Docs Contact: | ||
Severity: | unspecified | |||
Priority: | unspecified | CC: | chayang, coli, ddepaula, jinzhao, juzhang, mrezanin, nanliu, nilal, pbonzini, virt-maint | |
Version: | --- | Keywords: | TestOnly, Triaged | |
Target Milestone: | beta | |||
Target Release: | --- | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | qemu-kvm-6.1.0-2.module+el8.6.0+12861+13975d62 | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 2001388 (view as bug list) | Environment: | ||
Last Closed: | 2022-05-10 13:18:42 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: | 1997410 | |||
Bug Blocks: | 2001388 |
Comment 4
Lukáš Doktor
2021-06-01 09:14:08 UTC
Assigned to Amnon for initial triage per bz process and age of bug created or assigned to virt-maint without triage. Hello guys, I noticed the pipeline seems to be working well now so I bisected the fix up to: 4db4385a7ab6512e9af08305f5725b26c8a980ee is the first bad commit commit 4db4385a7ab6512e9af08305f5725b26c8a980ee Author: Claudio Fontana <cfontana> Date: Thu Jun 3 14:30:01 2021 +0200 i386: run accel_cpu_instance_init as post_init This fixes host and max cpu initialization, by running the accel cpu initialization only after all instance init functions are called for all X86 cpu subclasses. The bug this is fixing is related to the "max" and "host" i386 cpu subclasses, which set cpu->max_features, which is then used at cpu realization time. In order to properly split the accel-specific max features code that needs to be executed at cpu instance initialization time, we cannot call the accel cpu initialization at the end of the x86 base class initialization, or we will have no way to specialize "max features" cpu behavior, overriding the "max" cpu class defaults, and checking for the "max features" flag itself. This patch moves the accel-specific cpu instance initialization to after all x86 cpu instance code has been executed, including subclasses, so that proper initialization of cpu "host" and "max" can be restored. Fixes: f5cc5a5c ("i386: split cpu accelerators from cpu.c,"...) Cc: Eduardo Habkost <ehabkost> Cc: Paolo Bonzini <pbonzini> Signed-off-by: Claudio Fontana <cfontana> Message-Id: <20210603123001.17843-3-cfontana> Signed-off-by: Paolo Bonzini <pbonzini> target/i386/cpu.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) bisect run success I think it makes sense and hopefully this issue is resolved (we just need to make sure this patch is in after rebase) I don't understand what we're supposed to do with this BZ. The bug is already fixed upstream and it was never present in an official RHEL-8 build or even in a released upstream version. What's the right state for this BZ? I don't think it makes sense to keep it open. I'm not sure either. Depends whether it requires additional QA coverage to prevent such regression or not. (In reply to Lukas Doktor from comment #10) > I'm not sure either. Depends whether it requires additional QA coverage to > prevent such regression or not. A question for QE and our maintainers: let's assume we want QE to verify this bug after we officially rebase to 6.1 (in 8.6). What's the right status of this BZ if we want to do that? Hi, could you please grant QA_ACK? (In reply to Danilo Cesar Lemes de Paula from comment #13) > Hi, could you please grant QA_ACK? Sure and done, thanks. Test PASS with configuration in attachments and guest works well. Test Env: qemu-kvm-6.1.0-2.module+el8.6.0+12861+13975d62.x86_64 4.18.0-348.4.el8.x86_64 Guest:4.18.0-348.2.el8.x86_64 Move this bug to verified now, thanks. Best regards Liu Nana 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: virt:rhel and virt-devel:rhel 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:1759 |