Re: [PATCH V4 20/24] xen/arm: io: Harden sign extension check

2021-01-22 Thread Volodymyr Babchuk
Hi Oleksandr, Oleksandr Tyshchenko writes: > From: Oleksandr Tyshchenko > > In the ideal world we would never get an undefined behavior when > propagating the sign bit since that bit can only be set for access > size smaller than the register size (i.e byte/half-word for aarch32, > byte/half-w

Re: [PATCH V4 20/24] xen/arm: io: Harden sign extension check

2021-01-14 Thread Stefano Stabellini
On Tue, 12 Jan 2021, Oleksandr Tyshchenko wrote: > From: Oleksandr Tyshchenko > > In the ideal world we would never get an undefined behavior when > propagating the sign bit since that bit can only be set for access > size smaller than the register size (i.e byte/half-word for aarch32, > byte/hal

[PATCH V4 20/24] xen/arm: io: Harden sign extension check

2021-01-12 Thread Oleksandr Tyshchenko
From: Oleksandr Tyshchenko In the ideal world we would never get an undefined behavior when propagating the sign bit since that bit can only be set for access size smaller than the register size (i.e byte/half-word for aarch32, byte/half-word/word for aarch64). In the real world we need to care