Searched refs:KVM_REG_SIZE (Results 1 – 10 of 10) sorted by relevance
| /linux/arch/riscv/kvm/ |
| A D | vcpu_fp.c | 92 if (KVM_REG_SIZE(reg->id) != sizeof(u32)) in kvm_riscv_vcpu_get_reg_fp() 104 if (KVM_REG_SIZE(reg->id) != sizeof(u32)) in kvm_riscv_vcpu_get_reg_fp() 109 if (KVM_REG_SIZE(reg->id) != sizeof(u64)) in kvm_riscv_vcpu_get_reg_fp() 117 if (copy_to_user(uaddr, reg_val, KVM_REG_SIZE(reg->id))) in kvm_riscv_vcpu_get_reg_fp() 138 if (KVM_REG_SIZE(reg->id) != sizeof(u32)) in kvm_riscv_vcpu_set_reg_fp() 150 if (KVM_REG_SIZE(reg->id) != sizeof(u32)) in kvm_riscv_vcpu_set_reg_fp() 155 if (KVM_REG_SIZE(reg->id) != sizeof(u64)) in kvm_riscv_vcpu_set_reg_fp() 163 if (copy_from_user(reg_val, uaddr, KVM_REG_SIZE(reg->id))) in kvm_riscv_vcpu_set_reg_fp()
|
| A D | vcpu.c | 158 if (KVM_REG_SIZE(reg->id) != sizeof(unsigned long)) in kvm_riscv_vcpu_get_reg_config() 169 if (copy_to_user(uaddr, ®_val, KVM_REG_SIZE(reg->id))) in kvm_riscv_vcpu_get_reg_config() 185 if (KVM_REG_SIZE(reg->id) != sizeof(unsigned long)) in kvm_riscv_vcpu_set_reg_config() 188 if (copy_from_user(®_val, uaddr, KVM_REG_SIZE(reg->id))) in kvm_riscv_vcpu_set_reg_config() 220 if (KVM_REG_SIZE(reg->id) != sizeof(unsigned long)) in kvm_riscv_vcpu_get_reg_core() 236 if (copy_to_user(uaddr, ®_val, KVM_REG_SIZE(reg->id))) in kvm_riscv_vcpu_get_reg_core() 253 if (KVM_REG_SIZE(reg->id) != sizeof(unsigned long)) in kvm_riscv_vcpu_set_reg_core() 258 if (copy_from_user(®_val, uaddr, KVM_REG_SIZE(reg->id))) in kvm_riscv_vcpu_set_reg_core() 288 if (KVM_REG_SIZE(reg->id) != sizeof(unsigned long)) in kvm_riscv_vcpu_get_reg_csr() 299 if (copy_to_user(uaddr, ®_val, KVM_REG_SIZE(reg->id))) in kvm_riscv_vcpu_get_reg_csr() [all …]
|
| A D | vcpu_timer.c | 102 if (KVM_REG_SIZE(reg->id) != sizeof(u64)) in kvm_riscv_vcpu_get_reg_timer() 125 if (copy_to_user(uaddr, ®_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(®_val, uaddr, KVM_REG_SIZE(reg->id))) in kvm_riscv_vcpu_set_reg_timer()
|
| /linux/arch/arm64/kvm/ |
| A D | guest.c | 128 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 …]
|
| A D | sys_regs.c | 415 if (copy_from_user(r, uaddr, KVM_REG_SIZE(reg->id)) != 0) in set_bvr() 425 if (copy_to_user(uaddr, r, KVM_REG_SIZE(reg->id)) != 0) in get_bvr() 468 if (copy_to_user(uaddr, r, KVM_REG_SIZE(reg->id)) != 0) in get_bcr() 511 if (copy_to_user(uaddr, r, KVM_REG_SIZE(reg->id)) != 0) in get_wvr() 553 if (copy_to_user(uaddr, r, KVM_REG_SIZE(reg->id)) != 0) in get_wcr() 2521 if (copy_from_user(val, uaddr, KVM_REG_SIZE(id)) != 0) in reg_from_user() 2528 if (copy_to_user(uaddr, val, KVM_REG_SIZE(id)) != 0) in reg_to_user() 2607 if (KVM_REG_SIZE(id) != 4) in demux_c15_get() 2632 if (KVM_REG_SIZE(id) != 4) in demux_c15_set() 2659 if (KVM_REG_SIZE(reg->id) != sizeof(__u64)) in kvm_arm_sys_reg_get_reg() [all …]
|
| A D | psci.c | 484 if (copy_to_user(uaddr, &val, KVM_REG_SIZE(reg->id))) in kvm_arm_get_fw_reg() 496 if (copy_from_user(&val, uaddr, KVM_REG_SIZE(reg->id))) in kvm_arm_set_fw_reg()
|
| /linux/arch/riscv/include/uapi/asm/ |
| A D | kvm.h | 89 #define KVM_REG_SIZE(id) \ macro
|
| /linux/tools/arch/arm/include/uapi/asm/ |
| A D | kvm.h | 34 #define KVM_REG_SIZE(id) \ macro
|
| /linux/arch/arm64/include/uapi/asm/ |
| A D | kvm.h | 47 #define KVM_REG_SIZE(id) \ macro
|
| /linux/tools/arch/arm64/include/uapi/asm/ |
| A D | kvm.h | 47 #define KVM_REG_SIZE(id) \ macro
|
Completed in 43 milliseconds