Diese Instanz von GitLab ist Pre-Release und noch nicht offiziell als Dienst freigeschaltet.

This GitLab instance is pre-release and not an officially announced service.

Skip to content
  • Sean Christopherson's avatar
    2ebbe030
    KVM: Allow arch code to elide TLB flushes when aging a young page · 2ebbe030
    Sean Christopherson authored
    Add a Kconfig to allow architectures to opt-out of a TLB flush when a
    young page is aged, as invalidating TLB entries is not functionally
    required on most KVM-supported architectures.  Stale TLB entries can
    result in false negatives and theoretically lead to suboptimal reclaim,
    but in practice all observations have been that the performance gained by
    skipping TLB flushes outweighs any performance lost by reclaiming hot
    pages.
    
    E.g. the primary MMUs for x86 RISC-V, s390, and PPC Book3S elide the TLB
    flush for ptep_clear_flush_young(), and arm64's MMU skips the trailing DSB
    that's required for ordering (presumably because there are optimizations
    related to eliding other TLB flushes when doing make-before-break).
    
    Link: https://lore.kernel.org/r/20241011021051.1557902-18-seanjc@google.com
    
    
    Signed-off-by: default avatarSean Christopherson <seanjc@google.com>
    2ebbe030
    KVM: Allow arch code to elide TLB flushes when aging a young page
    Sean Christopherson authored
    Add a Kconfig to allow architectures to opt-out of a TLB flush when a
    young page is aged, as invalidating TLB entries is not functionally
    required on most KVM-supported architectures.  Stale TLB entries can
    result in false negatives and theoretically lead to suboptimal reclaim,
    but in practice all observations have been that the performance gained by
    skipping TLB flushes outweighs any performance lost by reclaiming hot
    pages.
    
    E.g. the primary MMUs for x86 RISC-V, s390, and PPC Book3S elide the TLB
    flush for ptep_clear_flush_young(), and arm64's MMU skips the trailing DSB
    that's required for ordering (presumably because there are optimizations
    related to eliding other TLB flushes when doing make-before-break).
    
    Link: https://lore.kernel.org/r/20241011021051.1557902-18-seanjc@google.com
    
    
    Signed-off-by: default avatarSean Christopherson <seanjc@google.com>
Loading