aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/kvm_types.h
diff options
context:
space:
mode:
authorSean Christopherson <seanjc@google.com>2022-04-29 21:00:21 +0000
committerPaolo Bonzini <pbonzini@redhat.com>2022-05-25 05:23:41 -0400
commit3dddf65b4f4c451c345d34ae85bdf1791a746e49 (patch)
tree8b068db831c9b8db6a179763a710adec69a75469 /include/linux/kvm_types.h
parentKVM: Drop unused @gpa param from gfn=>pfn cache's __release_gpc() helper (diff)
downloadlinux-rng-3dddf65b4f4c451c345d34ae85bdf1791a746e49.tar.xz
linux-rng-3dddf65b4f4c451c345d34ae85bdf1791a746e49.zip
KVM: Put the extra pfn reference when reusing a pfn in the gpc cache
Put the struct page reference to pfn acquired by hva_to_pfn() when the old and new pfns for a gfn=>pfn cache match. The cache already has a reference via the old/current pfn, and will only put one reference when the cache is done with the pfn. Fixes: 982ed0de4753 ("KVM: Reinstate gfn_to_pfn_cache with invalidation support") Cc: stable@vger.kernel.org Signed-off-by: Sean Christopherson <seanjc@google.com> Message-Id: <20220429210025.3293691-5-seanjc@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/linux/kvm_types.h')
0 files changed, 0 insertions, 0 deletions