Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • K kvmtool-dm
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • linux-arm
  • kvmtool-dm
  • Repository
Switch branch/tag
  • kvmtool-dm
  • virtio
  • console.c
Find file BlameHistoryPermalink
  • Jean-Philippe Brucker's avatar
    virtio-console: Fix pthread_cond initialization race · d7cfdc17
    Jean-Philippe Brucker authored Nov 29, 2017
    
    
    When characters are input on the console before virtio_console is
    initialized, the term.c poll thread will get stuck in
    virtio_console__inject_interrupt, because it ends up doing
    pthread_cond_wait on the uninitialized poll_cond, which will hang
    indefinitely. As a result it becomes impossible to input characters into
    the guest, even when using serial instead of virtio console.
    
    Initialize poll_cond statically to prevent this race.
    
    Signed-off-by: Jean-Philippe Brucker's avatarJean-Philippe Brucker <jean-philippe.brucker@arm.com>
    Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
    d7cfdc17