Home
last modified time | relevance | path

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

/Linux-v6.6/arch/arm64/kvm/
Dpkvm.c114 static int __pkvm_create_hyp_vm(struct kvm *host_kvm) in __pkvm_create_hyp_vm() argument
123 if (host_kvm->created_vcpus < 1) in __pkvm_create_hyp_vm()
126 pgd_sz = kvm_pgtable_stage2_pgd_size(host_kvm->arch.vtcr); in __pkvm_create_hyp_vm()
140 host_kvm->created_vcpus))); in __pkvm_create_hyp_vm()
148 ret = kvm_call_hyp_nvhe(__pkvm_init_vm, host_kvm, hyp_vm, pgd); in __pkvm_create_hyp_vm()
154 host_kvm->arch.pkvm.handle = handle; in __pkvm_create_hyp_vm()
158 kvm_for_each_vcpu(idx, host_vcpu, host_kvm) { in __pkvm_create_hyp_vm()
184 pkvm_destroy_hyp_vm(host_kvm); in __pkvm_create_hyp_vm()
193 int pkvm_create_hyp_vm(struct kvm *host_kvm) in pkvm_create_hyp_vm() argument
197 mutex_lock(&host_kvm->lock); in pkvm_create_hyp_vm()
[all …]
/Linux-v6.6/arch/arm64/kvm/hyp/nvhe/
Dpkvm.c301 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()
[all …]
Dhyp-main.c83 struct kvm *host_kvm; in handle___kvm_vcpu_run() local
85 host_kvm = kern_hyp_va(host_vcpu->kvm); in handle___kvm_vcpu_run()
86 hyp_vcpu = pkvm_load_hyp_vcpu(host_kvm->arch.pkvm.handle, in handle___kvm_vcpu_run()
292 DECLARE_REG(struct kvm *, host_kvm, host_ctxt, 1); in handle___pkvm_init_vm()
296 host_kvm = kern_hyp_va(host_kvm); in handle___pkvm_init_vm()
297 cpu_reg(host_ctxt, 1) = __pkvm_init_vm(host_kvm, vm_hva, pgd_hva); in handle___pkvm_init_vm()
/Linux-v6.6/arch/arm64/kvm/hyp/include/nvhe/
Dpkvm.h32 struct kvm *host_kvm; member
58 int __pkvm_init_vm(struct kvm *host_kvm, unsigned long vm_hva,