]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: s390: generate kvm hypercall functions
authorHeiko Carstens <hca@linux.ibm.com>
Tue, 13 Jul 2021 14:57:13 +0000 (16:57 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Wed, 25 Aug 2021 09:03:35 +0000 (11:03 +0200)
commit1308929d213b0ba0810640d7515f6cf573b6e7de
tree0068cfa2f46f2230a2385b10f4e934e1ecedf752
parentcd2653026a660d3fc36fce325d139e7806b4f722
KVM: s390: generate kvm hypercall functions

Generate kvm hypercall functions with a macro instead of duplicating
the more or less identical code seven times. This also reduces number
of lines of code.
However the main purpose is to get rid of as many as possible open
coded error prone register asm constructs in s390 architecture code.

For the only user of kvm_hypercall identical code is created
before/after this patch (drivers/s390/virtio/virtio_ccw.c).

Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Acked-by: Christian Borntraeger <borntraeger@de.ibm.com>
Link: https://lore.kernel.org/r/20210713145713.2815167-1-hca@linux.ibm.com
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/include/asm/kvm_para.h