]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: s390: fix __insn32_query() inline assembly
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Wed, 2 Oct 2019 12:24:47 +0000 (14:24 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Sat, 5 Oct 2019 11:51:18 +0000 (13:51 +0200)
commit34f2f094aeddba9bb352a6bc2a5adf11f22fe6dd
treee3761ed2d0bd055573de739f9d12eb1d0678f3cd
parentad8251f9671d10c0033bbaa06d50892dbb6f9b86
KVM: s390: fix __insn32_query() inline assembly

The inline assembly constraints of __insn32_query() tell the compiler
that only the first byte of "query" is being written to. Intended was
probably that 32 bytes are written to.

Fix and simplify the code and just use a "memory" clobber.

Fixes: 5c04e9be7e0b ("KVM: s390: provide query function for instructions returning 32 byte")
Cc: stable@vger.kernel.org # v5.2+
Acked-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/kvm/kvm-s390.c