Searched refs:ghc (Results 1 – 6 of 6) sorted by relevance
| /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() 206 mark_page_dirty_in_slot(vcpu->kvm, ghc->memslot, gpa_to_gfn(ghc->gpa)); in kvm_update_stolen_time() 1806 struct gfn_to_hva_cache *ghc; in kvm_vcpu_set_pv_preempted() local 1823 ghc = &vcpu->arch.st.cache; in kvm_vcpu_set_pv_preempted() 1825 if (slots->generation != ghc->generation || gpa != ghc->gpa) { in kvm_vcpu_set_pv_preempted() [all …]
|
| /linux/virt/kvm/ |
| H A D | kvm_main.c | 3377 struct gfn_to_hva_cache *ghc, in __kvm_gfn_to_hva_cache_init() argument 3387 ghc->generation = slots->generation; in __kvm_gfn_to_hva_cache_init() 3390 ghc->hva = KVM_HVA_ERR_BAD; in __kvm_gfn_to_hva_cache_init() 3399 ghc->memslot = __gfn_to_memslot(slots, start_gfn); in __kvm_gfn_to_hva_cache_init() 3400 ghc->hva = gfn_to_hva_many(ghc->memslot, start_gfn, in __kvm_gfn_to_hva_cache_init() 3402 if (kvm_is_error_hva(ghc->hva)) in __kvm_gfn_to_hva_cache_init() 3408 ghc->hva += offset; in __kvm_gfn_to_hva_cache_init() 3410 ghc->memslot = NULL; in __kvm_gfn_to_hva_cache_init() 3412 ghc->gpa = gpa; in __kvm_gfn_to_hva_cache_init() 3413 ghc->len = len; in __kvm_gfn_to_hva_cache_init() [all …]
|
| /linux/arch/x86/kvm/vmx/ |
| H A D | nested.c | 793 struct gfn_to_hva_cache *ghc = &vmx->nested.shadow_vmcs12_cache; in nested_cache_shadow_vmcs12() local 799 if (ghc->gpa != vmcs12->vmcs_link_pointer && in nested_cache_shadow_vmcs12() 800 kvm_gfn_to_hva_cache_init(vcpu->kvm, ghc, in nested_cache_shadow_vmcs12() 804 kvm_read_guest_cached(vcpu->kvm, ghc, get_shadow_vmcs12(vcpu), in nested_cache_shadow_vmcs12() 812 struct gfn_to_hva_cache *ghc = &vmx->nested.shadow_vmcs12_cache; in nested_flush_cached_shadow_vmcs12() local 818 if (ghc->gpa != vmcs12->vmcs_link_pointer && in nested_flush_cached_shadow_vmcs12() 819 kvm_gfn_to_hva_cache_init(vcpu->kvm, ghc, in nested_flush_cached_shadow_vmcs12() 823 kvm_write_guest_cached(vcpu->kvm, ghc, get_shadow_vmcs12(vcpu), in nested_flush_cached_shadow_vmcs12() 3249 struct gfn_to_hva_cache *ghc = &vmx->nested.shadow_vmcs12_cache; in nested_vmx_check_vmcs_link_ptr() local 3258 if (ghc->gpa != vmcs12->vmcs_link_pointer && in nested_vmx_check_vmcs_link_ptr() [all …]
|
| /linux/include/linux/ |
| H A D | kvm_host.h | 1318 int kvm_read_guest_cached(struct kvm *kvm, struct gfn_to_hva_cache *ghc, 1320 int kvm_read_guest_offset_cached(struct kvm *kvm, struct gfn_to_hva_cache *ghc, 1327 int kvm_write_guest_cached(struct kvm *kvm, struct gfn_to_hva_cache *ghc, 1329 int kvm_write_guest_offset_cached(struct kvm *kvm, struct gfn_to_hva_cache *ghc, 1332 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 | 3501 struct gfn_to_hva_cache *ghc = &vcpu->arch.pv_eoi.data; in kvm_lapic_set_pv_eoi() local 3509 if (addr == ghc->gpa && len <= ghc->len) in kvm_lapic_set_pv_eoi() 3510 new_len = ghc->len; in kvm_lapic_set_pv_eoi() 3514 ret = kvm_gfn_to_hva_cache_init(vcpu->kvm, ghc, addr, new_len); in kvm_lapic_set_pv_eoi()
|
| H A D | x86.c | 3748 struct gfn_to_hva_cache *ghc = &vcpu->arch.st.cache; in record_steal_time() local 3768 if (unlikely(slots->generation != ghc->generation || in record_steal_time() 3769 gpa != ghc->gpa || in record_steal_time() 3770 kvm_is_error_hva(ghc->hva) || !ghc->memslot)) { in record_steal_time() 3774 if (kvm_gfn_to_hva_cache_init(vcpu->kvm, ghc, gpa, sizeof(*st)) || in record_steal_time() 3775 kvm_is_error_hva(ghc->hva) || !ghc->memslot) in record_steal_time() 3779 st = (struct kvm_steal_time __user *)ghc->hva; in record_steal_time() 3841 mark_page_dirty_in_slot(vcpu->kvm, ghc->memslot, gpa_to_gfn(ghc->gpa)); in record_steal_time() 5240 struct gfn_to_hva_cache *ghc = &vcpu->arch.st.cache; in kvm_steal_time_set_preempted() local 5271 if (unlikely(slots->generation != ghc->generation || in kvm_steal_time_set_preempted() [all …]
|