summaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorSean Christopherson <seanjc@google.com>2024-01-11 05:00:44 +0300
committerSean Christopherson <seanjc@google.com>2024-02-23 03:28:45 +0300
commit99b85fda91b164b91a0d4e0aae376f32dc38d59c (patch)
treee8ddec9b821086319aa948c5584493b74a650c77 /lib/memory-notifier-error-inject.c
parent6577f1efdff443277b19c0fbe4b933404e7c84e6 (diff)
downloadlinux-99b85fda91b164b91a0d4e0aae376f32dc38d59c.tar.xz
KVM: x86/mmu: Skip invalid roots when zapping leaf SPTEs for GFN range
When zapping a GFN in response to an APICv or MTRR change, don't zap SPTEs for invalid roots as KVM only needs to ensure the guest can't use stale mappings for the GFN. Unlike kvm_tdp_mmu_unmap_gfn_range(), which must zap "unreachable" SPTEs to ensure KVM doesn't mark a page accessed/dirty, kvm_tdp_mmu_zap_leafs() isn't used (and isn't intended to be used) to handle freeing of host memory. Link: https://lore.kernel.org/r/20240111020048.844847-5-seanjc@google.com Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions