Home
last modified time | relevance | path

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

/arch/arm/kvm/
Dguest.c49 if (KVM_REG_SIZE(reg->id) != 4) in get_core_reg()
54 if (off >= sizeof(*regs) / KVM_REG_SIZE(reg->id)) in get_core_reg()
66 if (KVM_REG_SIZE(reg->id) != 4) in set_core_reg()
71 if (off >= sizeof(*regs) / KVM_REG_SIZE(reg->id)) in set_core_reg()
139 ret = copy_from_user(&val, uaddr, KVM_REG_SIZE(reg->id)); in set_timer_reg()
152 return copy_to_user(uaddr, &val, KVM_REG_SIZE(reg->id)) ? -EFAULT : 0; in get_timer_reg()
Dcoproc.c869 if (copy_from_user(val, uaddr, KVM_REG_SIZE(id)) != 0) in reg_from_user()
880 if (copy_to_user(uaddr, val, KVM_REG_SIZE(id)) != 0) in reg_to_user()
899 if (KVM_REG_SIZE(id) == 4) { in get_invariant_cp15()
903 } else if (KVM_REG_SIZE(id) == 8) { in get_invariant_cp15()
923 if (KVM_REG_SIZE(id) == 4) { in set_invariant_cp15()
929 } else if (KVM_REG_SIZE(id) == 8) { in set_invariant_cp15()
997 if (KVM_REG_SIZE(id) != 4) in demux_c15_get()
1022 if (KVM_REG_SIZE(id) != 4) in demux_c15_set()
1097 if (KVM_REG_SIZE(id) != 8) in vfp_get_reg()
1104 if (KVM_REG_SIZE(id) != 4) in vfp_get_reg()
[all …]
/arch/arm64/kvm/
Dguest.c116 if (KVM_REG_SIZE(reg->id) != size) in validate_core_offset()
138 (off + (KVM_REG_SIZE(reg->id) / sizeof(__u32))) >= nr_regs) in get_core_reg()
144 if (copy_to_user(uaddr, ((u32 *)regs) + off, KVM_REG_SIZE(reg->id))) in get_core_reg()
163 (off + (KVM_REG_SIZE(reg->id) / sizeof(__u32))) >= nr_regs) in set_core_reg()
169 if (KVM_REG_SIZE(reg->id) > sizeof(tmp)) in set_core_reg()
172 if (copy_from_user(valp, uaddr, KVM_REG_SIZE(reg->id))) { in set_core_reg()
204 memcpy((u32 *)regs + off, valp, KVM_REG_SIZE(reg->id)); in set_core_reg()
303 #define KVM_SVE_ZREG_SIZE KVM_REG_SIZE(KVM_REG_ARM64_SVE_ZREG(0, 0))
304 #define KVM_SVE_PREG_SIZE KVM_REG_SIZE(KVM_REG_ARM64_SVE_PREG(0, 0))
538 ret = copy_from_user(&val, uaddr, KVM_REG_SIZE(reg->id)); in set_timer_reg()
[all …]
Dsys_regs.c452 if (copy_from_user(r, uaddr, KVM_REG_SIZE(reg->id)) != 0) in set_bvr()
462 if (copy_to_user(uaddr, r, KVM_REG_SIZE(reg->id)) != 0) in get_bvr()
494 if (copy_from_user(r, uaddr, KVM_REG_SIZE(reg->id)) != 0) in set_bcr()
505 if (copy_to_user(uaddr, r, KVM_REG_SIZE(reg->id)) != 0) in get_bcr()
538 if (copy_from_user(r, uaddr, KVM_REG_SIZE(reg->id)) != 0) in set_wvr()
548 if (copy_to_user(uaddr, r, KVM_REG_SIZE(reg->id)) != 0) in get_wvr()
580 if (copy_from_user(r, uaddr, KVM_REG_SIZE(reg->id)) != 0) in set_wcr()
590 if (copy_to_user(uaddr, r, KVM_REG_SIZE(reg->id)) != 0) in get_wcr()
2508 if (copy_from_user(val, uaddr, KVM_REG_SIZE(id)) != 0) in reg_from_user()
2515 if (copy_to_user(uaddr, val, KVM_REG_SIZE(id)) != 0) in reg_to_user()
[all …]
/arch/arm/include/uapi/asm/
Dkvm.h34 #define KVM_REG_SIZE(id) \ macro
/arch/arm64/include/uapi/asm/
Dkvm.h47 #define KVM_REG_SIZE(id) \ macro