2021-07-07 13:53:23 +03:00
|
|
|
|
|
|
|
s390x_ss.add(when: 'CONFIG_KVM', if_true: files(
|
|
|
|
'kvm.c'
|
2022-10-17 11:38:18 +03:00
|
|
|
), if_false: files(
|
|
|
|
'stubs.c'
|
2021-07-07 13:53:23 +03:00
|
|
|
))
|
|
|
|
|
|
|
|
# Newer kernels on s390 check for an S390_PGSTE program header and
|
|
|
|
# enable the pgste page table extensions in that case. This makes
|
|
|
|
# the vm.allocate_pgste sysctl unnecessary. We enable this program
|
|
|
|
# header if
|
|
|
|
# - we build on s390x
|
|
|
|
# - we build the system emulation for s390x (qemu-system-s390x)
|
|
|
|
# - KVM is enabled
|
|
|
|
# - the linker supports --s390-pgste
|
|
|
|
if host_machine.cpu_family() == 's390x' and cc.has_link_argument('-Wl,--s390-pgste')
|
|
|
|
s390x_softmmu_ss.add(when: 'CONFIG_KVM',
|
|
|
|
if_true: declare_dependency(link_args: ['-Wl,--s390-pgste']))
|
|
|
|
endif
|