Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • X xcap-capability-linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • xcap
  • xcap-capability-linux
  • Repository
Switch branch/tag
  • xcap-capability-linux
  • arch
  • x86
  • kernel
  • kvm.c
Find file BlameHistoryPermalink
  • Raghavendra K T's avatar
    KVM: Enable pvspinlock after jump_label_init() to avoid VM hang · 3dbef3e3
    Raghavendra K T authored Oct 09, 2013
    We use jump label to enable pv-spinlock. With the changes in (442e0973
    Merge branch 'x86/jumplabel'), the jump label behaviour has changed
    that would result in eventual hang of the VM since we would end up in a
    situation where slow path locks would halt the vcpus but we will not be
    able to wakeup the vcpu by lock releaser using unlock kick.
    
    Similar problem in Xen and more detailed description is available in
    a945928e
    
     (xen: Do not enable spinlocks before jump_label_init()
    has executed)
    
    This patch splits kvm_spinlock_init to separate jump label changes with
    pvops patching and also make jump label enabling after jump_label_init().
    Signed-off-by: default avatarRaghavendra K T <raghavendra.kt@linux.vnet.ibm.com>
    Reviewed-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    Reviewed-by: default avatarSteven Rostedt <rostedt@goodmis.org>
    Signed-off-by: default avatarGleb Natapov <gleb@redhat.com>
    3dbef3e3