[Bug 55201] host panic when "creating guest, doing scp and killing QEMU process" continuously

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.kernel.org/show_bug.cgi?id=55201


Jay Ren <yongjie.ren@xxxxxxxxx> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |CODE_FIX




--- Comment #8 from Jay Ren <yongjie.ren@xxxxxxxxx>  2013-04-07 02:19:13 ---
I verified this against the latest kvm.git tree (next branch).
The following commit fixed this bug.

commit c09664bb44184b3846e8c5254db4eae4b932682a
Author: Marcelo Tosatti <mtosatti@xxxxxxxxxx>
Date:   Mon Mar 18 13:54:32 2013 -0300

    KVM: x86: fix deadlock in clock-in-progress request handling

    There is a deadlock in pvclock handling:

    cpu0:                                               cpu1:
    kvm_gen_update_masterclock()
                                                  kvm_guest_time_update()
     spin_lock(pvclock_gtod_sync_lock)
                                                   local_irq_save(flags)

    spin_lock(pvclock_gtod_sync_lock)

     kvm_make_mclock_inprogress_request(kvm)
      make_all_cpus_request()
       smp_call_function_many()

    Now if smp_call_function_many() called by cpu0 tries to call function on
    cpu1 there will be a deadlock.

    Fix by moving pvclock_gtod_sync_lock protected section outside irq
    disabled section.

    Analyzed by Gleb Natapov <gleb@xxxxxxxxxx>
    Acked-by: Gleb Natapov <gleb@xxxxxxxxxx>
    Reported-and-Tested-by: Yongjie Ren <yongjie.ren@xxxxxxxxx>
    Signed-off-by: Marcelo Tosatti <mtosatti@xxxxxxxxxx>

-- 
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux