Home
last modified time | relevance | path

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

/linux-6.1.9/arch/x86/kvm/
Dmmu.h147 u64 root_hpa = vcpu->arch.mmu->root.hpa; in kvm_mmu_load_pgd() local
149 if (!VALID_PAGE(root_hpa)) in kvm_mmu_load_pgd()
152 static_call(kvm_x86_load_mmu_pgd)(vcpu, root_hpa, in kvm_mmu_load_pgd()
/linux-6.1.9/arch/x86/kvm/mmu/
Dmmu.c3418 static void mmu_free_root_page(struct kvm *kvm, hpa_t *root_hpa, in mmu_free_root_page() argument
3423 if (!VALID_PAGE(*root_hpa)) in mmu_free_root_page()
3426 sp = to_shadow_page(*root_hpa & SPTE_BASE_ADDR_MASK); in mmu_free_root_page()
3435 *root_hpa = INVALID_PAGE; in mmu_free_root_page()
3494 hpa_t root_hpa; in kvm_mmu_free_guest_mode_roots() local
3504 root_hpa = mmu->prev_roots[i].hpa; in kvm_mmu_free_guest_mode_roots()
3505 if (!VALID_PAGE(root_hpa)) in kvm_mmu_free_guest_mode_roots()
3508 if (!to_shadow_page(root_hpa) || in kvm_mmu_free_guest_mode_roots()
3509 to_shadow_page(root_hpa)->role.guest_mode) in kvm_mmu_free_guest_mode_roots()
5334 static bool is_obsolete_root(struct kvm *kvm, hpa_t root_hpa) in is_obsolete_root() argument
[all …]
Dpaging_tmpl.h900 static void FNAME(invlpg)(struct kvm_vcpu *vcpu, gva_t gva, hpa_t root_hpa) in FNAME()
916 if (!VALID_PAGE(root_hpa)) { in FNAME()
922 for_each_shadow_entry_using_root(vcpu, root_hpa, gva, iterator) { in FNAME()
/linux-6.1.9/arch/x86/include/asm/
Dkvm_host.h440 void (*invlpg)(struct kvm_vcpu *vcpu, gva_t gva, hpa_t root_hpa);
1563 void (*load_mmu_pgd)(struct kvm_vcpu *vcpu, hpa_t root_hpa,
1945 gva_t gva, hpa_t root_hpa);
/linux-6.1.9/arch/x86/kvm/vmx/
Dvmx.h411 u64 construct_eptp(struct kvm_vcpu *vcpu, hpa_t root_hpa, int root_level);
Dvmx.c3065 u64 root_hpa = mmu->root.hpa; in vmx_flush_tlb_current() local
3068 if (!VALID_PAGE(root_hpa)) in vmx_flush_tlb_current()
3072 ept_sync_context(construct_eptp(vcpu, root_hpa, in vmx_flush_tlb_current()
3228 u64 construct_eptp(struct kvm_vcpu *vcpu, hpa_t root_hpa, int root_level) in construct_eptp() argument
3237 eptp |= root_hpa; in construct_eptp()
3242 static void vmx_load_mmu_pgd(struct kvm_vcpu *vcpu, hpa_t root_hpa, in vmx_load_mmu_pgd() argument
3251 eptp = construct_eptp(vcpu, root_hpa, root_level); in vmx_load_mmu_pgd()
3254 hv_track_root_tdp(vcpu, root_hpa); in vmx_load_mmu_pgd()
3264 guest_cr3 = root_hpa | kvm_get_active_pcid(vcpu); in vmx_load_mmu_pgd()
Dnested.c344 static bool nested_ept_root_matches(hpa_t root_hpa, u64 root_eptp, u64 eptp) in nested_ept_root_matches() argument
346 return VALID_PAGE(root_hpa) && in nested_ept_root_matches()
/linux-6.1.9/arch/x86/kvm/svm/
Dsvm.c4042 static void svm_load_mmu_pgd(struct kvm_vcpu *vcpu, hpa_t root_hpa, in svm_load_mmu_pgd() argument
4049 svm->vmcb->control.nested_cr3 = __sme_set(root_hpa); in svm_load_mmu_pgd()
4052 hv_track_root_tdp(vcpu, root_hpa); in svm_load_mmu_pgd()
4056 cr3 = __sme_set(root_hpa) | kvm_get_active_pcid(vcpu); in svm_load_mmu_pgd()
4060 cr3 = root_hpa; in svm_load_mmu_pgd()