diff options
author | Sean Christopherson <[email protected]> | 2023-07-28 17:51:56 -0700 |
---|---|---|
committer | Paolo Bonzini <[email protected]> | 2023-08-31 14:08:20 -0400 |
commit | c5f2d5645f9b7c12c9546ced9ec1f1a558870747 (patch) | |
tree | 747b268321df2a35d528759a9f30d741f710c89b /lib/memory-notifier-error-inject.c | |
parent | 09c8726ffa4a8309af7653988694b6cae6abf723 (diff) |
KVM: x86/mmu: Add helper to convert root hpa to shadow page
Add a dedicated helper for converting a root hpa to a shadow page in
anticipation of using a "dummy" root to handle the scenario where KVM
needs to load a valid shadow root (from hardware's perspective), but
the guest doesn't have a visible root to shadow. Similar to PAE roots,
the dummy root won't have an associated kvm_mmu_page and will need special
handling when finding a shadow page given a root.
Opportunistically retrieve the root shadow page in kvm_mmu_sync_roots()
*after* verifying the root is unsync (the dummy root can never be unsync).
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sean Christopherson <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions