Re: [PATCH v2 3/5] KVM: SEV: Document/enforce page-alignment for KVM_SEV_SNP_LAUNCH_UPDATE

From: Vishal Annapurve

Date: Mon Dec 15 2025 - 19:15:20 EST


On Mon, Dec 15, 2025 at 7:35 AM Michael Roth <michael.roth@xxxxxxx> wrote:
>
> In the past, KVM_SEV_SNP_LAUNCH_UPDATE accepted a non-page-aligned
> 'uaddr' parameter to copy data from, but continuing to support this with
> new functionality like in-place conversion and hugepages in the pipeline
> has proven to be more trouble than it is worth, since there are no known
> users that have been identified who use a non-page-aligned 'uaddr'
> parameter.
>
> Rather than locking guest_memfd into continuing to support this, go
> ahead and document page-alignment as a requirement and begin enforcing
> this in the handling function.
>
> Signed-off-by: Michael Roth <michael.roth@xxxxxxx>

Reviewed-By: Vishal Annapurve <vannapurve@xxxxxxxxxx>