Home
last modified time | relevance | path

Searched refs:KVM_REG_SIZE (Results 1 – 10 of 10) sorted by relevance

/linux-5.19.10/arch/riscv/kvm/
Dvcpu_fp.c93 if (KVM_REG_SIZE(reg->id) != sizeof(u32)) in kvm_riscv_vcpu_get_reg_fp()
105 if (KVM_REG_SIZE(reg->id) != sizeof(u32)) in kvm_riscv_vcpu_get_reg_fp()
110 if (KVM_REG_SIZE(reg->id) != sizeof(u64)) in kvm_riscv_vcpu_get_reg_fp()
118 if (copy_to_user(uaddr, reg_val, KVM_REG_SIZE(reg->id))) in kvm_riscv_vcpu_get_reg_fp()
139 if (KVM_REG_SIZE(reg->id) != sizeof(u32)) in kvm_riscv_vcpu_set_reg_fp()
151 if (KVM_REG_SIZE(reg->id) != sizeof(u32)) in kvm_riscv_vcpu_set_reg_fp()
156 if (KVM_REG_SIZE(reg->id) != sizeof(u64)) in kvm_riscv_vcpu_set_reg_fp()
164 if (copy_from_user(reg_val, uaddr, KVM_REG_SIZE(reg->id))) in kvm_riscv_vcpu_set_reg_fp()
Dvcpu.c197 if (KVM_REG_SIZE(reg->id) != sizeof(unsigned long)) in kvm_riscv_vcpu_get_reg_config()
208 if (copy_to_user(uaddr, &reg_val, KVM_REG_SIZE(reg->id))) in kvm_riscv_vcpu_get_reg_config()
224 if (KVM_REG_SIZE(reg->id) != sizeof(unsigned long)) in kvm_riscv_vcpu_set_reg_config()
227 if (copy_from_user(&reg_val, uaddr, KVM_REG_SIZE(reg->id))) in kvm_riscv_vcpu_set_reg_config()
260 if (KVM_REG_SIZE(reg->id) != sizeof(unsigned long)) in kvm_riscv_vcpu_get_reg_core()
276 if (copy_to_user(uaddr, &reg_val, KVM_REG_SIZE(reg->id))) in kvm_riscv_vcpu_get_reg_core()
293 if (KVM_REG_SIZE(reg->id) != sizeof(unsigned long)) in kvm_riscv_vcpu_set_reg_core()
298 if (copy_from_user(&reg_val, uaddr, KVM_REG_SIZE(reg->id))) in kvm_riscv_vcpu_set_reg_core()
328 if (KVM_REG_SIZE(reg->id) != sizeof(unsigned long)) in kvm_riscv_vcpu_get_reg_csr()
339 if (copy_to_user(uaddr, &reg_val, KVM_REG_SIZE(reg->id))) in kvm_riscv_vcpu_get_reg_csr()
[all …]
Dvcpu_timer.c102 if (KVM_REG_SIZE(reg->id) != sizeof(u64)) in kvm_riscv_vcpu_get_reg_timer()
125 if (copy_to_user(uaddr, &reg_val, KVM_REG_SIZE(reg->id))) in kvm_riscv_vcpu_get_reg_timer()
143 if (KVM_REG_SIZE(reg->id) != sizeof(u64)) in kvm_riscv_vcpu_set_reg_timer()
148 if (copy_from_user(&reg_val, uaddr, KVM_REG_SIZE(reg->id))) in kvm_riscv_vcpu_set_reg_timer()
/linux-5.19.10/arch/arm64/kvm/
Dguest.c128 if (KVM_REG_SIZE(reg->id) != size) in core_reg_addr()
201 (off + (KVM_REG_SIZE(reg->id) / sizeof(__u32))) >= nr_regs) in get_core_reg()
208 if (copy_to_user(uaddr, addr, KVM_REG_SIZE(reg->id))) in get_core_reg()
226 (off + (KVM_REG_SIZE(reg->id) / sizeof(__u32))) >= nr_regs) in set_core_reg()
233 if (KVM_REG_SIZE(reg->id) > sizeof(tmp)) in set_core_reg()
236 if (copy_from_user(valp, uaddr, KVM_REG_SIZE(reg->id))) { in set_core_reg()
268 memcpy(addr, valp, KVM_REG_SIZE(reg->id)); in set_core_reg()
389 #define KVM_SVE_ZREG_SIZE KVM_REG_SIZE(KVM_REG_ARM64_SVE_ZREG(0, 0))
390 #define KVM_SVE_PREG_SIZE KVM_REG_SIZE(KVM_REG_ARM64_SVE_PREG(0, 0))
624 ret = copy_from_user(&val, uaddr, KVM_REG_SIZE(reg->id)); in set_timer_reg()
[all …]
Dsys_regs.c458 if (copy_from_user(r, uaddr, KVM_REG_SIZE(reg->id)) != 0) in set_bvr()
468 if (copy_to_user(uaddr, r, KVM_REG_SIZE(reg->id)) != 0) in get_bvr()
500 if (copy_from_user(r, uaddr, KVM_REG_SIZE(reg->id)) != 0) in set_bcr()
511 if (copy_to_user(uaddr, r, KVM_REG_SIZE(reg->id)) != 0) in get_bcr()
544 if (copy_from_user(r, uaddr, KVM_REG_SIZE(reg->id)) != 0) in set_wvr()
554 if (copy_to_user(uaddr, r, KVM_REG_SIZE(reg->id)) != 0) in get_wvr()
586 if (copy_from_user(r, uaddr, KVM_REG_SIZE(reg->id)) != 0) in set_wcr()
596 if (copy_to_user(uaddr, r, KVM_REG_SIZE(reg->id)) != 0) in get_wcr()
2712 if (copy_from_user(val, uaddr, KVM_REG_SIZE(id)) != 0) in reg_from_user()
2719 if (copy_to_user(uaddr, val, KVM_REG_SIZE(id)) != 0) in reg_to_user()
[all …]
Dhypercalls.c346 if (copy_to_user(uaddr, &val, KVM_REG_SIZE(reg->id))) in kvm_arm_get_fw_reg()
400 if (copy_from_user(&val, uaddr, KVM_REG_SIZE(reg->id))) in kvm_arm_set_fw_reg()
/linux-5.19.10/arch/riscv/include/uapi/asm/
Dkvm.h106 #define KVM_REG_SIZE(id) \ macro
/linux-5.19.10/tools/arch/arm/include/uapi/asm/
Dkvm.h34 #define KVM_REG_SIZE(id) \ macro
/linux-5.19.10/tools/arch/arm64/include/uapi/asm/
Dkvm.h47 #define KVM_REG_SIZE(id) \ macro
/linux-5.19.10/arch/arm64/include/uapi/asm/
Dkvm.h47 #define KVM_REG_SIZE(id) \ macro