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.

Bug 637520

Summary: reboot(RB_AUTOBOOT) fails if kvm instance is running
Product: Red Hat Enterprise Linux 6 Reporter: Avi Kivity <avi>
Component: kernelAssignee: Marcelo Tosatti <mtosatti>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.1CC: arozansk, bcao, cluster-maint, edamato, gcosta, juzhang, knoel, lhh, lihuang, michen, mkenneth, mtosatti, qcai, shu, szhou, tburke, virt-maint, yeylon, ykaul
Target Milestone: rc   
Target Release: 6.2   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: kernel-2.6.32-188.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 608709 Environment:
Last Closed: 2011-12-06 12:34:13 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: 608709, 638501    
Bug Blocks: 580954, 683791    

Comment 2 RHEL Program Management 2010-10-05 01:52:28 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 3 Aristeu Rozanski 2010-11-17 19:45:46 UTC
Patch(es) available on kernel-2.6.32-83.el6

Comment 5 Mike Cao 2011-01-11 04:29:11 UTC
test on kernel-2.6.32-94.el6.

steps:
1.start VM :
CLI:/usr/libexec/qemu-kvm -M rhel6.0.0 -enable-kvm -m 2G -smp 2,sockets=2,cores=1,threads=1 -name RHEVM -uuid b13c1ed4-0eca-3db9-b754-478768f50409 -monitor stdio -rtc base=utc -boot dc -drive file=/home/RHEL6.raw,if=none,id=drive-virtio-disk0,boot=on,format=raw,cache=none,werror=stop,rerror=stop -device virtio-blk-pci,drive=drive-virtio-disk0,id=virtio-disk0 -netdev tap,id=hostnet0 -device virtio-net-pci,netdev=hostnet0,id=net0,mac=00:00:01:00:00:01 -chardev socket,id=serial0,path=/tmp/ch,server,nowait -device isa-serial,chardev=serial0 -usb -vnc :3 -usb -vga cirrus -device virtio-balloon-pci,id=balloon0
2.run some jobs in guest #dd if=/dev/vda2 of=/tt bs=1M count=1024
3.on the host #reboot -fn


Actual Results:
host call trace occurs.host can not reboot.


Additional info :
I tested 5 times and reproduced 2 times. 
This issue is similiar with bug #608709 reported on RHEL5.7.

Based on above ,re-assign this issue.

Comment 8 Aristeu Rozanski 2011-03-14 17:32:10 UTC
*** Bug 638501 has been marked as a duplicate of this bug. ***

Comment 9 Marcelo Tosatti 2011-03-24 10:52:39 UTC
Its not OK to enable interrupts (http://patchwork.usersys.redhat.com/patch/28568/) under IPI via vmcs_clear:

- reboot(RB_AUTOBOOT), disables vmx
- CPU-A does smp_call_function(CPU-B, vcpu_clear)
- CPU-B faults and enables interrupts while handling IPI

Comment 11 RHEL Program Management 2011-06-07 16:59:50 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 13 Aristeu Rozanski 2011-08-25 16:16:12 UTC
Patch(es) available on kernel-2.6.32-188.el6

Comment 16 Shaolong Hu 2011-09-28 05:47:11 UTC
Reproduced on 2.6.32-94.el6.x86_64:

Steps to reproduce:
-------------------
1.boot guest with:
/usr/libexec/qemu-kvm -enable-kvm -M rhel6.2.0 -smp 4 -m 4G -name rhel6.1-64 -uuid 3f2ea5cd-3d29-48ff-aab2-23df1b6ae213 -drive file=nfs/RHEL-Server-6.1-64-virtio.qcow2,cache=none,if=none,rerror=stop,werror=stop,id=drive-virtio-disk0,format=qcow2 -device virtio-blk-pci,drive=drive-virtio-disk0,id=device-virtio-disk0,bootindex=1 -netdev tap,script=/etc/qemu-ifup,id=netdev0,vhost=on -device virtio-net-pci,netdev=netdev0,id=device-net0 -boot order=cd -monitor stdio -vnc :10

2.in guest:
#dd if=/dev/zero of=tmp.img bs=1M count=1024

3.in host:
#reboot -fn

Actual results:
---------------
After step 3, host hangs.


Verified on 2.6.32-210.el6.x86_64:

Actual results:
---------------
After step 3, host reboot correctly, based on this, the bug has been fixed.

Comment 17 juzhang 2011-10-09 05:48:42 UTC
According to comment16,set this issue as verified.

Comment 18 errata-xmlrpc 2011-12-06 12:34:13 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, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHSA-2011-1530.html