diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2026-05-11 08:40:05 -0400 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2026-06-25 11:31:59 +0200 |
| commit | 0a59a8b8a248e9d104718dc6a34ff8363ea4236a (patch) | |
| tree | 4cb4e10c010ab05636da01616f78ae57ae4b4f1b /include | |
| parent | b99416dd992bcede096edf37c95aaea1dd32e87f (diff) | |
KVM: x86/mmu: pull struct kvm_pagewalk out of struct kvm_mmu
Replace kvm_mmu's w field with a pointer to an external instance of
struct kvm_pagewalk. This is the first step towards using a single
kvm_pagewalk struct for all GVA walks, whether nested or not.
With this patch, non-MMU code basically does not use kvm_mmu anymore:
it does care about page walks, but it funnels (almost) all interactions
with the TLB to mmu.c.
kvm_mmu_invalidate_addr() still needs to go from kvm_pagewalk to kvm_mmu,
and it cannot anymore use container_of() to do it; the mapping is hardcoded
based on the provided kvm_pagewalk, since there are just three of them.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
