Searched refs:KVM_REG_SIZE (Results 1 – 8 of 8) sorted by relevance
| /linux/arch/riscv/kvm/ |
| H A D | vcpu_fp.c | 93 if (KVM_REG_SIZE(reg->id) != sizeof(u32)) in kvm_riscv_vcpu_get_reg_fp() 107 if (KVM_REG_SIZE(reg->id) != sizeof(u32)) in kvm_riscv_vcpu_get_reg_fp() 112 if (KVM_REG_SIZE(reg->id) != sizeof(u64)) in kvm_riscv_vcpu_get_reg_fp() 122 if (copy_to_user(uaddr, reg_val, KVM_REG_SIZE(reg->id))) in kvm_riscv_vcpu_get_reg_fp() 142 if (KVM_REG_SIZE(reg->id) != sizeof(u32)) in kvm_riscv_vcpu_set_reg_fp() 156 if (KVM_REG_SIZE(reg->id) != sizeof(u32)) in kvm_riscv_vcpu_set_reg_fp() 161 if (KVM_REG_SIZE(reg->id) != sizeof(u64)) in kvm_riscv_vcpu_set_reg_fp() 171 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 | 45 if (KVM_REG_SIZE(reg->id) != sizeof(unsigned long)) in kvm_riscv_vcpu_get_reg_config() 83 if (copy_to_user(uaddr, ®_val, KVM_REG_SIZE(reg->id))) in kvm_riscv_vcpu_get_reg_config() 99 if (KVM_REG_SIZE(reg->id) != sizeof(unsigned long)) in kvm_riscv_vcpu_set_reg_config() 102 if (copy_from_user(®_val, uaddr, KVM_REG_SIZE(reg->id))) in kvm_riscv_vcpu_set_reg_config() 211 if (KVM_REG_SIZE(reg->id) != sizeof(unsigned long)) in kvm_riscv_vcpu_get_reg_core() 229 if (copy_to_user(uaddr, ®_val, KVM_REG_SIZE(reg->id))) in kvm_riscv_vcpu_get_reg_core() 247 if (KVM_REG_SIZE(reg->id) != sizeof(unsigned long)) in kvm_riscv_vcpu_set_reg_core() 254 if (copy_from_user(®_val, uaddr, KVM_REG_SIZE(reg->id))) in kvm_riscv_vcpu_set_reg_core() 369 if (KVM_REG_SIZE(reg->id) != sizeof(unsigned long)) in kvm_riscv_vcpu_get_reg_csr() 391 if (copy_to_user(uaddr, ®_val, KVM_REG_SIZE(reg->id))) in kvm_riscv_vcpu_get_reg_csr() [all …]
|
| H A D | vcpu_sbi.c | 334 if (KVM_REG_SIZE(reg->id) != sizeof(unsigned long)) in kvm_riscv_vcpu_set_reg_sbi_ext() 343 if (copy_from_user(®_val, uaddr, KVM_REG_SIZE(reg->id))) in kvm_riscv_vcpu_set_reg_sbi_ext() 371 if (KVM_REG_SIZE(reg->id) != sizeof(unsigned long)) in kvm_riscv_vcpu_get_reg_sbi_ext() 394 if (copy_to_user(uaddr, ®_val, KVM_REG_SIZE(reg->id))) in kvm_riscv_vcpu_get_reg_sbi_ext() 482 switch (KVM_REG_SIZE(reg->id)) { in kvm_riscv_vcpu_set_reg_sbi() 499 if (copy_from_user(reg_val, uaddr, KVM_REG_SIZE(reg->id))) in kvm_riscv_vcpu_set_reg_sbi() 509 return ext->set_state_reg(vcpu, reg_num, KVM_REG_SIZE(reg->id), reg_val); in kvm_riscv_vcpu_set_reg_sbi() 528 switch (KVM_REG_SIZE(reg->id)) { in kvm_riscv_vcpu_get_reg_sbi() 552 ret = ext->get_state_reg(vcpu, reg_num, KVM_REG_SIZE(reg->id), reg_val); in kvm_riscv_vcpu_get_reg_sbi() 556 if (copy_to_user(uaddr, reg_val, KVM_REG_SIZE(reg->id))) in kvm_riscv_vcpu_get_reg_sbi()
|
| /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))
|
| H A D | sys_regs.c | 5407 if (KVM_REG_SIZE(id) != 4) in demux_c15_get() 5432 if (KVM_REG_SIZE(id) != 4) in demux_c15_set()
|
| /linux/tools/testing/selftests/kvm/include/ |
| H A D | kvm_util.h | 830 TEST_ASSERT(KVM_REG_SIZE(id) <= sizeof(val), "Reg %lx too big", id); in vcpu_get_reg() 840 TEST_ASSERT(KVM_REG_SIZE(id) <= sizeof(val), "Reg %lx too big", id); in vcpu_set_reg()
|
| /linux/include/uapi/linux/ |
| H A D | kvm.h | 1137 #define KVM_REG_SIZE(id) \ macro
|
| /linux/tools/include/uapi/linux/ |
| H A D | kvm.h | 1130 #define KVM_REG_SIZE(id) \ macro
|