Searched refs:ghc (Results 1 – 6 of 6) sorted by relevance
| /linux/virt/kvm/ |
| H A D | kvm_main.c | 3393 struct gfn_to_hva_cache *ghc, in __kvm_gfn_to_hva_cache_init() argument 3403 ghc->generation = slots->generation; in __kvm_gfn_to_hva_cache_init() 3406 ghc->hva = KVM_HVA_ERR_BAD; in __kvm_gfn_to_hva_cache_init() 3415 ghc->memslot = __gfn_to_memslot(slots, start_gfn); in __kvm_gfn_to_hva_cache_init() 3416 ghc->hva = gfn_to_hva_many(ghc->memslot, start_gfn, in __kvm_gfn_to_hva_cache_init() 3418 if (kvm_is_error_hva(ghc->hva)) in __kvm_gfn_to_hva_cache_init() 3424 ghc->hva += offset; in __kvm_gfn_to_hva_cache_init() 3426 ghc->memslot = NULL; in __kvm_gfn_to_hva_cache_init() 3428 ghc->gpa = gpa; in __kvm_gfn_to_hva_cache_init() 3429 ghc->len = len; in __kvm_gfn_to_hva_cache_init() [all …]
|
| /linux/arch/loongarch/kvm/ |
| H A D | vcpu.c | 167 struct gfn_to_hva_cache *ghc; in kvm_update_stolen_time() local 169 ghc = &vcpu->arch.st.cache; in kvm_update_stolen_time() 176 if (slots->generation != ghc->generation || gpa != ghc->gpa) { in kvm_update_stolen_time() 177 if (kvm_gfn_to_hva_cache_init(vcpu->kvm, ghc, gpa, sizeof(*st))) { in kvm_update_stolen_time() 178 ghc->gpa = INVALID_GPA; in kvm_update_stolen_time() 183 st = (struct kvm_steal_time __user *)ghc->hva; in kvm_update_stolen_time() 201 mark_page_dirty_in_slot(vcpu->kvm, ghc->memslot, gpa_to_gfn(ghc->gpa)); in kvm_update_stolen_time()
|
| /linux/arch/x86/kvm/vmx/ |
| H A D | nested.c | 757 struct gfn_to_hva_cache *ghc = &vmx->nested.shadow_vmcs12_cache; in nested_cache_shadow_vmcs12() local 763 if (ghc->gpa != vmcs12->vmcs_link_pointer && in nested_cache_shadow_vmcs12() 764 kvm_gfn_to_hva_cache_init(vcpu->kvm, ghc, in nested_cache_shadow_vmcs12() 768 kvm_read_guest_cached(vcpu->kvm, ghc, get_shadow_vmcs12(vcpu), in nested_cache_shadow_vmcs12() 776 struct gfn_to_hva_cache *ghc = &vmx->nested.shadow_vmcs12_cache; in nested_flush_cached_shadow_vmcs12() local 782 if (ghc->gpa != vmcs12->vmcs_link_pointer && in nested_flush_cached_shadow_vmcs12() 783 kvm_gfn_to_hva_cache_init(vcpu->kvm, ghc, in nested_flush_cached_shadow_vmcs12() 787 kvm_write_guest_cached(vcpu->kvm, ghc, get_shadow_vmcs12(vcpu), in nested_flush_cached_shadow_vmcs12() 3241 struct gfn_to_hva_cache *ghc = &vmx->nested.shadow_vmcs12_cache; in nested_vmx_check_vmcs_link_ptr() local 3250 if (ghc->gpa != vmcs12->vmcs_link_pointer && in nested_vmx_check_vmcs_link_ptr() [all …]
|
| /linux/include/linux/ |
| H A D | kvm_host.h | 1319 int kvm_read_guest_cached(struct kvm *kvm, struct gfn_to_hva_cache *ghc, 1321 int kvm_read_guest_offset_cached(struct kvm *kvm, struct gfn_to_hva_cache *ghc, 1328 int kvm_write_guest_cached(struct kvm *kvm, struct gfn_to_hva_cache *ghc, 1330 int kvm_write_guest_offset_cached(struct kvm *kvm, struct gfn_to_hva_cache *ghc, 1333 int kvm_gfn_to_hva_cache_init(struct kvm *kvm, struct gfn_to_hva_cache *ghc,
|
| /linux/arch/x86/kvm/ |
| H A D | lapic.c | 3452 struct gfn_to_hva_cache *ghc = &vcpu->arch.pv_eoi.data; in kvm_lapic_set_pv_eoi() local 3460 if (addr == ghc->gpa && len <= ghc->len) in kvm_lapic_set_pv_eoi() 3461 new_len = ghc->len; in kvm_lapic_set_pv_eoi() 3465 ret = kvm_gfn_to_hva_cache_init(vcpu->kvm, ghc, addr, new_len); in kvm_lapic_set_pv_eoi()
|
| H A D | x86.c | 3735 struct gfn_to_hva_cache *ghc = &vcpu->arch.st.cache; in record_steal_time() local 3755 if (unlikely(slots->generation != ghc->generation || in record_steal_time() 3756 gpa != ghc->gpa || in record_steal_time() 3757 kvm_is_error_hva(ghc->hva) || !ghc->memslot)) { in record_steal_time() 3761 if (kvm_gfn_to_hva_cache_init(vcpu->kvm, ghc, gpa, sizeof(*st)) || in record_steal_time() 3762 kvm_is_error_hva(ghc->hva) || !ghc->memslot) in record_steal_time() 3766 st = (struct kvm_steal_time __user *)ghc->hva; in record_steal_time() 3828 mark_page_dirty_in_slot(vcpu->kvm, ghc->memslot, gpa_to_gfn(ghc->gpa)); in record_steal_time() 5225 struct gfn_to_hva_cache *ghc = &vcpu->arch.st.cache; in kvm_steal_time_set_preempted() local 5256 if (unlikely(slots->generation != ghc->generation || in kvm_steal_time_set_preempted() [all …]
|