summaryrefslogtreecommitdiff
path: root/virt/kvm/kvm_main.c
diff options
context:
space:
mode:
authorSean Christopherson <seanjc@google.com>2022-04-29 21:00:25 +0000
committerPaolo Bonzini <pbonzini@redhat.com>2022-05-25 05:23:44 -0400
commit85165781c5d900d97052be1d2723f6929d56768d (patch)
tree53f6265abd41eeff11990edf884eb52fe8d68d7f /virt/kvm/kvm_main.c
parent58cd407ca4c6278cf9f9d09a2e663bf645b0c982 (diff)
downloadlinux-85165781c5d900d97052be1d2723f6929d56768d.tar.gz
linux-85165781c5d900d97052be1d2723f6929d56768d.tar.bz2
linux-85165781c5d900d97052be1d2723f6929d56768d.zip
KVM: Do not pin pages tracked by gfn=>pfn caches
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: Sean Christopherson <seanjc@google.com> Message-Id: <20220429210025.3293691-9-seanjc@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'virt/kvm/kvm_main.c')
0 files changed, 0 insertions, 0 deletions