]> git.proxmox.com Git - mirror_qemu.git/blame - target/s390x/kvm/meson.build
hw/s390x: Move KVM specific PV from hw/ to target/s390x/kvm/
[mirror_qemu.git] / target / s390x / kvm / meson.build
CommitLineData
67043607
CYC
1
2s390x_ss.add(when: 'CONFIG_KVM', if_true: files(
f5f9c6ea 3 'pv.c',
67043607 4 'kvm.c'
ad3b2e69
JF
5), if_false: files(
6 'stubs.c'
67043607
CYC
7))
8
9# Newer kernels on s390 check for an S390_PGSTE program header and
10# enable the pgste page table extensions in that case. This makes
11# the vm.allocate_pgste sysctl unnecessary. We enable this program
12# header if
13# - we build on s390x
14# - we build the system emulation for s390x (qemu-system-s390x)
15# - KVM is enabled
16# - the linker supports --s390-pgste
17if host_machine.cpu_family() == 's390x' and cc.has_link_argument('-Wl,--s390-pgste')
de6cd759 18 s390x_system_ss.add(when: 'CONFIG_KVM',
67043607
CYC
19 if_true: declare_dependency(link_args: ['-Wl,--s390-pgste']))
20endif