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