Bug 657261

Summary: Guest kernels need 'noapic' to get kexec working with virtio-blk
Product: Red Hat Enterprise Linux 6 Reporter: Amit Shah <amit.shah>
Component: kernelAssignee: Gleb Natapov <gleb>
Status: CLOSED ERRATA QA Contact: Red Hat Kernel QE team <kernel-qe>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0CC: amit.shah, amwang, arozansk, dawu, gcase, knoel, mkenneth, phan, pwouters, tburke, virt-maint
Target Milestone: rc   
Target Release: 6.1   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: kernel-2.6.32-92.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 645278 Environment:
Last Closed: 2011-05-19 12:29:56 UTC Type: ---
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: 645278    
Bug Blocks: 580951    

Comment 2 Amit Shah 2010-11-26 10:26:50 UTC
Host: 2.6.32-70.el6.x86_64
Guest: 2.6.32-71.el6.x86_64
qemu-kvm: qemu-kvm-0.12.1.2-2.113.el6.x86_64

cmd line to reproduce:

 /usr/libexec/qemu-kvm -m 1G -smp 2 -drive file=/guests/rhel6-devel.qcow2,if=none,id=dr0 -device virtio-blk-pci,drive=dr0 -serial stdio -vnc :1 -snapshot

if the guest is not booted with 'noapic', kexec fails with virtio devices.

If the guest is booted with 'noapic', kexec in the guest works fine (with 'noapic' for kexec kernels as well, else it doesn't work).

Comment 3 Gleb Natapov 2010-11-26 11:37:23 UTC
(In reply to comment #2)
> Host: 2.6.32-70.el6.x86_64
> Guest: 2.6.32-71.el6.x86_64
> qemu-kvm: qemu-kvm-0.12.1.2-2.113.el6.x86_64
> 
> cmd line to reproduce:
> 
>  /usr/libexec/qemu-kvm -m 1G -smp 2 -drive
> file=/guests/rhel6-devel.qcow2,if=none,id=dr0 -device virtio-blk-pci,drive=dr0
> -serial stdio -vnc :1 -snapshot
> 
> if the guest is not booted with 'noapic', kexec fails with virtio devices.
All failures of kexec related to virtio should be tracked in Bug #645278. This bug is about guest reset during kexec. I was able to reproduce guest reset only with x2apic and it is knows guest bug fixed upstream. I backported the fix to RHEL6.

Comment 4 Dor Laor 2010-11-28 07:56:32 UTC
Gleb, so you wasn't able to reproduce this? 
Amit, can you check this bug with the #645278 fix?

Comment 5 Gleb Natapov 2010-11-28 08:02:10 UTC
(In reply to comment #4)
> Gleb, so you wasn't able to reproduce this? 
Depends on what "this" means. The bug report is very unclear. I was able to reproduce reboot during second kexec. This is guest bug. Patch was posted.

Reported virtio issue tracked by another bug (fwiw I was not able to reproduce it).

> Amit, can you check this bug with the #645278 fix?

Comment 6 Cong Wang 2010-11-29 02:18:29 UTC
*** Bug 655929 has been marked as a duplicate of this bug. ***

Comment 7 Amit Shah 2010-11-29 03:42:31 UTC
(In reply to comment #4)
> Amit, can you check this bug with the #645278 fix?

I can't reproduce it even w/o the fix.

Comment 9 RHEL Program Management 2010-12-14 17:40:12 UTC
This request was evaluated by Red Hat Product Management for inclusion
in a Red Hat Enterprise Linux maintenance release. Product Management has 
requested further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed 
products. This request is not yet committed for inclusion in an Update release.

Comment 10 Aristeu Rozanski 2010-12-16 20:53:49 UTC
Patch(es) available on kernel-2.6.32-92.el6

Comment 13 Paul Wouters 2011-05-09 22:50:09 UTC
I can confirm this. I was just bitten by it as well on 2.6.18-238.9.1. Adding noapic fixed it for me.

Comment 15 errata-xmlrpc 2011-05-19 12:29:56 UTC
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-0542.html