/openbmc/linux/arch/riscv/kvm/ |
H A D | vcpu_fp.c | 91 if (KVM_REG_SIZE(reg->id) != sizeof(u32)) in kvm_riscv_vcpu_get_reg_fp() 103 if (KVM_REG_SIZE(reg->id) != sizeof(u32)) in kvm_riscv_vcpu_get_reg_fp() 108 if (KVM_REG_SIZE(reg->id) != sizeof(u64)) in kvm_riscv_vcpu_get_reg_fp() 116 if (copy_to_user(uaddr, reg_val, KVM_REG_SIZE(reg->id))) in kvm_riscv_vcpu_get_reg_fp() 136 if (KVM_REG_SIZE(reg->id) != sizeof(u32)) in kvm_riscv_vcpu_set_reg_fp() 148 if (KVM_REG_SIZE(reg->id) != sizeof(u32)) in kvm_riscv_vcpu_set_reg_fp() 153 if (KVM_REG_SIZE(reg->id) != sizeof(u64)) in kvm_riscv_vcpu_set_reg_fp() 161 if (copy_from_user(reg_val, uaddr, KVM_REG_SIZE(reg->id))) in kvm_riscv_vcpu_set_reg_fp()
|
H A D | vcpu_onereg.c | 129 if (KVM_REG_SIZE(reg->id) != sizeof(unsigned long)) in kvm_riscv_vcpu_get_reg_config() 162 if (copy_to_user(uaddr, ®_val, KVM_REG_SIZE(reg->id))) in kvm_riscv_vcpu_get_reg_config() 178 if (KVM_REG_SIZE(reg->id) != sizeof(unsigned long)) in kvm_riscv_vcpu_set_reg_config() 181 if (copy_from_user(®_val, uaddr, KVM_REG_SIZE(reg->id))) in kvm_riscv_vcpu_set_reg_config() 283 if (KVM_REG_SIZE(reg->id) != sizeof(unsigned long)) in kvm_riscv_vcpu_get_reg_core() 299 if (copy_to_user(uaddr, ®_val, KVM_REG_SIZE(reg->id))) in kvm_riscv_vcpu_get_reg_core() 316 if (KVM_REG_SIZE(reg->id) != sizeof(unsigned long)) in kvm_riscv_vcpu_set_reg_core() 321 if (copy_from_user(®_val, uaddr, KVM_REG_SIZE(reg->id))) in kvm_riscv_vcpu_set_reg_core() 392 if (KVM_REG_SIZE(reg->id) != sizeof(unsigned long)) in kvm_riscv_vcpu_get_reg_csr() 411 if (copy_to_user(uaddr, ®_val, KVM_REG_SIZE(reg->id))) in kvm_riscv_vcpu_get_reg_csr() [all …]
|
H A D | vcpu_timer.c | 170 if (KVM_REG_SIZE(reg->id) != sizeof(u64)) in kvm_riscv_vcpu_get_reg_timer() 193 if (copy_to_user(uaddr, ®_val, KVM_REG_SIZE(reg->id))) in kvm_riscv_vcpu_get_reg_timer() 211 if (KVM_REG_SIZE(reg->id) != sizeof(u64)) in kvm_riscv_vcpu_set_reg_timer() 216 if (copy_from_user(®_val, uaddr, KVM_REG_SIZE(reg->id))) in kvm_riscv_vcpu_set_reg_timer()
|
H A D | vcpu_sbi.c | 257 if (KVM_REG_SIZE(reg->id) != sizeof(unsigned long)) in kvm_riscv_vcpu_set_reg_sbi_ext() 266 if (copy_from_user(®_val, uaddr, KVM_REG_SIZE(reg->id))) in kvm_riscv_vcpu_set_reg_sbi_ext() 294 if (KVM_REG_SIZE(reg->id) != sizeof(unsigned long)) in kvm_riscv_vcpu_get_reg_sbi_ext() 317 if (copy_to_user(uaddr, ®_val, KVM_REG_SIZE(reg->id))) in kvm_riscv_vcpu_get_reg_sbi_ext()
|
H A D | vcpu_vector.c | 143 size_t reg_size = KVM_REG_SIZE(reg->id); in kvm_riscv_vcpu_get_reg_vector() 169 size_t reg_size = KVM_REG_SIZE(reg->id); in kvm_riscv_vcpu_set_reg_vector()
|
/openbmc/linux/arch/arm64/kvm/ |
H A D | guest.c | 129 if (KVM_REG_SIZE(reg->id) != size) in core_reg_addr() 202 (off + (KVM_REG_SIZE(reg->id) / sizeof(__u32))) >= nr_regs) in get_core_reg() 209 if (copy_to_user(uaddr, addr, KVM_REG_SIZE(reg->id))) in get_core_reg() 227 (off + (KVM_REG_SIZE(reg->id) / sizeof(__u32))) >= nr_regs) in set_core_reg() 234 if (KVM_REG_SIZE(reg->id) > sizeof(tmp)) in set_core_reg() 237 if (copy_from_user(valp, uaddr, KVM_REG_SIZE(reg->id))) { in set_core_reg() 275 memcpy(addr, valp, KVM_REG_SIZE(reg->id)); in set_core_reg() 396 #define KVM_SVE_ZREG_SIZE KVM_REG_SIZE(KVM_REG_ARM64_SVE_ZREG(0, 0)) 397 #define KVM_SVE_PREG_SIZE KVM_REG_SIZE(KVM_REG_ARM64_SVE_PREG(0, 0)) 636 ret = copy_from_user(&val, uaddr, KVM_REG_SIZE(reg->id)); in set_timer_reg() [all …]
|
H A D | hypercalls.c | 494 if (copy_to_user(uaddr, &val, KVM_REG_SIZE(reg->id))) in kvm_arm_get_fw_reg() 547 if (KVM_REG_SIZE(reg->id) != sizeof(val)) in kvm_arm_set_fw_reg() 549 if (copy_from_user(&val, uaddr, KVM_REG_SIZE(reg->id))) in kvm_arm_set_fw_reg()
|
H A D | sys_regs.c | 3394 if (KVM_REG_SIZE(id) != 4) in demux_c15_get() 3419 if (KVM_REG_SIZE(id) != 4) in demux_c15_set()
|
/openbmc/linux/arch/riscv/include/uapi/asm/ |
H A D | kvm.h | 158 #define KVM_REG_SIZE(id) \ macro
|
/openbmc/linux/tools/arch/arm/include/uapi/asm/ |
H A D | kvm.h | 34 #define KVM_REG_SIZE(id) \ macro
|
/openbmc/qemu/linux-headers/asm-arm/ |
H A D | kvm.h | 34 #define KVM_REG_SIZE(id) \ macro
|
/openbmc/qemu/linux-headers/asm-riscv/ |
H A D | kvm.h | 210 #define KVM_REG_SIZE(id) \ macro
|
/openbmc/linux/tools/arch/arm64/include/uapi/asm/ |
H A D | kvm.h | 48 #define KVM_REG_SIZE(id) \ macro
|
/openbmc/linux/arch/arm64/include/uapi/asm/ |
H A D | kvm.h | 48 #define KVM_REG_SIZE(id) \ macro
|
/openbmc/qemu/linux-headers/asm-arm64/ |
H A D | kvm.h | 46 #define KVM_REG_SIZE(id) \ macro
|