Bug 588251

Summary: kvm spinning updating a guest pte, unkillable
Product: Red Hat Enterprise Linux 5 Reporter: Avi Kivity <avi>
Component: kvmAssignee: Karen Noel <knoel>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: high    
Version: 5.5CC: jwest, knoel, lihuang, mjenner, tburke, virt-maint, ykaul
Target Milestone: rcKeywords: ZStream
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: kvm-83-181.el5 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-01-13 23:35:21 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:    
Bug Blocks: 596381    

Description Avi Kivity 2010-05-03 10:05:54 UTC
Description of problem:

vcpu hung in a loop:

crash> bt
PID: 25723  TASK: ffff81081e66f040  CPU: 5   COMMAND: "qemu-kvm"
 #0 [ffff8107b2bc7a48] schedule at ffffffff80063f96
 #1 [ffff8107b2bc7b20] __cond_resched at ffffffff8008f9cb
 #2 [ffff8107b2bc7b30] cond_resched at ffffffff800640cb
 #3 [ffff8107b2bc7b40] gfn_to_pfn at ffffffff8836d03d
 #4 [ffff8107b2bc7b70] gfn_to_page at ffffffff8836ee5b
 #5 [ffff8107b2bc7b80] paging64_cmpxchg_gpte at ffffffff88377c46
 #6 [ffff8107b2bc7ba0] paging64_walk_addr at ffffffff88379a8b
 #7 [ffff8107b2bc7c10] paging64_gva_to_gpa at ffffffff8837a2e3
 #8 [ffff8107b2bc7cb0] emulator_write_emulated_onepage at ffffffff883710e9
 #9 [ffff8107b2bc7cf0] x86_emulate_insn at ffffffff8837f380
#10 [ffff8107b2bc7da0] emulate_instruction at ffffffff88370f81
#11 [ffff8107b2bc7de0] kvm_arch_vcpu_ioctl_run at ffffffff88373861
#12 [ffff8107b2bc7e20] kvm_vcpu_ioctl at ffffffff8836f0ec
#13 [ffff8107b2bc7eb0] do_ioctl at ffffffff80042489
#14 [ffff8107b2bc7ed0] vfs_ioctl at ffffffff800304d6
#15 [ffff8107b2bc7f40] sys_ioctl at ffffffff8004cbb7
#16 [ffff8107b2bc7f80] tracesys at ffffffff8005e28d (via system_call)
    RIP: 0000003d290cc647  RSP: 0000000041a88f58  RFLAGS: 00000246


Version-Release number of selected component (if applicable):

kmod-kvm-83-164.el5

How reproducible:

?

Steps to Reproduce:
1. No
2. Idea
  
Actual results:

Guest spinning, host task unkillable.

Expected results:

All is well.

Additional info:

Comment 2 Marcelo Tosatti 2010-05-04 07:38:59 UTC
*** Bug 585951 has been marked as a duplicate of this bug. ***

Comment 8 lihuang 2010-06-01 16:30:29 UTC
using steps in bug 585951#c0

reproduced bug on kvm-83-164.el5. (AMD host, w/o npt)

verified in kvm-83-181.el5

Comment 12 errata-xmlrpc 2011-01-13 23:35:21 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-0028.html