| 1 | i386_kvm_ss = ss.source_set() |
| 2 | |
| 3 | i386_kvm_ss.add(files( |
| 4 | 'kvm.c', |
| 5 | 'kvm-cpu.c', |
| 6 | 'vmsr_energy.c', |
| 7 | )) |
| 8 | |
| 9 | i386_kvm_ss.add(when: 'CONFIG_XEN_EMU', if_true: files('xen-emu.c')) |
| 10 | |
| 11 | i386_kvm_ss.add(when: 'CONFIG_TDX', if_true: files('tdx.c', 'tdx-quote-generator.c'), if_false: files('tdx-stub.c')) |
| 12 | |
| 13 | i386_system_ss.add(when: 'CONFIG_HYPERV', if_true: files('hyperv.c'), if_false: files('hyperv-stub.c')) |
| 14 | |
| 15 | i386_system_ss.add_all(when: 'CONFIG_KVM', if_true: i386_kvm_ss) |