Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/virt/kvm/
Dkvm_main.c2617 struct gfn_to_hva_cache *ghc, in __kvm_gfn_to_hva_cache_init() argument
2627 ghc->generation = slots->generation; in __kvm_gfn_to_hva_cache_init()
2630 ghc->hva = KVM_HVA_ERR_BAD; in __kvm_gfn_to_hva_cache_init()
2639 ghc->memslot = __gfn_to_memslot(slots, start_gfn); in __kvm_gfn_to_hva_cache_init()
2640 ghc->hva = gfn_to_hva_many(ghc->memslot, start_gfn, in __kvm_gfn_to_hva_cache_init()
2642 if (kvm_is_error_hva(ghc->hva)) in __kvm_gfn_to_hva_cache_init()
2648 ghc->hva += offset; in __kvm_gfn_to_hva_cache_init()
2650 ghc->memslot = NULL; in __kvm_gfn_to_hva_cache_init()
2652 ghc->gpa = gpa; in __kvm_gfn_to_hva_cache_init()
2653 ghc->len = len; in __kvm_gfn_to_hva_cache_init()
[all …]
/kernel/linux/linux-5.10/include/linux/
Dkvm_host.h763 int kvm_read_guest_cached(struct kvm *kvm, struct gfn_to_hva_cache *ghc,
765 int kvm_read_guest_offset_cached(struct kvm *kvm, struct gfn_to_hva_cache *ghc,
772 int kvm_write_guest_cached(struct kvm *kvm, struct gfn_to_hva_cache *ghc,
774 int kvm_write_guest_offset_cached(struct kvm *kvm, struct gfn_to_hva_cache *ghc,
777 int kvm_gfn_to_hva_cache_init(struct kvm *kvm, struct gfn_to_hva_cache *ghc,
/kernel/linux/linux-5.10/arch/x86/kvm/
Dlapic.c2847 struct gfn_to_hva_cache *ghc = &vcpu->arch.pv_eoi.data; in kvm_lapic_enable_pv_eoi() local
2857 if (addr == ghc->gpa && len <= ghc->len) in kvm_lapic_enable_pv_eoi()
2858 new_len = ghc->len; in kvm_lapic_enable_pv_eoi()
2862 return kvm_gfn_to_hva_cache_init(vcpu->kvm, ghc, addr, new_len); in kvm_lapic_enable_pv_eoi()
Dx86.c3028 struct gfn_to_hva_cache *ghc = &vcpu->arch.st.cache; in record_steal_time() local
3043 if (unlikely(slots->generation != ghc->generation || in record_steal_time()
3044 gpa != ghc->gpa || in record_steal_time()
3045 kvm_is_error_hva(ghc->hva) || !ghc->memslot)) { in record_steal_time()
3049 if (kvm_gfn_to_hva_cache_init(vcpu->kvm, ghc, gpa, sizeof(*st)) || in record_steal_time()
3050 kvm_is_error_hva(ghc->hva) || !ghc->memslot) in record_steal_time()
3054 st = (struct kvm_steal_time __user *)ghc->hva; in record_steal_time()
3116 mark_page_dirty_in_slot(ghc->memslot, gpa_to_gfn(ghc->gpa)); in record_steal_time()
4101 struct gfn_to_hva_cache *ghc = &vcpu->arch.st.cache; in kvm_steal_time_set_preempted() local
4132 if (unlikely(slots->generation != ghc->generation || in kvm_steal_time_set_preempted()
[all …]