Re: [PATCH v2 1/1] system/physmem: take into account fd_offset for file fallocate

2025-01-22 Thread William Roche
On 1/22/25 09:01, David Hildenbrand wrote: On 21.01.25 23:54, “William Roche wrote: From: William Roche [...] --- a/system/physmem.c +++ b/system/physmem.c @@ -3655,6 +3655,7 @@ int ram_block_discard_range(RAMBlock *rb, uint64_t start, size_t length)   need_madvise = (rb->page_size ==

Re: [PATCH v2 1/1] system/physmem: take into account fd_offset for file fallocate

2025-01-22 Thread David Hildenbrand
On 21.01.25 23:54, “William Roche wrote: From: William Roche Punching a hole in a file with fallocate needs to take into account the fd_offset value for a correct file location. But guest_memfd internal use doesn't currently consider fd_offset. Fixes: 4b870dc4d0c0 ("hostmem-file: add offset op

[PATCH v2 1/1] system/physmem: take into account fd_offset for file fallocate

2025-01-21 Thread “William Roche
From: William Roche Punching a hole in a file with fallocate needs to take into account the fd_offset value for a correct file location. But guest_memfd internal use doesn't currently consider fd_offset. Fixes: 4b870dc4d0c0 ("hostmem-file: add offset option") Signed-off-by: William Roche ---