xref: /openbmc/qemu/meson_options.txt (revision b21e2380)
1# These options do not correspond to a --enable/--disable-* option
2# on the configure script command line.  If you add more, list them in
3# scripts/meson-buildoptions.py's SKIP_OPTIONS constant too.
4
5option('qemu_suffix', type : 'string', value: 'qemu',
6       description: 'Suffix for QEMU data/modules/config directories (can be empty)')
7option('docdir', type : 'string', value : 'doc',
8       description: 'Base directory for documentation installation (can be empty)')
9option('qemu_firmwarepath', type : 'string', value : '',
10       description: 'search PATH for firmware files')
11option('smbd', type : 'string', value : '',
12       description: 'Path to smbd for slirp networking')
13option('sphinx_build', type : 'string', value : '',
14       description: 'Use specified sphinx-build [$sphinx_build] for building document (default to be empty)')
15option('iasl', type : 'string', value : '',
16       description: 'Path to ACPI disassembler')
17option('default_devices', type : 'boolean', value : true,
18       description: 'Include a default selection of devices in emulators')
19option('audio_drv_list', type: 'array', value: ['default'],
20       choices: ['alsa', 'coreaudio', 'default', 'dsound', 'jack', 'oss', 'pa', 'sdl'],
21       description: 'Set audio driver list')
22option('fuzzing_engine', type : 'string', value : '',
23       description: 'fuzzing engine library for OSS-Fuzz')
24option('trace_file', type: 'string', value: 'trace',
25       description: 'Trace file prefix for simple backend')
26
27# Everything else can be set via --enable/--disable-* option
28# on the configure script command line.  After adding an option
29# here make sure to run "make update-buildoptions".
30
31option('docs', type : 'feature', value : 'auto',
32       description: 'Documentations build support')
33option('fuzzing', type : 'boolean', value: false,
34       description: 'build fuzzing targets')
35option('gettext', type : 'feature', value : 'auto',
36       description: 'Localization of the GTK+ user interface')
37option('install_blobs', type : 'boolean', value : true,
38       description: 'install provided firmware blobs')
39option('sparse', type : 'feature', value : 'auto',
40       description: 'sparse checker')
41option('guest_agent', type : 'feature', value : 'auto',
42       description: 'Build QEMU Guest Agent')
43option('guest_agent_msi', type : 'feature', value : 'auto',
44       description: 'Build MSI package for the QEMU Guest Agent')
45option('tools', type : 'feature', value : 'auto',
46       description: 'build support utilities that come with QEMU')
47option('qga_vss', type : 'feature', value: 'auto',
48       description: 'build QGA VSS support (broken with MinGW)')
49
50option('malloc_trim', type : 'feature', value : 'auto',
51       description: 'enable libc malloc_trim() for memory optimization')
52option('malloc', type : 'combo', choices : ['system', 'tcmalloc', 'jemalloc'],
53       value: 'system', description: 'choose memory allocator to use')
54
55option('kvm', type: 'feature', value: 'auto',
56       description: 'KVM acceleration support')
57option('hax', type: 'feature', value: 'auto',
58       description: 'HAX acceleration support')
59option('whpx', type: 'feature', value: 'auto',
60       description: 'WHPX acceleration support')
61option('hvf', type: 'feature', value: 'auto',
62       description: 'HVF acceleration support')
63option('nvmm', type: 'feature', value: 'auto',
64       description: 'NVMM acceleration support')
65option('xen', type: 'feature', value: 'auto',
66       description: 'Xen backend support')
67option('xen_pci_passthrough', type: 'feature', value: 'auto',
68       description: 'Xen PCI passthrough support')
69option('tcg', type: 'feature', value: 'auto',
70       description: 'TCG support')
71option('tcg_interpreter', type: 'boolean', value: false,
72       description: 'TCG with bytecode interpreter (slow)')
73option('cfi', type: 'boolean', value: 'false',
74       description: 'Control-Flow Integrity (CFI)')
75option('cfi_debug', type: 'boolean', value: 'false',
76       description: 'Verbose errors in case of CFI violation')
77option('multiprocess', type: 'feature', value: 'auto',
78       description: 'Out of process device emulation support')
79option('dbus_display', type: 'feature', value: 'auto',
80       description: '-display dbus support')
81option('tpm', type : 'feature', value : 'auto',
82       description: 'TPM support')
83
84# Do not enable it by default even for Mingw32, because it doesn't
85# work on Wine.
86option('membarrier', type: 'feature', value: 'disabled',
87       description: 'membarrier system call (for Linux 4.14+ or Windows')
88
89option('avx2', type: 'feature', value: 'auto',
90       description: 'AVX2 optimizations')
91option('avx512f', type: 'feature', value: 'disabled',
92       description: 'AVX512F optimizations')
93
94option('attr', type : 'feature', value : 'auto',
95       description: 'attr/xattr support')
96option('auth_pam', type : 'feature', value : 'auto',
97       description: 'PAM access control')
98option('brlapi', type : 'feature', value : 'auto',
99       description: 'brlapi character device driver')
100option('bzip2', type : 'feature', value : 'auto',
101       description: 'bzip2 support for DMG images')
102option('cap_ng', type : 'feature', value : 'auto',
103       description: 'cap_ng support')
104option('bpf', type : 'feature', value : 'auto',
105        description: 'eBPF support')
106option('cocoa', type : 'feature', value : 'auto',
107       description: 'Cocoa user interface (macOS only)')
108option('curl', type : 'feature', value : 'auto',
109       description: 'CURL block device driver')
110option('glusterfs', type : 'feature', value : 'auto',
111       description: 'Glusterfs block device driver')
112option('libiscsi', type : 'feature', value : 'auto',
113       description: 'libiscsi userspace initiator')
114option('libnfs', type : 'feature', value : 'auto',
115       description: 'libnfs block device driver')
116option('mpath', type : 'feature', value : 'auto',
117       description: 'Multipath persistent reservation passthrough')
118option('numa', type : 'feature', value : 'auto',
119       description: 'libnuma support')
120option('iconv', type : 'feature', value : 'auto',
121       description: 'Font glyph conversion support')
122option('curses', type : 'feature', value : 'auto',
123       description: 'curses UI')
124option('gnutls', type : 'feature', value : 'auto',
125       description: 'GNUTLS cryptography support')
126option('nettle', type : 'feature', value : 'auto',
127       description: 'nettle cryptography support')
128option('gcrypt', type : 'feature', value : 'auto',
129       description: 'libgcrypt cryptography support')
130option('crypto_afalg', type : 'feature', value : 'disabled',
131       description: 'Linux AF_ALG crypto backend driver')
132option('libdaxctl', type : 'feature', value : 'auto',
133       description: 'libdaxctl support')
134option('libpmem', type : 'feature', value : 'auto',
135       description: 'libpmem support')
136option('libssh', type : 'feature', value : 'auto',
137       description: 'ssh block device support')
138option('libudev', type : 'feature', value : 'auto',
139       description: 'Use libudev to enumerate host devices')
140option('libusb', type : 'feature', value : 'auto',
141       description: 'libusb support for USB passthrough')
142option('linux_aio', type : 'feature', value : 'auto',
143       description: 'Linux AIO support')
144option('linux_io_uring', type : 'feature', value : 'auto',
145       description: 'Linux io_uring support')
146option('lzfse', type : 'feature', value : 'auto',
147       description: 'lzfse support for DMG images')
148option('lzo', type : 'feature', value : 'auto',
149       description: 'lzo compression support')
150option('rbd', type : 'feature', value : 'auto',
151       description: 'Ceph block device driver')
152option('gtk', type : 'feature', value : 'auto',
153       description: 'GTK+ user interface')
154option('sdl', type : 'feature', value : 'auto',
155       description: 'SDL user interface')
156option('sdl_image', type : 'feature', value : 'auto',
157       description: 'SDL Image support for icons')
158option('seccomp', type : 'feature', value : 'auto',
159       description: 'seccomp support')
160option('smartcard', type : 'feature', value : 'auto',
161       description: 'CA smartcard emulation support')
162option('snappy', type : 'feature', value : 'auto',
163       description: 'snappy compression support')
164option('spice', type : 'feature', value : 'auto',
165       description: 'Spice server support')
166option('spice_protocol', type : 'feature', value : 'auto',
167       description: 'Spice protocol support')
168option('u2f', type : 'feature', value : 'auto',
169       description: 'U2F emulation support')
170option('usb_redir', type : 'feature', value : 'auto',
171       description: 'libusbredir support')
172option('l2tpv3', type : 'feature', value : 'auto',
173       description: 'l2tpv3 network backend support')
174option('netmap', type : 'feature', value : 'auto',
175       description: 'netmap network backend support')
176option('vde', type : 'feature', value : 'auto',
177       description: 'vde network backend support')
178option('virglrenderer', type : 'feature', value : 'auto',
179       description: 'virgl rendering support')
180option('vnc', type : 'feature', value : 'auto',
181       description: 'VNC server')
182option('vnc_jpeg', type : 'feature', value : 'auto',
183       description: 'JPEG lossy compression for VNC server')
184option('vnc_png', type : 'feature', value : 'auto',
185       description: 'PNG compression for VNC server')
186option('vnc_sasl', type : 'feature', value : 'auto',
187       description: 'SASL authentication for VNC server')
188option('vte', type : 'feature', value : 'auto',
189       description: 'vte support for the gtk UI')
190option('xkbcommon', type : 'feature', value : 'auto',
191       description: 'xkbcommon support')
192option('zstd', type : 'feature', value : 'auto',
193       description: 'zstd compression support')
194option('fuse', type: 'feature', value: 'auto',
195       description: 'FUSE block device export')
196option('fuse_lseek', type : 'feature', value : 'auto',
197       description: 'SEEK_HOLE/SEEK_DATA support for FUSE exports')
198
199option('trace_backends', type: 'array', value: ['log'],
200       choices: ['dtrace', 'ftrace', 'log', 'nop', 'simple', 'syslog', 'ust'],
201       description: 'Set available tracing backends')
202
203option('alsa', type: 'feature', value: 'auto',
204       description: 'ALSA sound support')
205option('coreaudio', type: 'feature', value: 'auto',
206       description: 'CoreAudio sound support')
207option('dsound', type: 'feature', value: 'auto',
208       description: 'DirectSound sound support')
209option('jack', type: 'feature', value: 'auto',
210       description: 'JACK sound support')
211option('oss', type: 'feature', value: 'auto',
212       description: 'OSS sound support')
213option('pa', type: 'feature', value: 'auto',
214       description: 'PulseAudio sound support')
215
216option('vhost_user_blk_server', type: 'feature', value: 'auto',
217       description: 'build vhost-user-blk server')
218option('virtfs', type: 'feature', value: 'auto',
219       description: 'virtio-9p support')
220option('virtiofsd', type: 'feature', value: 'auto',
221       description: 'build virtiofs daemon (virtiofsd)')
222
223option('capstone', type: 'combo', value: 'auto',
224       choices: ['disabled', 'enabled', 'auto', 'system', 'internal'],
225       description: 'Whether and how to find the capstone library')
226option('slirp', type: 'combo', value: 'auto',
227       choices: ['disabled', 'enabled', 'auto', 'system', 'internal'],
228       description: 'Whether and how to find the slirp library')
229option('fdt', type: 'combo', value: 'auto',
230       choices: ['disabled', 'enabled', 'auto', 'system', 'internal'],
231       description: 'Whether and how to find the libfdt library')
232
233option('selinux', type: 'feature', value: 'auto',
234       description: 'SELinux support in qemu-nbd')
235option('live_block_migration', type: 'feature', value: 'auto',
236       description: 'block migration in the main migration stream')
237option('replication', type: 'feature', value: 'auto',
238       description: 'replication support')
239option('bochs', type: 'feature', value: 'auto',
240       description: 'bochs image format support')
241option('cloop', type: 'feature', value: 'auto',
242       description: 'cloop image format support')
243option('dmg', type: 'feature', value: 'auto',
244       description: 'dmg image format support')
245option('qcow1', type: 'feature', value: 'auto',
246       description: 'qcow1 image format support')
247option('vdi', type: 'feature', value: 'auto',
248       description: 'vdi image format support')
249option('vvfat', type: 'feature', value: 'auto',
250       description: 'vvfat image format support')
251option('qed', type: 'feature', value: 'auto',
252       description: 'qed image format support')
253option('parallels', type: 'feature', value: 'auto',
254       description: 'parallels image format support')
255option('block_drv_whitelist_in_tools', type: 'boolean', value: false,
256       description: 'use block whitelist also in tools instead of only QEMU')
257option('rng_none', type: 'boolean', value: false,
258       description: 'dummy RNG, avoid using /dev/(u)random and getrandom()')
259option('coroutine_pool', type: 'boolean', value: true,
260       description: 'coroutine freelist (better performance)')
261option('debug_mutex', type: 'boolean', value: false,
262       description: 'mutex debugging support')
263option('debug_stack_usage', type: 'boolean', value: false,
264       description: 'measure coroutine stack usage')
265option('qom_cast_debug', type: 'boolean', value: false,
266       description: 'cast debugging support')
267option('gprof', type: 'boolean', value: false,
268       description: 'QEMU profiling with gprof')
269option('profiler', type: 'boolean', value: false,
270       description: 'profiler support')
271option('slirp_smbd', type : 'feature', value : 'auto',
272       description: 'use smbd (at path --smbd=*) in slirp networking')
273