]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: s390: Increase size of union sca_utility to four bytes
authorHeiko Carstens <hca@linux.ibm.com>
Tue, 26 Nov 2024 10:25:15 +0000 (11:25 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Wed, 27 Nov 2024 11:55:15 +0000 (12:55 +0100)
commitf93d6d62e4697b0df1474f0b1314c3c158335f0a
tree204e0771addf59df2ca7f9b2cfcb94ebbd814ea3
parent7061c63919bde3bb0daa63e700a117ab1f2c97b1
KVM: s390: Increase size of union sca_utility to four bytes

kvm_s390_update_topology_change_report() modifies a single bit within
sca_utility using cmpxchg(). Given that the size of the sca_utility union
is two bytes this generates very inefficient code. Change the size to four
bytes, so better code can be generated.

Even though the size of sca_utility doesn't reflect architecture anymore
this seems to be the easiest and most pragmatic approach to avoid
inefficient code.

Acked-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Acked-by: Janosch Frank <frankja@linux.ibm.com>
Link: https://lore.kernel.org/r/20241126102515.3178914-4-hca@linux.ibm.com
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/include/asm/kvm_host.h