Re: [PATCH] drivers/virt: pkvm: Zero and clean memory before sharing it with the host

From: Fuad Tabba

Date: Mon Nov 16 2026 - 11:47:15 EST


On Mon, 16 Nov 2026 at 16:42, Vincent Donnefort <vdonnefort@xxxxxxxxxx> wrote:
[...]
> While I don't disagree with having the memset in CMOs in the guest, I still
> believe the hypervisor should do it as well.
>
> Linux is not the only virtualised guest and they all should be able to trust the
> hypervisor to do the right thing for them, which it doesn't.

I agree, and I think that that's the consensus [1].

This fix is for the guest part.

Cheers,
/fuad

[1] https://lore.kernel.org/all/20260923130031.GE1540250@xxxxxxxx/