aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorPaolo Bonzini <[email protected]>2024-04-04 13:27:46 -0400
committerPaolo Bonzini <[email protected]>2024-05-10 13:11:47 -0400
commit17573fd971f9e31ddee420eca8359ceff87e9e51 (patch)
treedfd674f4a6c75e751e59af434a569cb80e0bd436 /lib/test_fortify/write_overflow-strncpy-src.c
parent3bb2531e20bff99f9cd8719ee7aea8bd82687173 (diff)
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: Paolo Bonzini <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions