]> www.infradead.org Git - users/dwmw2/linux.git/commit
s390/kvm: Split kvm_host header file
authorHeiko Carstens <hca@linux.ibm.com>
Fri, 21 Mar 2025 12:22:12 +0000 (13:22 +0100)
committerVasily Gorbik <gor@linux.ibm.com>
Mon, 31 Mar 2025 10:20:39 +0000 (12:20 +0200)
commitd104937874216421f29dd54e6df93cbb994bc100
treeeeee4db836d41981daf137d69c74db0c5919152d
parent8691abd3afaadd816a298503ec1a759df1305d2e
s390/kvm: Split kvm_host header file

In order to generate asm offsets into kvm_s390_sie_block linux/kvm_host.h
is included in asm-offsets.c. This causes quite often header dependency
problems, since linux/kvm_host.h pulls in a lot of other header files.

Solve this problem and split out the hardware structure declarations into a
separate header file. Include only the new header file into asm-offsets.c
instead of linux/kvm_host.h. This is sufficient to generate the two asm
offsets required for kvm (__SIE_PROG0C and __SIE_PROG20).

Acked-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/include/asm/kvm_host.h
arch/s390/include/asm/kvm_host_types.h [new file with mode: 0644]
arch/s390/kernel/asm-offsets.c