Home
last modified time | relevance | path

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

/arch/arm64/kvm/
Dguest.c92 if (KVM_REG_SIZE(reg->id) == size && in validate_core_offset()
115 (off + (KVM_REG_SIZE(reg->id) / sizeof(__u32))) >= nr_regs) in get_core_reg()
121 if (copy_to_user(uaddr, ((u32 *)regs) + off, KVM_REG_SIZE(reg->id))) in get_core_reg()
140 (off + (KVM_REG_SIZE(reg->id) / sizeof(__u32))) >= nr_regs) in set_core_reg()
146 if (KVM_REG_SIZE(reg->id) > sizeof(tmp)) in set_core_reg()
149 if (copy_from_user(valp, uaddr, KVM_REG_SIZE(reg->id))) { in set_core_reg()
181 memcpy((u32 *)regs + off, valp, KVM_REG_SIZE(reg->id)); in set_core_reg()
238 ret = copy_from_user(&val, uaddr, KVM_REG_SIZE(reg->id)); in set_timer_reg()
251 return copy_to_user(uaddr, &val, KVM_REG_SIZE(reg->id)) ? -EFAULT : 0; in get_timer_reg()
Dsys_regs.c298 if (copy_from_user(r, uaddr, KVM_REG_SIZE(reg->id)) != 0) in set_bvr()
308 if (copy_to_user(uaddr, r, KVM_REG_SIZE(reg->id)) != 0) in get_bvr()
340 if (copy_from_user(r, uaddr, KVM_REG_SIZE(reg->id)) != 0) in set_bcr()
351 if (copy_to_user(uaddr, r, KVM_REG_SIZE(reg->id)) != 0) in get_bcr()
384 if (copy_from_user(r, uaddr, KVM_REG_SIZE(reg->id)) != 0) in set_wvr()
394 if (copy_to_user(uaddr, r, KVM_REG_SIZE(reg->id)) != 0) in get_wvr()
426 if (copy_from_user(r, uaddr, KVM_REG_SIZE(reg->id)) != 0) in set_wcr()
436 if (copy_to_user(uaddr, r, KVM_REG_SIZE(reg->id)) != 0) in get_wcr()
1863 if (copy_from_user(val, uaddr, KVM_REG_SIZE(id)) != 0) in reg_from_user()
1870 if (copy_to_user(uaddr, val, KVM_REG_SIZE(id)) != 0) in reg_to_user()
[all …]
/arch/arm/kvm/
Dguest.c61 if (KVM_REG_SIZE(reg->id) != 4) in get_core_reg()
66 if (off >= sizeof(*regs) / KVM_REG_SIZE(reg->id)) in get_core_reg()
78 if (KVM_REG_SIZE(reg->id) != 4) in set_core_reg()
83 if (off >= sizeof(*regs) / KVM_REG_SIZE(reg->id)) in set_core_reg()
151 ret = copy_from_user(&val, uaddr, KVM_REG_SIZE(reg->id)); in set_timer_reg()
164 return copy_to_user(uaddr, &val, KVM_REG_SIZE(reg->id)) ? -EFAULT : 0; in get_timer_reg()
Dcoproc.c783 if (copy_from_user(val, uaddr, KVM_REG_SIZE(id)) != 0) in reg_from_user()
794 if (copy_to_user(uaddr, val, KVM_REG_SIZE(id)) != 0) in reg_to_user()
813 if (KVM_REG_SIZE(id) == 4) { in get_invariant_cp15()
817 } else if (KVM_REG_SIZE(id) == 8) { in get_invariant_cp15()
837 if (KVM_REG_SIZE(id) == 4) { in set_invariant_cp15()
843 } else if (KVM_REG_SIZE(id) == 8) { in set_invariant_cp15()
911 if (KVM_REG_SIZE(id) != 4) in demux_c15_get()
936 if (KVM_REG_SIZE(id) != 4) in demux_c15_set()
1011 if (KVM_REG_SIZE(id) != 8) in vfp_get_reg()
1018 if (KVM_REG_SIZE(id) != 4) in vfp_get_reg()
[all …]
/arch/arm64/include/uapi/asm/
Dkvm.h45 #define KVM_REG_SIZE(id) \ macro
/arch/arm/include/uapi/asm/
Dkvm.h33 #define KVM_REG_SIZE(id) \ macro