Home
last modified time | relevance | path

Searched refs:vcpu_set_reg (Results 1 – 21 of 21) sorted by relevance

/linux-6.12.1/include/kvm/
Darm_hypercalls.h37 vcpu_set_reg(vcpu, 0, a0); in smccc_set_retval()
38 vcpu_set_reg(vcpu, 1, a1); in smccc_set_retval()
39 vcpu_set_reg(vcpu, 2, a2); in smccc_set_retval()
40 vcpu_set_reg(vcpu, 3, a3); in smccc_set_retval()
/linux-6.12.1/tools/testing/selftests/kvm/lib/aarch64/
Dprocessor.c282 vcpu_set_reg(vcpu, KVM_ARM64_SYS_REG(SYS_CPACR_EL1), 3 << 20); in aarch64_vcpu_setup()
352 vcpu_set_reg(vcpu, KVM_ARM64_SYS_REG(SYS_SCTLR_EL1), sctlr_el1); in aarch64_vcpu_setup()
353 vcpu_set_reg(vcpu, KVM_ARM64_SYS_REG(SYS_TCR_EL1), tcr_el1); in aarch64_vcpu_setup()
354 vcpu_set_reg(vcpu, KVM_ARM64_SYS_REG(SYS_MAIR_EL1), DEFAULT_MAIR_EL1); in aarch64_vcpu_setup()
355 vcpu_set_reg(vcpu, KVM_ARM64_SYS_REG(SYS_TTBR0_EL1), ttbr0_el1); in aarch64_vcpu_setup()
356 vcpu_set_reg(vcpu, KVM_ARM64_SYS_REG(SYS_TPIDR_EL1), vcpu->id); in aarch64_vcpu_setup()
372 vcpu_set_reg(vcpu, ARM64_CORE_REG(regs.pc), (uint64_t)guest_code); in vcpu_arch_set_entry_point()
390 vcpu_set_reg(vcpu, ARM64_CORE_REG(sp_el1), stack_vaddr + stack_size); in __aarch64_vcpu_add()
420 vcpu_set_reg(vcpu, ARM64_CORE_REG(regs.regs[i]), in vcpu_args_set()
460 vcpu_set_reg(vcpu, KVM_ARM64_SYS_REG(SYS_VBAR_EL1), (uint64_t)&vectors); in vcpu_init_descriptor_tables()
/linux-6.12.1/arch/arm64/kvm/hyp/
Dvgic-v3-sr.c730 vcpu_set_reg(vcpu, rt, lr_val & ICH_LR_VIRTUAL_ID_MASK); in __vgic_v3_read_iar()
734 vcpu_set_reg(vcpu, rt, ICC_IAR1_EL1_SPURIOUS); in __vgic_v3_read_iar()
819 vcpu_set_reg(vcpu, rt, !!(vmcr & ICH_VMCR_ENG0_MASK)); in __vgic_v3_read_igrpen0()
824 vcpu_set_reg(vcpu, rt, !!(vmcr & ICH_VMCR_ENG1_MASK)); in __vgic_v3_read_igrpen1()
853 vcpu_set_reg(vcpu, rt, __vgic_v3_get_bpr0(vmcr)); in __vgic_v3_read_bpr0()
858 vcpu_set_reg(vcpu, rt, __vgic_v3_get_bpr1(vmcr)); in __vgic_v3_read_bpr1()
907 vcpu_set_reg(vcpu, rt, val); in __vgic_v3_read_apxrn()
978 vcpu_set_reg(vcpu, rt, lr_val & ICH_LR_VIRTUAL_ID_MASK); in __vgic_v3_read_hppir()
985 vcpu_set_reg(vcpu, rt, vmcr); in __vgic_v3_read_pmr()
1003 vcpu_set_reg(vcpu, rt, val); in __vgic_v3_read_rpr()
[all …]
Dvgic-v2-cpuif-proxy.c83 vcpu_set_reg(vcpu, rd, data); in __vgic_v2_perform_cpuif_access()
/linux-6.12.1/tools/testing/selftests/kvm/lib/riscv/
Dprocessor.c217 vcpu_set_reg(vcpu, RISCV_GENERAL_CSR_REG(satp), satp); in riscv_vcpu_mmu_setup()
295 vcpu_set_reg(vcpu, RISCV_CORE_REG(regs.pc), (unsigned long)guest_code); in vcpu_arch_set_entry_point()
328 vcpu_set_reg(vcpu, RISCV_CORE_REG(regs.gp), current_gp); in vm_arch_vcpu_add()
331 vcpu_set_reg(vcpu, RISCV_CORE_REG(regs.sp), stack_vaddr + stack_size); in vm_arch_vcpu_add()
334 vcpu_set_reg(vcpu, RISCV_GENERAL_CSR_REG(sscratch), vcpu_id); in vm_arch_vcpu_add()
337 vcpu_set_reg(vcpu, RISCV_GENERAL_CSR_REG(stvec), (unsigned long)guest_unexp_trap); in vm_arch_vcpu_add()
380 vcpu_set_reg(vcpu, id, va_arg(ap, uint64_t)); in vcpu_args_set()
431 vcpu_set_reg(vcpu, RISCV_GENERAL_CSR_REG(stvec), (unsigned long)&exception_vectors); in vcpu_init_vector_tables()
/linux-6.12.1/tools/testing/selftests/kvm/aarch64/
Dvpmu_counter_access.c495 vcpu_set_reg(vcpu, KVM_ARM64_SYS_REG(SYS_PMCR_EL0), pmcr); in test_create_vpmu_vm_with_pmcr_n()
536 vcpu_set_reg(vcpu, ARM64_CORE_REG(sp_el1), sp); in run_access_test()
537 vcpu_set_reg(vcpu, ARM64_CORE_REG(regs.pc), (uint64_t)guest_code); in run_access_test()
590 vcpu_set_reg(vcpu, KVM_ARM64_SYS_REG(set_reg_id), max_counters_mask); in run_pmregs_validity_test()
Dset_id_regs.c358 vcpu_set_reg(vcpu, reg, val); in test_reg_set_success()
501 vcpu_set_reg(vcpu, KVM_ARM64_SYS_REG(SYS_CLIDR_EL1), clidr); in test_clidr()
514 vcpu_set_reg(vcpu, KVM_ARM64_SYS_REG(SYS_CTR_EL0), ctr); in test_ctr()
527 vcpu_set_reg(vcpu, KVM_ARM64_SYS_REG(SYS_MPIDR_EL1), val); in test_vcpu_ftr_id_regs()
Daarch32_id_regs.c107 vcpu_set_reg(vcpu, reg_id, BAD_ID_REG_VAL); in test_user_raz_wi()
Darch_timer_edge_cases.c893 vcpu_set_reg(vcpu, KVM_REG_ARM_PTIMER_CNT, cnt); in kvm_set_cntxct()
895 vcpu_set_reg(vcpu, KVM_REG_ARM_TIMER_CNT, cnt); in kvm_set_cntxct()
/linux-6.12.1/tools/testing/selftests/kvm/riscv/
Debreak_test.c67 vcpu_set_reg(vcpu, RISCV_CORE_REG(regs.pc), pc + 4); in main()
/linux-6.12.1/arch/arm64/kvm/
Dpsci.c226 vcpu_set_reg(vcpu, i, lower_32_bits(vcpu_get_reg(vcpu, i))); in kvm_psci_narrow_to_32bit()
387 vcpu_set_reg(vcpu, 0, PSCI_RET_INTERNAL_FAILURE); in kvm_psci_1_x_call()
Dmmio.c111 vcpu_set_reg(vcpu, kvm_vcpu_dabt_get_rd(vcpu), data); in kvm_handle_mmio_return()
Dreset.c260 vcpu_set_reg(vcpu, 0, reset_state.r0); in kvm_reset_vcpu()
Dhandle_exit.c82 vcpu_set_reg(vcpu, 0, ~0UL); in handle_smc()
Dsys_regs.c3844 vcpu_set_reg(vcpu, Rt, lower_32_bits(params.regval)); in kvm_handle_cp_64()
3845 vcpu_set_reg(vcpu, Rt2, upper_32_bits(params.regval)); in kvm_handle_cp_64()
3923 vcpu_set_reg(vcpu, Rt, params.regval); in kvm_handle_cp10_id()
3968 vcpu_set_reg(vcpu, Rt, params->regval); in kvm_emulate_cp15_id_reg()
3990 vcpu_set_reg(vcpu, Rt, params->regval); in kvm_handle_cp_32()
4245 vcpu_set_reg(vcpu, Rt, params.regval); in kvm_handle_sys_reg()
Dguest.c301 vcpu_set_reg(vcpu, i, (u32)vcpu_get_reg(vcpu, i)); in set_core_reg()
/linux-6.12.1/arch/arm64/kvm/hyp/nvhe/
Dsys_regs.c501 vcpu_set_reg(vcpu, Rt, params.regval); in kvm_handle_pvm_sysreg()
/linux-6.12.1/arch/arm64/kvm/hyp/vhe/
Dswitch.c372 vcpu_set_reg(vcpu, rt, __vcpu_sys_reg(vcpu, CPTR_EL2)); in kvm_hyp_handle_cpacr_el1()
/linux-6.12.1/arch/arm64/include/asm/
Dkvm_emulate.h164 static __always_inline void vcpu_set_reg(struct kvm_vcpu *vcpu, u8 reg_num, in vcpu_set_reg() function
/linux-6.12.1/arch/arm64/kvm/hyp/include/hyp/
Dswitch.h517 vcpu_set_reg(vcpu, kvm_vcpu_sys_get_rt(vcpu), val); in kvm_hyp_handle_cntpct()
/linux-6.12.1/tools/testing/selftests/kvm/include/
Dkvm_util.h711 static inline void vcpu_set_reg(struct kvm_vcpu *vcpu, uint64_t id, uint64_t val) in vcpu_set_reg() function