linux/arch/x86/kvm/mmu
Sean Christopherson 5d6a322156 KVM: WARN if is_unsync_root() is called on a root without a shadow page
WARN and bail if is_unsync_root() is passed a root for which there is no
shadow page, i.e. is passed the physical address of one of the special
roots, which do not have an associated shadow page.  The current usage
squeaks by without bug reports because neither kvm_mmu_sync_roots() nor
kvm_mmu_sync_prev_roots() calls the helper with pae_root or pml4_root,
and 5-level AMD CPUs are not generally available, i.e. no one can coerce
KVM into calling is_unsync_root() on pml5_root.

Note, this doesn't fix the mess with 5-level nNPT, it just (hopefully)
prevents KVM from crashing.

Cc: Lai Jiangshan <jiangshanlai@gmail.com>
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20220225182248.3812651-8-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2022-03-01 08:58:26 -05:00
..
mmu_internal.h KVM: x86/mmu: Propagate memslot const qualifier 2021-12-08 04:24:43 -05:00
mmu.c KVM: WARN if is_unsync_root() is called on a root without a shadow page 2022-03-01 08:58:26 -05:00
mmutrace.h KVM: x86/mmu: Add tracepoint for splitting huge pages 2022-02-10 13:50:43 -05:00
page_track.c KVM: x86/mmu: Propagate memslot const qualifier 2021-12-08 04:24:43 -05:00
paging_tmpl.h KVM: x86: use struct kvm_mmu_root_info for mmu->root 2022-02-25 08:20:16 -05:00
paging.h KVM: x86/mmu: Do not apply HPA (memory encryption) mask to GPAs 2021-07-14 12:17:56 -04:00
spte.c KVM: x86/mmu: Split huge pages mapped by the TDP MMU when dirty logging is enabled 2022-02-10 13:50:42 -05:00
spte.h KVM: x86/mmu: Split huge pages mapped by the TDP MMU when dirty logging is enabled 2022-02-10 13:50:42 -05:00
tdp_iter.c KVM: x86/mmu: Refactor TDP MMU iterators to take kvm_mmu_page root 2022-02-10 13:50:40 -05:00
tdp_iter.h KVM: x86/mmu: Refactor TDP MMU iterators to take kvm_mmu_page root 2022-02-10 13:50:40 -05:00
tdp_mmu.c KVM: x86: use struct kvm_mmu_root_info for mmu->root 2022-02-25 08:20:16 -05:00
tdp_mmu.h KVM: x86: use struct kvm_mmu_root_info for mmu->root 2022-02-25 08:20:16 -05:00