summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2024-03-14 14:47:56 -0400
committerPaolo Bonzini <pbonzini@redhat.com>2024-03-14 14:47:56 -0400
commit17193ced2dad52e7f1848945baaf3a71f44f424d (patch)
treecf8e6e7c56b009b7023ad5d4265c4d39556f2563 /tools
parente9a2bba476c8332ed547fce485c158d03b0b9659 (diff)
parent00de073e2420df02ac0f1a19dbfb60ff8eb198be (diff)
Merge tag 'kvm-s390-next-6.9-1' of https://git.kernel.org/pub/scm/linux/kernel/git/kvms390/linux into HEAD
- Memop selftest rotate fix - SCLP event bits over indication fix - Missing virt_to_phys for the CRYCB fix
Diffstat (limited to 'tools')
-rw-r--r--tools/testing/selftests/kvm/s390x/memop.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/testing/selftests/kvm/s390x/memop.c b/tools/testing/selftests/kvm/s390x/memop.c
index bb3ca9a5d731..4ec8d0181e8d 100644
--- a/tools/testing/selftests/kvm/s390x/memop.c
+++ b/tools/testing/selftests/kvm/s390x/memop.c
@@ -489,6 +489,8 @@ static __uint128_t rotate(int size, __uint128_t val, int amount)
amount = (amount + bits) % bits;
val = cut_to_size(size, val);
+ if (!amount)
+ return val;
return (val << (bits - amount)) | (val >> amount);
}