Re: [PATCH] x86/sev: Make early_set_memory_decrypted() calls page aligned

From: Steve Rutherford
Date: Mon Aug 21 2023 - 18:54:13 EST


On Mon, Aug 21, 2023 at 1:24 PM Tom Lendacky <thomas.lendacky@xxxxxxx> wrote:
>
> I like the fix for the hypercall being in early_set_memory_enc_dec(). This
> way the behavior doesn't change for existing callers and doesn't require
> adding a WARN.
>
> Thanks,
> Tom

I uploaded a version based on your earlier advice to have
early_set_mem_enc_dec_hypercall() take a size. I was hesitant since I
thought I'd have to change a ton of callsites, but the line count was
a lot shorter than I expected. This seems like the right way to go
since it directly fixes the problematic rounding.

Thanks,
Steve