The MSHV accelerator requires a x86 decoder/emulator in userland to emulate MMIO instructions. This change contains the implementations for the generalized i386 instruction decoder/emulator. Signed-off-by: Magnus Kulke <magnuskulke@linux.microsoft.com> Link: https://lore.kernel.org/r/20250916164847.77883-4-magnuskulke@linux.microsoft.com Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
42 lines
1.1 KiB
Meson
42 lines
1.1 KiB
Meson
i386_ss = ss.source_set()
|
|
i386_ss.add(files(
|
|
'cpu.c',
|
|
'gdbstub.c',
|
|
'helper.c',
|
|
'xsave_helper.c',
|
|
'cpu-dump.c',
|
|
))
|
|
i386_ss.add(when: 'CONFIG_SEV', if_true: files('host-cpu.c', 'confidential-guest.c'))
|
|
|
|
# x86 cpu type
|
|
i386_ss.add(when: 'CONFIG_KVM', if_true: files('host-cpu.c'))
|
|
i386_ss.add(when: 'CONFIG_HVF', if_true: files('host-cpu.c'))
|
|
i386_ss.add(when: 'CONFIG_WHPX', if_true: files('host-cpu.c'))
|
|
i386_ss.add(when: 'CONFIG_NVMM', if_true: files('host-cpu.c'))
|
|
i386_ss.add(when: 'CONFIG_MSHV', if_true: files('host-cpu.c'))
|
|
|
|
i386_system_ss = ss.source_set()
|
|
i386_system_ss.add(files(
|
|
'arch_dump.c',
|
|
'arch_memory_mapping.c',
|
|
'machine.c',
|
|
'monitor.c',
|
|
'cpu-apic.c',
|
|
'cpu-system.c',
|
|
))
|
|
i386_system_ss.add(when: 'CONFIG_SEV', if_true: files('sev.c'),
|
|
if_false: files('sev-system-stub.c'))
|
|
|
|
i386_user_ss = ss.source_set()
|
|
|
|
subdir('kvm')
|
|
subdir('whpx')
|
|
subdir('nvmm')
|
|
subdir('hvf')
|
|
subdir('tcg')
|
|
subdir('emulate')
|
|
subdir('mshv')
|
|
|
|
target_arch += {'i386': i386_ss}
|
|
target_system_arch += {'i386': i386_system_ss}
|
|
target_user_arch += {'i386': i386_user_ss}
|