Re: [RFC PATCH 13/14] samples/kvm: Back absent pages on demand in the sample provider
From: Ackerley Tng
Date: Thu Oct 29 2026 - 09:04:03 EST
Fred Griffoul <griffoul@xxxxxxxxx> writes:
> From: Fred Griffoul <fgriffo@xxxxxxxxxxxx>
>
> The sample provider fails get_pfn() for an absent page and keeps its
> frames on a punch hole, so tests cannot exercise a provider that backs
> a hole when it is asked for a frame, one that backs more than the page
> asked for, or one that frees the frames that a punch hole gives back.
>
> Add MPS_NEW_FILE_FILL: get_pfn() then backs an absent page with the
> whole 2 MiB block around it, and put_pfn_range() makes the pages absent
> again.
>
Can what MPS_NEW_FILE_FILL is meant to illustrate be illustrated with
the ioctl that sets memory present?
> Assisted-by: Claude:claude-opus-5-5
> Signed-off-by: Fred Griffoul <fgriffo@xxxxxxxxxxxx>
>
> [...snip...]
>