Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • L linux-vs
  • 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 1
    • Merge requests 1
  • 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
  • linux-vs
  • Repository
Switch branch/tag
  • linux-vs
  • arch
  • x86
  • kvm
  • mmu.c
Find file BlameHistoryPermalink
  • Sean Christopherson's avatar
    KVM: x86/mmu: Zap only the relevant pages when removing a memslot · 4e103134
    Sean Christopherson authored Feb 05, 2019
    
    
    Modify kvm_mmu_invalidate_zap_pages_in_memslot(), a.k.a. the x86 MMU's
    handler for kvm_arch_flush_shadow_memslot(), to zap only the pages/PTEs
    that actually belong to the memslot being removed.  This improves
    performance, especially why the deleted memslot has only a few shadow
    entries, or even no entries.  E.g. a microbenchmark to access regular
    memory while concurrently reading PCI ROM to trigger memslot deletion
    showed a 5% improvement in throughput.
    
    Cc: Xiao Guangrong <guangrong.xiao@gmail.com>
    Signed-off-by: default avatarSean Christopherson <sean.j.christopherson@intel.com>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    4e103134