xref: /openbmc/qemu/meson_options.txt (revision 6c1e3906)
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 : 'share/doc',
8       description: 'Base directory for documentation installation (can be empty)')
9option('qemu_firmwarepath', type : 'array', value : ['share/qemu-firmware'],
10       description: 'search PATH for firmware files')
11option('pkgversion', type : 'string', value : '',
12       description: 'use specified string as sub-version of the package')
13option('smbd', type : 'string', value : '',
14       description: 'Path to smbd for slirp networking')
15option('sphinx_build', type : 'string', value : 'sphinx-build',
16       description: 'Use specified sphinx-build for building document')
17option('iasl', type : 'string', value : '',
18       description: 'Path to ACPI disassembler')
19option('tls_priority', type : 'string', value : 'NORMAL',
20       description: 'Default TLS protocol/cipher priority string')
21option('default_devices', type : 'boolean', value : true,
22       description: 'Include a default selection of devices in emulators')
23option('audio_drv_list', type: 'array', value: ['default'],
24       choices: ['alsa', 'coreaudio', 'default', 'dsound', 'jack', 'oss', 'pa', 'pipewire', 'sdl', 'sndio'],
25       description: 'Set audio driver list')
26option('block_drv_rw_whitelist', type : 'string', value : '',
27       description: 'set block driver read-write whitelist (by default affects only QEMU, not tools like qemu-img)')
28option('block_drv_ro_whitelist', type : 'string', value : '',
29       description: 'set block driver read-only whitelist (by default affects only QEMU, not tools like qemu-img)')
30option('interp_prefix', type : 'string', value : '/usr/gnemul/qemu-%M',
31       description: 'where to find shared libraries etc., use %M for cpu name')
32option('fuzzing_engine', type : 'string', value : '',
33       description: 'fuzzing engine library for OSS-Fuzz')
34option('trace_file', type: 'string', value: 'trace',
35       description: 'Trace file prefix for simple backend')
36
37# Everything else can be set via --enable/--disable-* option
38# on the configure script command line.  After adding an option
39# here make sure to run "make update-buildoptions".
40
41option('docs', type : 'feature', value : 'auto',
42       description: 'Documentations build support')
43option('fuzzing', type : 'boolean', value: false,
44       description: 'build fuzzing targets')
45option('gettext', type : 'feature', value : 'auto',
46       description: 'Localization of the GTK+ user interface')
47option('module_upgrades', type : 'boolean', value : false,
48       description: 'try to load modules from alternate paths for upgrades')
49option('install_blobs', type : 'boolean', value : true,
50       description: 'install provided firmware blobs')
51option('sparse', type : 'feature', value : 'auto',
52       description: 'sparse checker')
53option('guest_agent', type : 'feature', value : 'auto',
54       description: 'Build QEMU Guest Agent')
55option('guest_agent_msi', type : 'feature', value : 'auto',
56       description: 'Build MSI package for the QEMU Guest Agent')
57option('tools', type : 'feature', value : 'auto',
58       description: 'build support utilities that come with QEMU')
59option('qga_vss', type : 'feature', value: 'auto',
60       description: 'build QGA VSS support (broken with MinGW)')
61
62option('malloc_trim', type : 'feature', value : 'auto',
63       description: 'enable libc malloc_trim() for memory optimization')
64option('malloc', type : 'combo', choices : ['system', 'tcmalloc', 'jemalloc'],
65       value: 'system', description: 'choose memory allocator to use')
66
67option('kvm', type: 'feature', value: 'auto',
68       description: 'KVM acceleration support')
69option('hax', type: 'feature', value: 'auto',
70       description: 'HAX acceleration support')
71option('whpx', type: 'feature', value: 'auto',
72       description: 'WHPX acceleration support')
73option('hvf', type: 'feature', value: 'auto',
74       description: 'HVF acceleration support')
75option('nvmm', type: 'feature', value: 'auto',
76       description: 'NVMM acceleration support')
77option('xen', type: 'feature', value: 'auto',
78       description: 'Xen backend support')
79option('xen_pci_passthrough', type: 'feature', value: 'auto',
80       description: 'Xen PCI passthrough support')
81option('tcg', type: 'feature', value: 'enabled',
82       description: 'TCG support')
83option('tcg_interpreter', type: 'boolean', value: false,
84       description: 'TCG with bytecode interpreter (slow)')
85option('cfi', type: 'boolean', value: false,
86       description: 'Control-Flow Integrity (CFI)')
87option('cfi_debug', type: 'boolean', value: false,
88       description: 'Verbose errors in case of CFI violation')
89option('multiprocess', type: 'feature', value: 'auto',
90       description: 'Out of process device emulation support')
91option('vfio_user_server', type: 'feature', value: 'disabled',
92       description: 'vfio-user server support')
93option('dbus_display', type: 'feature', value: 'auto',
94       description: '-display dbus support')
95option('tpm', type : 'feature', value : 'auto',
96       description: 'TPM support')
97
98# Do not enable it by default even for Mingw32, because it doesn't
99# work on Wine.
100option('membarrier', type: 'feature', value: 'disabled',
101       description: 'membarrier system call (for Linux 4.14+ or Windows')
102
103option('avx2', type: 'feature', value: 'auto',
104       description: 'AVX2 optimizations')
105option('avx512f', type: 'feature', value: 'disabled',
106       description: 'AVX512F optimizations')
107option('avx512bw', type: 'feature', value: 'auto',
108       description: 'AVX512BW optimizations')
109option('keyring', type: 'feature', value: 'auto',
110       description: 'Linux keyring support')
111
112option('attr', type : 'feature', value : 'auto',
113       description: 'attr/xattr support')
114option('auth_pam', type : 'feature', value : 'auto',
115       description: 'PAM access control')
116option('brlapi', type : 'feature', value : 'auto',
117       description: 'brlapi character device driver')
118option('bzip2', type : 'feature', value : 'auto',
119       description: 'bzip2 support for DMG images')
120option('cap_ng', type : 'feature', value : 'auto',
121       description: 'cap_ng support')
122option('blkio', type : 'feature', value : 'auto',
123       description: 'libblkio block device driver')
124option('bpf', type : 'feature', value : 'auto',
125        description: 'eBPF support')
126option('cocoa', type : 'feature', value : 'auto',
127       description: 'Cocoa user interface (macOS only)')
128option('curl', type : 'feature', value : 'auto',
129       description: 'CURL block device driver')
130option('gio', type : 'feature', value : 'auto',
131       description: 'use libgio for D-Bus support')
132option('glusterfs', type : 'feature', value : 'auto',
133       description: 'Glusterfs block device driver')
134option('libdw', type : 'feature', value : 'auto',
135       description: 'debuginfo support')
136option('libiscsi', type : 'feature', value : 'auto',
137       description: 'libiscsi userspace initiator')
138option('libnfs', type : 'feature', value : 'auto',
139       description: 'libnfs block device driver')
140option('mpath', type : 'feature', value : 'auto',
141       description: 'Multipath persistent reservation passthrough')
142option('numa', type : 'feature', value : 'auto',
143       description: 'libnuma support')
144option('iconv', type : 'feature', value : 'auto',
145       description: 'Font glyph conversion support')
146option('curses', type : 'feature', value : 'auto',
147       description: 'curses UI')
148option('gnutls', type : 'feature', value : 'auto',
149       description: 'GNUTLS cryptography support')
150option('nettle', type : 'feature', value : 'auto',
151       description: 'nettle cryptography support')
152option('gcrypt', type : 'feature', value : 'auto',
153       description: 'libgcrypt cryptography support')
154option('crypto_afalg', type : 'feature', value : 'disabled',
155       description: 'Linux AF_ALG crypto backend driver')
156option('libdaxctl', type : 'feature', value : 'auto',
157       description: 'libdaxctl support')
158option('libpmem', type : 'feature', value : 'auto',
159       description: 'libpmem support')
160option('libssh', type : 'feature', value : 'auto',
161       description: 'ssh block device support')
162option('libudev', type : 'feature', value : 'auto',
163       description: 'Use libudev to enumerate host devices')
164option('libusb', type : 'feature', value : 'auto',
165       description: 'libusb support for USB passthrough')
166option('linux_aio', type : 'feature', value : 'auto',
167       description: 'Linux AIO support')
168option('linux_io_uring', type : 'feature', value : 'auto',
169       description: 'Linux io_uring support')
170option('lzfse', type : 'feature', value : 'auto',
171       description: 'lzfse support for DMG images')
172option('lzo', type : 'feature', value : 'auto',
173       description: 'lzo compression support')
174option('rbd', type : 'feature', value : 'auto',
175       description: 'Ceph block device driver')
176option('opengl', type : 'feature', value : 'auto',
177       description: 'OpenGL support')
178option('rdma', type : 'feature', value : 'auto',
179       description: 'Enable RDMA-based migration')
180option('pvrdma', type : 'feature', value : 'auto',
181       description: 'Enable PVRDMA support')
182option('gtk', type : 'feature', value : 'auto',
183       description: 'GTK+ user interface')
184option('sdl', type : 'feature', value : 'auto',
185       description: 'SDL user interface')
186option('sdl_image', type : 'feature', value : 'auto',
187       description: 'SDL Image support for icons')
188option('seccomp', type : 'feature', value : 'auto',
189       description: 'seccomp support')
190option('smartcard', type : 'feature', value : 'auto',
191       description: 'CA smartcard emulation support')
192option('snappy', type : 'feature', value : 'auto',
193       description: 'snappy compression support')
194option('spice', type : 'feature', value : 'auto',
195       description: 'Spice server support')
196option('spice_protocol', type : 'feature', value : 'auto',
197       description: 'Spice protocol support')
198option('u2f', type : 'feature', value : 'auto',
199       description: 'U2F emulation support')
200option('canokey', type : 'feature', value : 'auto',
201       description: 'CanoKey support')
202option('usb_redir', type : 'feature', value : 'auto',
203       description: 'libusbredir support')
204option('l2tpv3', type : 'feature', value : 'auto',
205       description: 'l2tpv3 network backend support')
206option('netmap', type : 'feature', value : 'auto',
207       description: 'netmap network backend support')
208option('slirp', type: 'feature', value: 'auto',
209       description: 'libslirp user mode network backend support')
210option('vde', type : 'feature', value : 'auto',
211       description: 'vde network backend support')
212option('vmnet', type : 'feature', value : 'auto',
213       description: 'vmnet.framework network backend support')
214option('virglrenderer', type : 'feature', value : 'auto',
215       description: 'virgl rendering support')
216option('png', type : 'feature', value : 'auto',
217       description: 'PNG support with libpng')
218option('vnc', type : 'feature', value : 'auto',
219       description: 'VNC server')
220option('vnc_jpeg', type : 'feature', value : 'auto',
221       description: 'JPEG lossy compression for VNC server')
222option('vnc_sasl', type : 'feature', value : 'auto',
223       description: 'SASL authentication for VNC server')
224option('vte', type : 'feature', value : 'auto',
225       description: 'vte support for the gtk UI')
226
227# GTK Clipboard implementation is disabled by default, since it may cause hangs
228# of the guest VCPUs. See gitlab issue 1150:
229# https://gitlab.com/qemu-project/qemu/-/issues/1150
230
231option('gtk_clipboard', type: 'feature', value : 'disabled',
232       description: 'clipboard support for the gtk UI (EXPERIMENTAL, MAY HANG)')
233option('xkbcommon', type : 'feature', value : 'auto',
234       description: 'xkbcommon support')
235option('zstd', type : 'feature', value : 'auto',
236       description: 'zstd compression support')
237option('fuse', type: 'feature', value: 'auto',
238       description: 'FUSE block device export')
239option('fuse_lseek', type : 'feature', value : 'auto',
240       description: 'SEEK_HOLE/SEEK_DATA support for FUSE exports')
241
242option('trace_backends', type: 'array', value: ['log'],
243       choices: ['dtrace', 'ftrace', 'log', 'nop', 'simple', 'syslog', 'ust'],
244       description: 'Set available tracing backends')
245
246option('alsa', type: 'feature', value: 'auto',
247       description: 'ALSA sound support')
248option('coreaudio', type: 'feature', value: 'auto',
249       description: 'CoreAudio sound support')
250option('dsound', type: 'feature', value: 'auto',
251       description: 'DirectSound sound support')
252option('jack', type: 'feature', value: 'auto',
253       description: 'JACK sound support')
254option('oss', type: 'feature', value: 'auto',
255       description: 'OSS sound support')
256option('pa', type: 'feature', value: 'auto',
257       description: 'PulseAudio sound support')
258option('pipewire', type: 'feature', value: 'auto',
259       description: 'Pipewire sound support')
260option('sndio', type: 'feature', value: 'auto',
261       description: 'sndio sound support')
262
263option('vhost_kernel', type: 'feature', value: 'auto',
264       description: 'vhost kernel backend support')
265option('vhost_net', type: 'feature', value: 'auto',
266       description: 'vhost-net kernel acceleration support')
267option('vhost_user', type: 'feature', value: 'auto',
268       description: 'vhost-user backend support')
269option('vhost_crypto', type: 'feature', value: 'auto',
270       description: 'vhost-user crypto backend support')
271option('vhost_vdpa', type: 'feature', value: 'auto',
272       description: 'vhost-vdpa kernel backend support')
273option('vhost_user_blk_server', type: 'feature', value: 'auto',
274       description: 'build vhost-user-blk server')
275option('virtfs', type: 'feature', value: 'auto',
276       description: 'virtio-9p support')
277option('virtfs_proxy_helper', type: 'feature', value: 'auto',
278       description: 'virtio-9p proxy helper support')
279option('libvduse', type: 'feature', value: 'auto',
280       description: 'build VDUSE Library')
281option('vduse_blk_export', type: 'feature', value: 'auto',
282       description: 'VDUSE block export support')
283
284option('capstone', type: 'feature', value: 'auto',
285       description: 'Whether and how to find the capstone library')
286option('fdt', type: 'combo', value: 'auto',
287       choices: ['disabled', 'enabled', 'auto', 'system', 'internal'],
288       description: 'Whether and how to find the libfdt library')
289
290option('selinux', type: 'feature', value: 'auto',
291       description: 'SELinux support in qemu-nbd')
292option('live_block_migration', type: 'feature', value: 'auto',
293       description: 'block migration in the main migration stream')
294option('replication', type: 'feature', value: 'auto',
295       description: 'replication support')
296option('colo_proxy', type: 'feature', value: 'auto',
297       description: 'colo-proxy support')
298option('bochs', type: 'feature', value: 'auto',
299       description: 'bochs image format support')
300option('cloop', type: 'feature', value: 'auto',
301       description: 'cloop image format support')
302option('dmg', type: 'feature', value: 'auto',
303       description: 'dmg image format support')
304option('qcow1', type: 'feature', value: 'auto',
305       description: 'qcow1 image format support')
306option('vdi', type: 'feature', value: 'auto',
307       description: 'vdi image format support')
308option('vhdx', type: 'feature', value: 'auto',
309       description: 'vhdx image format support')
310option('vmdk', type: 'feature', value: 'auto',
311       description: 'vmdk image format support')
312option('vpc', type: 'feature', value: 'auto',
313       description: 'vpc image format support')
314option('vvfat', type: 'feature', value: 'auto',
315       description: 'vvfat image format support')
316option('qed', type: 'feature', value: 'auto',
317       description: 'qed image format support')
318option('parallels', type: 'feature', value: 'auto',
319       description: 'parallels image format support')
320option('block_drv_whitelist_in_tools', type: 'boolean', value: false,
321       description: 'use block whitelist also in tools instead of only QEMU')
322option('rng_none', type: 'boolean', value: false,
323       description: 'dummy RNG, avoid using /dev/(u)random and getrandom()')
324option('coroutine_pool', type: 'boolean', value: true,
325       description: 'coroutine freelist (better performance)')
326option('debug_graph_lock', type: 'boolean', value: false,
327       description: 'graph lock debugging support')
328option('debug_mutex', type: 'boolean', value: false,
329       description: 'mutex debugging support')
330option('debug_stack_usage', type: 'boolean', value: false,
331       description: 'measure coroutine stack usage')
332option('qom_cast_debug', type: 'boolean', value: true,
333       description: 'cast debugging support')
334option('gprof', type: 'boolean', value: false,
335       description: 'QEMU profiling with gprof',
336       deprecated: true)
337option('profiler', type: 'boolean', value: false,
338       description: 'profiler support')
339option('slirp_smbd', type : 'feature', value : 'auto',
340       description: 'use smbd (at path --smbd=*) in slirp networking')
341
342option('hexagon_idef_parser', type : 'boolean', value : true,
343       description: 'use idef-parser to automatically generate TCG code for the Hexagon frontend')
344