Searched refs:hyp_vcpu (Results 1 – 4 of 4) sorted by relevance
94 static void flush_hyp_vcpu(struct pkvm_hyp_vcpu *hyp_vcpu) in flush_hyp_vcpu() argument96 struct kvm_vcpu *host_vcpu = hyp_vcpu->host_vcpu; in flush_hyp_vcpu()100 hyp_vcpu->vcpu.arch.ctxt = host_vcpu->arch.ctxt; in flush_hyp_vcpu()102 hyp_vcpu->vcpu.arch.sve_state = kern_hyp_va(host_vcpu->arch.sve_state); in flush_hyp_vcpu()104 hyp_vcpu->vcpu.arch.sve_max_vl = min(host_vcpu->arch.sve_max_vl, kvm_host_sve_max_vl); in flush_hyp_vcpu()106 hyp_vcpu->vcpu.arch.hw_mmu = host_vcpu->arch.hw_mmu; in flush_hyp_vcpu()108 hyp_vcpu->vcpu.arch.hcr_el2 = host_vcpu->arch.hcr_el2; in flush_hyp_vcpu()109 hyp_vcpu->vcpu.arch.mdcr_el2 = host_vcpu->arch.mdcr_el2; in flush_hyp_vcpu()111 hyp_vcpu->vcpu.arch.iflags = host_vcpu->arch.iflags; in flush_hyp_vcpu()113 hyp_vcpu->vcpu.arch.debug_ptr = kern_hyp_va(host_vcpu->arch.debug_ptr); in flush_hyp_vcpu()[all …]
268 struct pkvm_hyp_vcpu *hyp_vcpu = NULL; in pkvm_load_hyp_vcpu() local276 hyp_vcpu = hyp_vm->vcpus[vcpu_idx]; in pkvm_load_hyp_vcpu()280 return hyp_vcpu; in pkvm_load_hyp_vcpu()283 void pkvm_put_hyp_vcpu(struct pkvm_hyp_vcpu *hyp_vcpu) in pkvm_put_hyp_vcpu() argument285 struct pkvm_hyp_vm *hyp_vm = pkvm_hyp_vcpu_to_hyp_vm(hyp_vcpu); in pkvm_put_hyp_vcpu()315 static int init_pkvm_hyp_vcpu(struct pkvm_hyp_vcpu *hyp_vcpu, in init_pkvm_hyp_vcpu() argument330 hyp_vcpu->host_vcpu = host_vcpu; in init_pkvm_hyp_vcpu()332 hyp_vcpu->vcpu.kvm = &hyp_vm->kvm; in init_pkvm_hyp_vcpu()333 hyp_vcpu->vcpu.vcpu_id = READ_ONCE(host_vcpu->vcpu_id); in init_pkvm_hyp_vcpu()334 hyp_vcpu->vcpu.vcpu_idx = vcpu_idx; in init_pkvm_hyp_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()56 static inline bool pkvm_hyp_vcpu_is_protected(struct pkvm_hyp_vcpu *hyp_vcpu) in pkvm_hyp_vcpu_is_protected() argument58 return vcpu_is_protected(&hyp_vcpu->vcpu); in pkvm_hyp_vcpu_is_protected()71 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()