Home
last modified time | relevance | path

Searched refs:hyp_vm (Results 1 – 2 of 2) sorted by relevance

/linux-6.6.21/arch/arm64/kvm/hyp/nvhe/
Dpkvm.c263 struct pkvm_hyp_vm *hyp_vm; in pkvm_load_hyp_vcpu() local
266 hyp_vm = get_vm_by_handle(handle); in pkvm_load_hyp_vcpu()
267 if (!hyp_vm || hyp_vm->nr_vcpus <= vcpu_idx) in pkvm_load_hyp_vcpu()
270 hyp_vcpu = hyp_vm->vcpus[vcpu_idx]; in pkvm_load_hyp_vcpu()
271 hyp_page_ref_inc(hyp_virt_to_page(hyp_vm)); in pkvm_load_hyp_vcpu()
279 struct pkvm_hyp_vm *hyp_vm = pkvm_hyp_vcpu_to_hyp_vm(hyp_vcpu); in pkvm_put_hyp_vcpu() local
282 hyp_page_ref_dec(hyp_virt_to_page(hyp_vm)); in pkvm_put_hyp_vcpu()
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()
305 hyp_vm->kvm.created_vcpus = nr_vcpus; in init_pkvm_hyp_vm()
[all …]
/linux-6.6.21/arch/arm64/kvm/
Dpkvm.c130 void *pgd, *hyp_vm; in __pkvm_create_hyp_vm() local
152 hyp_vm = alloc_pages_exact(hyp_vm_sz, GFP_KERNEL_ACCOUNT); in __pkvm_create_hyp_vm()
153 if (!hyp_vm) { in __pkvm_create_hyp_vm()
159 ret = kvm_call_hyp_nvhe(__pkvm_init_vm, host_kvm, hyp_vm, pgd); in __pkvm_create_hyp_vm()
198 free_pages_exact(hyp_vm, hyp_vm_sz); in __pkvm_create_hyp_vm()