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
  • arch
  • powerpc
  • include
  • asm
  • code-patching.h
Find file BlameHistoryPermalink
  • Hari Bathini's avatar
    powerpc/code-patching: introduce patch_instructions() · 465cabc9
    Hari Bathini authored Oct 20, 2023
    
    
    patch_instruction() entails setting up pte, patching the instruction,
    clearing the pte and flushing the tlb. If multiple instructions need
    to be patched, every instruction would have to go through the above
    drill unnecessarily. Instead, introduce patch_instructions() function
    that sets up the pte, clears the pte and flushes the tlb only once
    per page range of instructions to be patched. Duplicate most of the
    patch_instruction() code instead of merging with it, to avoid the
    performance degradation observed on ppc32, for patch_instruction(),
    with the code path merged. Also, setup poking_init() always as BPF
    expects poking_init() to be setup even when STRICT_KERNEL_RWX is off.
    
    Signed-off-by: default avatarHari Bathini <hbathini@linux.ibm.com>
    Acked-by: default avatarSong Liu <song@kernel.org>
    Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
    Link: https://msgid.link/20231020141358.643575-2-hbathini@linux.ibm.com
    465cabc9
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7