Home
last modified time | relevance | path

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

/linux-6.12.1/arch/arm64/kvm/
Dpkvm.c104 static void __pkvm_destroy_hyp_vm(struct kvm *host_kvm) in __pkvm_destroy_hyp_vm() argument
106 if (host_kvm->arch.pkvm.handle) { in __pkvm_destroy_hyp_vm()
108 host_kvm->arch.pkvm.handle)); in __pkvm_destroy_hyp_vm()
111 host_kvm->arch.pkvm.handle = 0; in __pkvm_destroy_hyp_vm()
112 free_hyp_memcache(&host_kvm->arch.pkvm.teardown_mc); in __pkvm_destroy_hyp_vm()
125 static int __pkvm_create_hyp_vm(struct kvm *host_kvm) in __pkvm_create_hyp_vm() argument
134 if (host_kvm->created_vcpus < 1) in __pkvm_create_hyp_vm()
137 pgd_sz = kvm_pgtable_stage2_pgd_size(host_kvm->arch.mmu.vtcr); in __pkvm_create_hyp_vm()
151 host_kvm->created_vcpus))); in __pkvm_create_hyp_vm()
159 ret = kvm_call_hyp_nvhe(__pkvm_init_vm, host_kvm, hyp_vm, pgd); in __pkvm_create_hyp_vm()
[all …]
/linux-6.12.1/arch/arm64/kvm/hyp/nvhe/
Dpkvm.c307 static void init_pkvm_hyp_vm(struct kvm *host_kvm, struct pkvm_hyp_vm *hyp_vm, in init_pkvm_hyp_vm() argument
310 hyp_vm->host_kvm = host_kvm; in init_pkvm_hyp_vm()
344 static int find_free_vm_table_entry(struct kvm *host_kvm) in find_free_vm_table_entry() argument
362 static pkvm_handle_t insert_vm_table_entry(struct kvm *host_kvm, in insert_vm_table_entry() argument
378 idx = find_free_vm_table_entry(host_kvm); in insert_vm_table_entry()
473 int __pkvm_init_vm(struct kvm *host_kvm, unsigned long vm_hva, in __pkvm_init_vm() argument
482 ret = hyp_pin_shared_mem(host_kvm, host_kvm + 1); in __pkvm_init_vm()
486 nr_vcpus = READ_ONCE(host_kvm->created_vcpus); in __pkvm_init_vm()
505 init_pkvm_hyp_vm(host_kvm, hyp_vm, nr_vcpus); in __pkvm_init_vm()
508 ret = insert_vm_table_entry(host_kvm, hyp_vm); in __pkvm_init_vm()
[all …]
Dhyp-main.c151 struct kvm *host_kvm; in handle___kvm_vcpu_run() local
164 host_kvm = kern_hyp_va(host_vcpu->kvm); in handle___kvm_vcpu_run()
165 hyp_vcpu = pkvm_load_hyp_vcpu(host_kvm->arch.pkvm.handle, in handle___kvm_vcpu_run()
361 DECLARE_REG(struct kvm *, host_kvm, host_ctxt, 1); in handle___pkvm_init_vm()
365 host_kvm = kern_hyp_va(host_kvm); in handle___pkvm_init_vm()
366 cpu_reg(host_ctxt, 1) = __pkvm_init_vm(host_kvm, vm_hva, pgd_hva); in handle___pkvm_init_vm()
/linux-6.12.1/arch/arm64/kvm/hyp/include/nvhe/
Dpkvm.h32 struct kvm *host_kvm; member
63 int __pkvm_init_vm(struct kvm *host_kvm, unsigned long vm_hva,