]> www.infradead.org Git - nvme.git/commit
KVM: guest_memfd: return folio from __kvm_gmem_get_pfn()
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 11 Jul 2024 22:27:44 +0000 (18:27 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 26 Jul 2024 18:46:14 +0000 (14:46 -0400)
commitd0d87226f535965b4dafc6ef79246456503a4503
treea20edaaff35a6a7dd04af727a7a68bf1dcf7fe28
parent5932ca411e533e7ad2b97c47b4357a05fa06c2a5
KVM: guest_memfd: return folio from __kvm_gmem_get_pfn()

Right now this is simply more consistent and avoids use of pfn_to_page()
and put_page().  It will be put to more use in upcoming patches, to
ensure that the up-to-date flag is set at the very end of both the
kvm_gmem_get_pfn() and kvm_gmem_populate() flows.

Reviewed-by: Michael Roth <michael.roth@amd.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
virt/kvm/guest_memfd.c