Home
last modified time | relevance | path

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

/linux-6.6.21/arch/arm64/kvm/hyp/nvhe/
Dhyp-main.c26 static void flush_hyp_vcpu(struct pkvm_hyp_vcpu *hyp_vcpu) in flush_hyp_vcpu() argument
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()
32 hyp_vcpu->vcpu.arch.sve_state = kern_hyp_va(host_vcpu->arch.sve_state); in flush_hyp_vcpu()
33 hyp_vcpu->vcpu.arch.sve_max_vl = host_vcpu->arch.sve_max_vl; in flush_hyp_vcpu()
35 hyp_vcpu->vcpu.arch.hw_mmu = host_vcpu->arch.hw_mmu; in flush_hyp_vcpu()
37 hyp_vcpu->vcpu.arch.hcr_el2 = host_vcpu->arch.hcr_el2; in flush_hyp_vcpu()
38 hyp_vcpu->vcpu.arch.mdcr_el2 = host_vcpu->arch.mdcr_el2; in flush_hyp_vcpu()
39 hyp_vcpu->vcpu.arch.cptr_el2 = host_vcpu->arch.cptr_el2; in flush_hyp_vcpu()
41 hyp_vcpu->vcpu.arch.iflags = host_vcpu->arch.iflags; in flush_hyp_vcpu()
[all …]
Dpkvm.c262 struct pkvm_hyp_vcpu *hyp_vcpu = NULL; in pkvm_load_hyp_vcpu() local
270 hyp_vcpu = hyp_vm->vcpus[vcpu_idx]; in pkvm_load_hyp_vcpu()
274 return hyp_vcpu; in pkvm_load_hyp_vcpu()
277 void pkvm_put_hyp_vcpu(struct pkvm_hyp_vcpu *hyp_vcpu) in pkvm_put_hyp_vcpu() argument
279 struct pkvm_hyp_vm *hyp_vm = pkvm_hyp_vcpu_to_hyp_vm(hyp_vcpu); in pkvm_put_hyp_vcpu()
309 static int init_pkvm_hyp_vcpu(struct pkvm_hyp_vcpu *hyp_vcpu, in init_pkvm_hyp_vcpu() argument
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()
327 hyp_vcpu->vcpu.vcpu_id = READ_ONCE(host_vcpu->vcpu_id); in init_pkvm_hyp_vcpu()
328 hyp_vcpu->vcpu.vcpu_idx = vcpu_idx; in init_pkvm_hyp_vcpu()
[all …]
/linux-6.6.21/arch/arm64/kvm/hyp/include/nvhe/
Dpkvm.h51 pkvm_hyp_vcpu_to_hyp_vm(struct pkvm_hyp_vcpu *hyp_vcpu) in pkvm_hyp_vcpu_to_hyp_vm() argument
53 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);
/linux-6.6.21/arch/arm64/kvm/
Dpkvm.c170 void *hyp_vcpu; in __pkvm_create_hyp_vm() local
178 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()