Re: [PATCH V4] KVM: SEV: fix wrong pinning of pages

From: Sean Christopherson
Date: Fri Feb 14 2025 - 20:06:37 EST


On Tue, 11 Feb 2025 10:37:03 +0800, yangge1116@xxxxxxx wrote:
> In the sev_mem_enc_register_region() function, we need to call
> sev_pin_memory() to pin memory for the long term. However, when
> calling sev_pin_memory(), the FOLL_LONGTERM flag is not passed, causing
> the allocated pages not to be migrated out of MIGRATE_CMA/ZONE_MOVABLE,
> violating these mechanisms to avoid fragmentation with unmovable pages,
> for example making CMA allocations fail.
>
> [...]

Applied to kvm-x86 svm, thanks!

[1/1] KVM: SEV: fix wrong pinning of pages
https://github.com/kvm-x86/linux/commit/7e066cb9b71a

--
https://github.com/kvm-x86/linux/tree/next