Searched refs:hyp_vcpu (Results 1 – 4 of 4) sorted by relevance
28 struct kvm_vcpu *host_vcpu = hyp_vcpu->host_vcpu; in flush_hyp_vcpu()30 hyp_vcpu->vcpu.arch.ctxt = host_vcpu->arch.ctxt; in flush_hyp_vcpu()35 hyp_vcpu->vcpu.arch.hw_mmu = host_vcpu->arch.hw_mmu; in flush_hyp_vcpu()54 struct kvm_vcpu *host_vcpu = hyp_vcpu->host_vcpu; in sync_hyp_vcpu()59 host_vcpu->arch.ctxt = hyp_vcpu->vcpu.arch.ctxt; in sync_hyp_vcpu()82 struct pkvm_hyp_vcpu *hyp_vcpu; in handle___kvm_vcpu_run() local88 if (!hyp_vcpu) { in handle___kvm_vcpu_run()93 flush_hyp_vcpu(hyp_vcpu); in handle___kvm_vcpu_run()95 ret = __kvm_vcpu_run(&hyp_vcpu->vcpu); in handle___kvm_vcpu_run()97 sync_hyp_vcpu(hyp_vcpu); in handle___kvm_vcpu_run()[all …]
270 hyp_vcpu = hyp_vm->vcpus[vcpu_idx]; in pkvm_load_hyp_vcpu()274 return hyp_vcpu; in pkvm_load_hyp_vcpu()324 hyp_vcpu->host_vcpu = host_vcpu; in init_pkvm_hyp_vcpu()326 hyp_vcpu->vcpu.kvm = &hyp_vm->kvm; in init_pkvm_hyp_vcpu()328 hyp_vcpu->vcpu.vcpu_idx = vcpu_idx; in init_pkvm_hyp_vcpu()538 struct pkvm_hyp_vcpu *hyp_vcpu; in __pkvm_init_vcpu() local543 hyp_vcpu = map_donated_memory(vcpu_hva, sizeof(*hyp_vcpu)); in __pkvm_init_vcpu()544 if (!hyp_vcpu) in __pkvm_init_vcpu()565 hyp_vm->vcpus[idx] = hyp_vcpu; in __pkvm_init_vcpu()571 unmap_donated_memory(hyp_vcpu, sizeof(*hyp_vcpu)); in __pkvm_init_vcpu()[all …]
51 pkvm_hyp_vcpu_to_hyp_vm(struct pkvm_hyp_vcpu *hyp_vcpu) in pkvm_hyp_vcpu_to_hyp_vm() argument53 return container_of(hyp_vcpu->vcpu.kvm, struct pkvm_hyp_vm, kvm); in pkvm_hyp_vcpu_to_hyp_vm()66 void pkvm_put_hyp_vcpu(struct pkvm_hyp_vcpu *hyp_vcpu);
170 void *hyp_vcpu; in __pkvm_create_hyp_vm() local178 hyp_vcpu = alloc_pages_exact(hyp_vcpu_sz, GFP_KERNEL_ACCOUNT); in __pkvm_create_hyp_vm()179 if (!hyp_vcpu) { in __pkvm_create_hyp_vm()185 hyp_vcpu); in __pkvm_create_hyp_vm()187 free_pages_exact(hyp_vcpu, hyp_vcpu_sz); in __pkvm_create_hyp_vm()