• Paolo Bonzini's avatar
    Merge tag 'kvm-x86-mmu-6.9' of https://github.com/kvm-x86/linux into HEAD · 41ebae2e
    Paolo Bonzini authored
    KVM x86 MMU changes for 6.9:
    
     - Clean up code related to unprotecting shadow pages when retrying a guest
       instruction after failed #PF-induced emulation.
    
     - Zap TDP MMU roots at 4KiB granularity to minimize the delay in yielding if
       a reschedule is needed, e.g. if a high priority task needs to run.  Because
       KVM doesn't support yielding in the middle of processing a zapped non-leaf
       SPTE, zapping at 1GiB granularity can result in multi-millisecond lag when
       attempting to schedule in a high priority.
    
     - Rework TDP MMU root unload, free, and alloc to run with mmu_lock held for
       read, e.g. to avoid serializing vCPUs when userspace deletes a memslot.
    
     - Allocate write-tracking metadata on-demand to avoid the memory overhead when
       running kernels built with KVMGT support (external write-tracking enabled),
       but for workloads that don't use nested virtualization (shadow paging) or
       KVMGT.
    41ebae2e
x86.c 370 KB