Lines Matching refs:host_kvm
301 static void init_pkvm_hyp_vm(struct kvm *host_kvm, struct pkvm_hyp_vm *hyp_vm, in init_pkvm_hyp_vm() argument
304 hyp_vm->host_kvm = host_kvm; in init_pkvm_hyp_vm()
338 static int find_free_vm_table_entry(struct kvm *host_kvm) in find_free_vm_table_entry() argument
356 static pkvm_handle_t insert_vm_table_entry(struct kvm *host_kvm, in insert_vm_table_entry() argument
372 idx = find_free_vm_table_entry(host_kvm); in insert_vm_table_entry()
466 int __pkvm_init_vm(struct kvm *host_kvm, unsigned long vm_hva, in __pkvm_init_vm() argument
475 ret = hyp_pin_shared_mem(host_kvm, host_kvm + 1); in __pkvm_init_vm()
479 nr_vcpus = READ_ONCE(host_kvm->created_vcpus); in __pkvm_init_vm()
498 init_pkvm_hyp_vm(host_kvm, hyp_vm, nr_vcpus); in __pkvm_init_vm()
501 ret = insert_vm_table_entry(host_kvm, hyp_vm); in __pkvm_init_vm()
520 hyp_unpin_shared_mem(host_kvm, host_kvm + 1); in __pkvm_init_vm()
592 struct kvm *host_kvm; in __pkvm_teardown_vm() local
609 host_kvm = hyp_vm->host_kvm; in __pkvm_teardown_vm()
617 mc = &host_kvm->arch.pkvm.teardown_mc; in __pkvm_teardown_vm()
630 hyp_unpin_shared_mem(host_kvm, host_kvm + 1); in __pkvm_teardown_vm()