Lines Matching refs:kvm_svm
146 struct kvm_svm *kvm_svm; in avic_ga_log_notifier() local
155 hash_for_each_possible(svm_vm_data_hash, kvm_svm, hnode, vm_id) { in avic_ga_log_notifier()
156 if (kvm_svm->avic_vm_id != vm_id) in avic_ga_log_notifier()
158 vcpu = kvm_get_vcpu_by_id(&kvm_svm->kvm, vcpu_id); in avic_ga_log_notifier()
177 struct kvm_svm *kvm_svm = to_kvm_svm(kvm); in avic_vm_destroy() local
182 if (kvm_svm->avic_logical_id_table_page) in avic_vm_destroy()
183 __free_page(kvm_svm->avic_logical_id_table_page); in avic_vm_destroy()
184 if (kvm_svm->avic_physical_id_table_page) in avic_vm_destroy()
185 __free_page(kvm_svm->avic_physical_id_table_page); in avic_vm_destroy()
188 hash_del(&kvm_svm->hnode); in avic_vm_destroy()
196 struct kvm_svm *kvm_svm = to_kvm_svm(kvm); in avic_vm_init() local
197 struct kvm_svm *k2; in avic_vm_init()
210 kvm_svm->avic_physical_id_table_page = p_page; in avic_vm_init()
217 kvm_svm->avic_logical_id_table_page = l_page; in avic_vm_init()
233 kvm_svm->avic_vm_id = vm_id; in avic_vm_init()
234 hash_add(svm_vm_data_hash, &kvm_svm->hnode, kvm_svm->avic_vm_id); in avic_vm_init()
246 struct kvm_svm *kvm_svm = to_kvm_svm(svm->vcpu.kvm); in avic_init_vmcb() local
248 phys_addr_t lpa = __sme_set(page_to_phys(kvm_svm->avic_logical_id_table_page)); in avic_init_vmcb()
249 phys_addr_t ppa = __sme_set(page_to_phys(kvm_svm->avic_physical_id_table_page)); in avic_init_vmcb()
266 struct kvm_svm *kvm_svm = to_kvm_svm(vcpu->kvm); in avic_get_physical_id_entry() local
272 avic_physical_id_table = page_address(kvm_svm->avic_physical_id_table_page); in avic_get_physical_id_entry()
402 struct kvm_svm *kvm_svm = to_kvm_svm(kvm); in avic_kick_target_vcpus_fast() local
450 avic_logical_id_table = page_address(kvm_svm->avic_logical_id_table_page); in avic_kick_target_vcpus_fast()
551 struct kvm_svm *kvm_svm = to_kvm_svm(vcpu->kvm); in avic_get_logical_id_entry() local
573 logical_apic_id_table = (u32 *) page_address(kvm_svm->avic_logical_id_table_page); in avic_get_logical_id_entry()