• Sean Christopherson's avatar
    KVM: Do not pin pages tracked by gfn=>pfn caches · 85165781
    Sean Christopherson authored
    Put the reference to any struct page mapped/tracked by a gfn=>pfn cache
    upon inserting the pfn into its associated cache, as opposed to putting
    the reference only when the cache is done using the pfn.  In other words,
    don't pin pages while they're in the cache.  One of the major roles of
    the gfn=>pfn cache is to play nicely with invalidation events, i.e. it
    exists in large part so that KVM doesn't rely on pinning pages.
    Signed-off-by: default avatarSean Christopherson <seanjc@google.com>
    Message-Id: <20220429210025.3293691-9-seanjc@google.com>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    85165781
pfncache.c 9.96 KB