Re: [PATCH v3 1/2] KVM: s390: fix access register usage in ioctls

2024-02-20 Thread Nina Schoetterl-Glausch
he save can be performed and the AR translation > is done just as it is today. If they don't (the MEM_OP path), the > AR can be read from vcpu->run without stashing the current contents. > > Signed-off-by: Eric Farman Reviewed-by: Nina Schoetterl-Glausch > --- > arch

Re: [PATCH v2 2/2] KVM: s390: selftests: memop: add a simple AR test

2024-02-20 Thread Nina Schoetterl-Glausch
R that contains zero will direct the CPU to > use the primary address space normally used anyway. AR[1] is > selected for this test because the host AR[1] is usually non-zero, > and KVM needs to correctly swap those values. > > Signed-off-by: Eric Farman Reviewed-by: Nina Schoe

[PATCH v2] KVM: s390: selftest: memop: Fix undefined behavior

2024-01-11 Thread Nina Schoetterl-Glausch
If an integer's type has x bits, shifting the integer left by x or more is undefined behavior. This can happen in the rotate function when attempting to do a rotation of the whole value by 0. Fixes: 0dd714bfd200 ("KVM: s390: selftest: memop: Add cmpxchg tests") Signed-off-by:

Re: [PATCH] KVM: s390: selftest: memop: Fix undefined behavior

2023-12-18 Thread Nina Schoetterl-Glausch
On Fri, 2023-12-15 at 18:02 +0100, Claudio Imbrenda wrote: > On Fri, 15 Dec 2023 17:11:25 +0100 > Nina Schoetterl-Glausch wrote: > > > If an integer's type has x bits, shifting the integer left by x or more > > is undefined behavior. > > This can happen in the ro

[PATCH] KVM: s390: selftest: memop: Fix undefined behavior

2023-12-15 Thread Nina Schoetterl-Glausch
If an integer's type has x bits, shifting the integer left by x or more is undefined behavior. This can happen in the rotate function when attempting to do a rotation of the whole value by 0. Fixes: 0dd714bfd200 ("KVM: s390: selftest: memop: Add cmpxchg tests") Signed-off-by: