meson_options.txt 20 KB

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