Skip to content
Commit 7158bee4 authored by Paolo Bonzini's avatar Paolo Bonzini
Browse files

KVM: MMU: pass kvm_mmu_page struct to make_spte



The level and A/D bit support of the new SPTE can be found in the role,
which is stored in the kvm_mmu_page struct.  This merges two arguments
into one.

For the TDP MMU, the kvm_mmu_page was not used (kvm_tdp_mmu_map does
not use it if the SPTE is already present) so we fetch it just before
calling make_spte.

Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 87e888ea
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment