diff options
author | Ge Yang <yangge1116@126.com> | 2025-02-11 05:37:03 +0300 |
---|---|---|
committer | Sean Christopherson <seanjc@google.com> | 2025-02-12 21:50:42 +0300 |
commit | 7e066cb9b71a22c3e5ef233de63ff14525baf6f0 (patch) | |
tree | 1afbb2fa00453556691a1979e9b40d6b70a01b0d /tools/perf/scripts/python/task-analyzer.py | |
parent | a6136669da6314691d4d8d1139ea19346c68d2cf (diff) | |
download | linux-7e066cb9b71a22c3e5ef233de63ff14525baf6f0.tar.xz |
KVM: SEV: Use long-term pin when registering encrypted memory regions
When registering an encrypted memory region for SEV-MEM/SEV-ES guests,
pin the pages with FOLL_TERM so that the pages are migrated out of
MIGRATE_CMA/ZONE_MOVABLE. Failure to do so violates the CMA/MOVABLE
mechanisms and can result in fragmentation due to unmovable pages, e.g.
can make CMA allocations fail.
Signed-off-by: Ge Yang <yangge1116@126.com>
Reviewed-by: Tom Lendacky <thomas.lendacky@amd.com>
Acked-by: David Hildenbrand <david@redhat.com>
Link: https://lore.kernel.org/r/1739241423-14326-1-git-send-email-yangge1116@126.com
[sean: massage changelog, make @flags an unsigned int]
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions