]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commit0d6d75d2a2c341ce99f0549fa28bee93fa56505d
tree0068cfa2f46f2230a2385b10f4e934e1ecedf752
parent70aa5d39826528e77f5595a5f9297d919112d396
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