Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • 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
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
  • linux
  • include
  • kvm
  • arm_pmu.h
Find file BlameHistoryPermalink
  • Julien Thierry's avatar
    KVM: arm64: pmu: Make overflow handler NMI safe · 95e92e45
    Julien Thierry authored Sep 24, 2020
    
    
    kvm_vcpu_kick() is not NMI safe. When the overflow handler is called from
    NMI context, defer waking the vcpu to an irq_work queue.
    
    A vcpu can be freed while it's not running by kvm_destroy_vm(). Prevent
    running the irq_work for a non-existent vcpu by calling irq_work_sync() on
    the PMU destroy path.
    
    [Alexandru E.: Added irq_work_sync()]
    
    Signed-off-by: default avatarJulien Thierry <julien.thierry@arm.com>
    Signed-off-by: default avatarAlexandru Elisei <alexandru.elisei@arm.com>
    Tested-by: Sumit Garg <sumit.garg@linaro.org> (Developerbox)
    Cc: Julien Thierry <julien.thierry.kdev@gmail.com>
    Cc: Marc Zyngier <marc.zyngier@arm.com>
    Cc: Will Deacon <will.deacon@arm.com>
    Cc: Mark Rutland <mark.rutland@arm.com>
    Cc: Catalin Marinas <catalin.marinas@arm.com>
    Cc: James Morse <james.morse@arm.com>
    Cc: Suzuki K Pouloze <suzuki.poulose@arm.com>
    Cc: kvm@vger.kernel.org
    Cc: kvmarm@lists.cs.columbia.edu
    Link: https://lore.kernel.org/r/20200924110706.254996-6-alexandru.elisei@arm.com
    
    
    Signed-off-by: default avatarWill Deacon <will@kernel.org>
    95e92e45
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7