Home
last modified time | relevance | path

Searched refs:ghc (Results 1 – 5 of 5) sorted by relevance

/linux-6.6.21/virt/kvm/
Dkvm_main.c3207 struct gfn_to_hva_cache *ghc, in __kvm_gfn_to_hva_cache_init() argument
3217 ghc->generation = slots->generation; in __kvm_gfn_to_hva_cache_init()
3220 ghc->hva = KVM_HVA_ERR_BAD; in __kvm_gfn_to_hva_cache_init()
3229 ghc->memslot = __gfn_to_memslot(slots, start_gfn); in __kvm_gfn_to_hva_cache_init()
3230 ghc->hva = gfn_to_hva_many(ghc->memslot, start_gfn, in __kvm_gfn_to_hva_cache_init()
3232 if (kvm_is_error_hva(ghc->hva)) in __kvm_gfn_to_hva_cache_init()
3238 ghc->hva += offset; in __kvm_gfn_to_hva_cache_init()
3240 ghc->memslot = NULL; in __kvm_gfn_to_hva_cache_init()
3242 ghc->gpa = gpa; in __kvm_gfn_to_hva_cache_init()
3243 ghc->len = len; in __kvm_gfn_to_hva_cache_init()
[all …]
/linux-6.6.21/arch/x86/kvm/vmx/
Dnested.c674 struct gfn_to_hva_cache *ghc = &vmx->nested.shadow_vmcs12_cache; in nested_cache_shadow_vmcs12() local
680 if (ghc->gpa != vmcs12->vmcs_link_pointer && in nested_cache_shadow_vmcs12()
681 kvm_gfn_to_hva_cache_init(vcpu->kvm, ghc, in nested_cache_shadow_vmcs12()
685 kvm_read_guest_cached(vmx->vcpu.kvm, ghc, get_shadow_vmcs12(vcpu), in nested_cache_shadow_vmcs12()
693 struct gfn_to_hva_cache *ghc = &vmx->nested.shadow_vmcs12_cache; in nested_flush_cached_shadow_vmcs12() local
699 if (ghc->gpa != vmcs12->vmcs_link_pointer && in nested_flush_cached_shadow_vmcs12()
700 kvm_gfn_to_hva_cache_init(vcpu->kvm, ghc, in nested_flush_cached_shadow_vmcs12()
704 kvm_write_guest_cached(vmx->vcpu.kvm, ghc, get_shadow_vmcs12(vcpu), in nested_flush_cached_shadow_vmcs12()
2981 struct gfn_to_hva_cache *ghc = &vmx->nested.shadow_vmcs12_cache; in nested_vmx_check_vmcs_link_ptr() local
2990 if (ghc->gpa != vmcs12->vmcs_link_pointer && in nested_vmx_check_vmcs_link_ptr()
[all …]
/linux-6.6.21/include/linux/
Dkvm_host.h1198 int kvm_read_guest_cached(struct kvm *kvm, struct gfn_to_hva_cache *ghc,
1200 int kvm_read_guest_offset_cached(struct kvm *kvm, struct gfn_to_hva_cache *ghc,
1207 int kvm_write_guest_cached(struct kvm *kvm, struct gfn_to_hva_cache *ghc,
1209 int kvm_write_guest_offset_cached(struct kvm *kvm, struct gfn_to_hva_cache *ghc,
1212 int kvm_gfn_to_hva_cache_init(struct kvm *kvm, struct gfn_to_hva_cache *ghc,
/linux-6.6.21/arch/x86/kvm/
Dlapic.c3237 struct gfn_to_hva_cache *ghc = &vcpu->arch.pv_eoi.data; in kvm_lapic_set_pv_eoi() local
3245 if (addr == ghc->gpa && len <= ghc->len) in kvm_lapic_set_pv_eoi()
3246 new_len = ghc->len; in kvm_lapic_set_pv_eoi()
3250 ret = kvm_gfn_to_hva_cache_init(vcpu->kvm, ghc, addr, new_len); in kvm_lapic_set_pv_eoi()
Dx86.c3521 struct gfn_to_hva_cache *ghc = &vcpu->arch.st.cache; in record_steal_time() local
3541 if (unlikely(slots->generation != ghc->generation || in record_steal_time()
3542 gpa != ghc->gpa || in record_steal_time()
3543 kvm_is_error_hva(ghc->hva) || !ghc->memslot)) { in record_steal_time()
3547 if (kvm_gfn_to_hva_cache_init(vcpu->kvm, ghc, gpa, sizeof(*st)) || in record_steal_time()
3548 kvm_is_error_hva(ghc->hva) || !ghc->memslot) in record_steal_time()
3552 st = (struct kvm_steal_time __user *)ghc->hva; in record_steal_time()
3614 mark_page_dirty_in_slot(vcpu->kvm, ghc->memslot, gpa_to_gfn(ghc->gpa)); in record_steal_time()
4861 struct gfn_to_hva_cache *ghc = &vcpu->arch.st.cache; in kvm_steal_time_set_preempted() local
4892 if (unlikely(slots->generation != ghc->generation || in kvm_steal_time_set_preempted()
[all …]