Lines Matching refs:host_vcpu
324 static int copy_features(struct kvm_vcpu *shadow_vcpu, struct kvm_vcpu *host_vcpu) in copy_features() argument
354 bitmap_and(shadow_vcpu->arch.features, host_vcpu->arch.features, in copy_features()
371 struct kvm_vcpu *host_vcpu = shadow_vcpu->vcpu.arch.pkvm.host_vcpu; in unpin_host_vcpu() local
375 hyp_unpin_shared_mem(host_vcpu, host_vcpu + 1); in unpin_host_vcpu()
412 struct kvm_vcpu *host_vcpu, in init_shadow_vcpu() argument
418 host_vcpu = kern_hyp_va(host_vcpu); in init_shadow_vcpu()
419 if (hyp_pin_shared_mem(host_vcpu, host_vcpu + 1)) in init_shadow_vcpu()
422 if (host_vcpu->vcpu_idx != vcpu_idx) { in init_shadow_vcpu()
427 shadow_vcpu->arch.pkvm.host_vcpu = host_vcpu; in init_shadow_vcpu()
429 shadow_vcpu->vcpu_id = host_vcpu->vcpu_id; in init_shadow_vcpu()
432 ret = copy_features(shadow_vcpu, host_vcpu); in init_shadow_vcpu()
445 READ_ONCE(host_vcpu->arch.sve_state); in init_shadow_vcpu()
447 READ_ONCE(host_vcpu->arch.sve_max_vl); in init_shadow_vcpu()
490 reset_state->pc = *vcpu_pc(host_vcpu); in init_shadow_vcpu()
491 reset_state->r0 = vcpu_get_reg(host_vcpu, 0); in init_shadow_vcpu()
737 struct kvm_vcpu *host_vcpu, in __pkvm_init_shadow_vcpu() argument
771 ret = init_shadow_vcpu(shadow_state, host_vcpu, vm, idx); in __pkvm_init_shadow_vcpu()
940 struct kvm_vcpu *host_vcpu = vcpu->arch.pkvm.host_vcpu; in pkvm_reset_vcpu() local
946 vcpu_set_reg(vcpu, i, vcpu_get_reg(host_vcpu, i)); in pkvm_reset_vcpu()