Home
last modified time | relevance | path

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

/Linux-v5.10/arch/x86/kvm/
Dmmu.h71 if (likely(vcpu->arch.mmu->root_hpa != INVALID_PAGE)) in kvm_mmu_reload()
93 u64 root_hpa = vcpu->arch.mmu->root_hpa; in kvm_mmu_load_pgd() local
95 if (!VALID_PAGE(root_hpa)) in kvm_mmu_load_pgd()
98 kvm_x86_ops.load_mmu_pgd(vcpu, root_hpa | kvm_get_active_pcid(vcpu), in kvm_mmu_load_pgd()
Dx86.c661 fault_mmu->root_hpa); in kvm_inject_emulated_page_fault()
/Linux-v5.10/arch/x86/kvm/mmu/
Dmmu.c2144 BUG_ON(root != vcpu->arch.mmu->root_hpa); in shadow_walk_init_using_root()
2158 shadow_walk_init_using_root(iterator, vcpu, vcpu->arch.mmu->root_hpa, in shadow_walk_init()
2875 if (WARN_ON(!VALID_PAGE(vcpu->arch.mmu->root_hpa))) in __direct_map()
3145 static void mmu_free_root_page(struct kvm *kvm, hpa_t *root_hpa, in mmu_free_root_page() argument
3150 if (!VALID_PAGE(*root_hpa)) in mmu_free_root_page()
3153 sp = to_shadow_page(*root_hpa & PT64_BASE_ADDR_MASK); in mmu_free_root_page()
3162 *root_hpa = INVALID_PAGE; in mmu_free_root_page()
3177 if (!(free_active_root && VALID_PAGE(mmu->root_hpa))) { in kvm_mmu_free_roots()
3197 mmu_free_root_page(kvm, &mmu->root_hpa, &invalid_list); in kvm_mmu_free_roots()
3204 mmu->root_hpa = INVALID_PAGE; in kvm_mmu_free_roots()
[all …]
Dmmu_audit.c59 if (!VALID_PAGE(vcpu->arch.mmu->root_hpa)) in mmu_spte_walk()
63 hpa_t root = vcpu->arch.mmu->root_hpa; in mmu_spte_walk()
Dpaging_tmpl.h656 if (WARN_ON(!VALID_PAGE(vcpu->arch.mmu->root_hpa))) in FNAME()
901 static void FNAME(invlpg)(struct kvm_vcpu *vcpu, gva_t gva, hpa_t root_hpa) in FNAME()
917 if (!VALID_PAGE(root_hpa)) { in FNAME()
923 for_each_shadow_entry_using_root(vcpu, root_hpa, gva, iterator) { in FNAME()
Dtdp_mmu.c363 for_each_tdp_pte(_iter, __va(_mmu->root_hpa), \
538 if (WARN_ON(!VALID_PAGE(vcpu->arch.mmu->root_hpa))) in kvm_tdp_mmu_map()
540 if (WARN_ON(!is_tdp_mmu_root(vcpu->kvm, vcpu->arch.mmu->root_hpa))) in kvm_tdp_mmu_map()
/Linux-v5.10/arch/x86/kvm/vmx/
Dvmx.h329 u64 construct_eptp(struct kvm_vcpu *vcpu, unsigned long root_hpa,
Dvmx.c2910 u64 root_hpa = mmu->root_hpa; in vmx_flush_tlb_current() local
2913 if (!VALID_PAGE(root_hpa)) in vmx_flush_tlb_current()
2917 ept_sync_context(construct_eptp(vcpu, root_hpa, in vmx_flush_tlb_current()
3048 u64 construct_eptp(struct kvm_vcpu *vcpu, unsigned long root_hpa, in construct_eptp() argument
3058 eptp |= (root_hpa & PAGE_MASK); in construct_eptp()
Dnested.c5264 static bool nested_ept_root_matches(hpa_t root_hpa, u64 root_eptp, u64 eptp) in nested_ept_root_matches() argument
5266 return VALID_PAGE(root_hpa) && in nested_ept_root_matches()
5325 if (nested_ept_root_matches(mmu->root_hpa, mmu->root_pgd, in handle_invept()
/Linux-v5.10/arch/x86/include/asm/
Dkvm_host.h360 void (*invlpg)(struct kvm_vcpu *vcpu, gva_t gva, hpa_t root_hpa);
363 hpa_t root_hpa; member
1559 gva_t gva, hpa_t root_hpa);