/linux-6.12.1/include/kvm/ |
D | arm_hypercalls.h | 37 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/ |
D | processor.c | 282 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/ |
D | vgic-v3-sr.c | 730 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 …]
|
D | vgic-v2-cpuif-proxy.c | 83 vcpu_set_reg(vcpu, rd, data); in __vgic_v2_perform_cpuif_access()
|
/linux-6.12.1/tools/testing/selftests/kvm/lib/riscv/ |
D | processor.c | 217 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/ |
D | vpmu_counter_access.c | 495 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()
|
D | set_id_regs.c | 358 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()
|
D | aarch32_id_regs.c | 107 vcpu_set_reg(vcpu, reg_id, BAD_ID_REG_VAL); in test_user_raz_wi()
|
D | arch_timer_edge_cases.c | 893 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/ |
D | ebreak_test.c | 67 vcpu_set_reg(vcpu, RISCV_CORE_REG(regs.pc), pc + 4); in main()
|
/linux-6.12.1/arch/arm64/kvm/ |
D | psci.c | 226 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()
|
D | mmio.c | 111 vcpu_set_reg(vcpu, kvm_vcpu_dabt_get_rd(vcpu), data); in kvm_handle_mmio_return()
|
D | reset.c | 260 vcpu_set_reg(vcpu, 0, reset_state.r0); in kvm_reset_vcpu()
|
D | handle_exit.c | 82 vcpu_set_reg(vcpu, 0, ~0UL); in handle_smc()
|
D | sys_regs.c | 3844 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()
|
D | guest.c | 301 vcpu_set_reg(vcpu, i, (u32)vcpu_get_reg(vcpu, i)); in set_core_reg()
|
/linux-6.12.1/arch/arm64/kvm/hyp/nvhe/ |
D | sys_regs.c | 501 vcpu_set_reg(vcpu, Rt, params.regval); in kvm_handle_pvm_sysreg()
|
/linux-6.12.1/arch/arm64/kvm/hyp/vhe/ |
D | switch.c | 372 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/ |
D | kvm_emulate.h | 164 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/ |
D | switch.h | 517 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/ |
D | kvm_util.h | 711 static inline void vcpu_set_reg(struct kvm_vcpu *vcpu, uint64_t id, uint64_t val) in vcpu_set_reg() function
|