Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 17573fd9 authored by Paolo Bonzini's avatar Paolo Bonzini
Browse files

KVM: guest_memfd: extract __kvm_gmem_get_pfn()


In preparation for adding a function that walks a set of pages
provided by userspace and populates them in a guest_memfd,
add a version of kvm_gmem_get_pfn() that has a "bool prepare"
argument and passes it down to kvm_gmem_get_folio().

Populating guest memory has to call repeatedly __kvm_gmem_get_pfn()
on the same file, so make the new function take struct file*.

Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 3bb2531e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment