Home
last modified time | relevance | path

Searched refs:root_hpa (Results 1 – 7 of 7) sorted by relevance

/arch/x86/kvm/
Dmmu.h151 u64 root_hpa = vcpu->arch.mmu->root.hpa; in kvm_mmu_load_pgd() local
153 if (!VALID_PAGE(root_hpa)) in kvm_mmu_load_pgd()
156 static_call(kvm_x86_load_mmu_pgd)(vcpu, root_hpa, in kvm_mmu_load_pgd()
/arch/x86/kvm/mmu/
Dmmu.c3538 static void mmu_free_root_page(struct kvm *kvm, hpa_t *root_hpa, in mmu_free_root_page() argument
3543 if (!VALID_PAGE(*root_hpa)) in mmu_free_root_page()
3546 sp = root_to_sp(*root_hpa); in mmu_free_root_page()
3555 *root_hpa = INVALID_PAGE; in mmu_free_root_page()
3619 hpa_t root_hpa; in kvm_mmu_free_guest_mode_roots() local
3629 root_hpa = mmu->prev_roots[i].hpa; in kvm_mmu_free_guest_mode_roots()
3630 if (!VALID_PAGE(root_hpa)) in kvm_mmu_free_guest_mode_roots()
3633 sp = root_to_sp(root_hpa); in kvm_mmu_free_guest_mode_roots()
5498 static bool is_obsolete_root(struct kvm *kvm, hpa_t root_hpa) in is_obsolete_root() argument
5502 if (!VALID_PAGE(root_hpa)) in is_obsolete_root()
[all …]
/arch/x86/kvm/vmx/
Dvmx.h398 u64 construct_eptp(struct kvm_vcpu *vcpu, hpa_t root_hpa, int root_level);
Dvmx.c3204 u64 root_hpa = mmu->root.hpa; in vmx_flush_tlb_current() local
3207 if (!VALID_PAGE(root_hpa)) in vmx_flush_tlb_current()
3211 ept_sync_context(construct_eptp(vcpu, root_hpa, in vmx_flush_tlb_current()
3378 u64 construct_eptp(struct kvm_vcpu *vcpu, hpa_t root_hpa, int root_level) in construct_eptp() argument
3387 eptp |= root_hpa; in construct_eptp()
3392 static void vmx_load_mmu_pgd(struct kvm_vcpu *vcpu, hpa_t root_hpa, in vmx_load_mmu_pgd() argument
3401 eptp = construct_eptp(vcpu, root_hpa, root_level); in vmx_load_mmu_pgd()
3404 hv_track_root_tdp(vcpu, root_hpa); in vmx_load_mmu_pgd()
3414 guest_cr3 = root_hpa | kvm_get_active_pcid(vcpu); in vmx_load_mmu_pgd()
Dnested.c353 static bool nested_ept_root_matches(hpa_t root_hpa, u64 root_eptp, u64 eptp) in nested_ept_root_matches() argument
355 return VALID_PAGE(root_hpa) && in nested_ept_root_matches()
/arch/x86/kvm/svm/
Dsvm.c4275 static void svm_load_mmu_pgd(struct kvm_vcpu *vcpu, hpa_t root_hpa, in svm_load_mmu_pgd() argument
4282 svm->vmcb->control.nested_cr3 = __sme_set(root_hpa); in svm_load_mmu_pgd()
4285 hv_track_root_tdp(vcpu, root_hpa); in svm_load_mmu_pgd()
4289 cr3 = __sme_set(root_hpa) | kvm_get_active_pcid(vcpu); in svm_load_mmu_pgd()
4293 cr3 = root_hpa; in svm_load_mmu_pgd()
/arch/x86/include/asm/
Dkvm_host.h1669 void (*load_mmu_pgd)(struct kvm_vcpu *vcpu, hpa_t root_hpa,