Home
last modified time | relevance | path

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

/linux-6.12.1/arch/arm64/kvm/hyp/nvhe/
Dhyp-main.c96 struct kvm_vcpu *host_vcpu = hyp_vcpu->host_vcpu; in flush_hyp_vcpu() local
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()
115 hyp_vcpu->vcpu.arch.vsesr_el2 = host_vcpu->arch.vsesr_el2; in flush_hyp_vcpu()
[all …]
Dpkvm.c292 static void unpin_host_vcpu(struct kvm_vcpu *host_vcpu) in unpin_host_vcpu() argument
294 if (host_vcpu) in unpin_host_vcpu()
295 hyp_unpin_shared_mem(host_vcpu, host_vcpu + 1); in unpin_host_vcpu()
304 unpin_host_vcpu(hyp_vcpus[i]->host_vcpu); in unpin_host_vcpus()
317 struct kvm_vcpu *host_vcpu, in init_pkvm_hyp_vcpu() argument
322 if (hyp_pin_shared_mem(host_vcpu, host_vcpu + 1)) in init_pkvm_hyp_vcpu()
325 if (host_vcpu->vcpu_idx != vcpu_idx) { in init_pkvm_hyp_vcpu()
330 hyp_vcpu->host_vcpu = host_vcpu; in init_pkvm_hyp_vcpu()
333 hyp_vcpu->vcpu.vcpu_id = READ_ONCE(host_vcpu->vcpu_id); in init_pkvm_hyp_vcpu()
337 hyp_vcpu->vcpu.arch.cflags = READ_ONCE(host_vcpu->arch.cflags); in init_pkvm_hyp_vcpu()
[all …]
/linux-6.12.1/arch/arm64/kvm/
Dpkvm.c128 struct kvm_vcpu *host_vcpu; in __pkvm_create_hyp_vm() local
169 kvm_for_each_vcpu(idx, host_vcpu, host_kvm) { in __pkvm_create_hyp_vm()
173 if (WARN_ON(host_vcpu->vcpu_idx != idx)) { in __pkvm_create_hyp_vm()
184 ret = kvm_call_hyp_nvhe(__pkvm_init_vcpu, handle, host_vcpu, in __pkvm_create_hyp_vm()
/linux-6.12.1/arch/arm64/kvm/hyp/include/nvhe/
Dpkvm.h22 struct kvm_vcpu *host_vcpu; member
65 int __pkvm_init_vcpu(pkvm_handle_t handle, struct kvm_vcpu *host_vcpu,