Ravenports generated: 07 Apr 2023 15:30
[ravenports.git] / bucket_A9 / qemu
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               qemu
4 VERSION=                7.2.1
5 KEYWORDS=               emulators
6 VARIANTS=               standard
7 SDESC[standard]=        Fast CPU emulator and virtualizer for x86 platform
8 HOMEPAGE=               https://www.qemu.org/
9 CONTACT=                nobody
10
11 DOWNLOAD_GROUPS=        main
12 SITES[main]=            https://download.qemu.org/
13 DISTFILE[1]=            qemu-7.2.1.tar.xz:main
14 DF_INDEX=               1
15 SPKGS[standard]=        complete
16                         primary
17                         docs
18                         nls
19                         man
20
21 OPTIONS_AVAILABLE=      none
22 OPTIONS_STANDARD=       none
23
24 BUILD_DEPENDS=          gnutls:dev:standard
25                         harfbuzz:dev:standard
26                         python-Sphinx:single:python_used
27                         python-sphinx-rtd-theme:single:python_used
28                         texi2html:primary:standard
29                         libepoxy:dev:standard
30                         snappy:dev:standard
31 BUILDRUN_DEPENDS=       cyrus-sasl:primary:standard
32                         gnutls:primary:standard
33                         libepoxy:primary:standard
34                         nettle:primary:standard
35                         snappy:primary:standard
36                         vde2:single:standard
37
38 USES=                   cpe gmake pkgconfig bison perl:build python:build
39                         jpeg png mesa ncurses makeinfo ninja curl fontconfig
40                         zstd lzo
41 GNOME_COMPONENTS=       gdkpixbuf gtk2 vte
42 SDL_COMPONENTS=         sdl2 image2
43 XORG_COMPONENTS=        x11 xext
44
45 LICENSE=                GPLv2:primary
46 LICENSE_TERMS=          primary:{{WRKSRC}}/LICENSE
47 LICENSE_FILE=           GPLv2:{{WRKSRC}}/COPYING
48 LICENSE_SCHEME=         solo
49
50 FPC_EQUIVALENT=         emulators/qemu
51
52 MUST_CONFIGURE=         yes
53 CONFIGURE_ARGS=         --disable-usb-redir
54                         --disable-stack-protector
55                         --disable-kvm
56                         --disable-xen
57                         --disable-vde
58                         --enable-docs
59                         --enable-nettle
60                         --enable-profiler
61                         --enable-curses
62                         --prefix={{PREFIX}}
63                         --cc={{CC}}
64                         --python={{PYTHON_CMD}}
65                         --localstatedir=/var
66
67 BUILD_WRKSRC=           {{WRKSRC}}/build
68 MAKE_ENV=               BSD_MAKE="{{MAKE}}"
69                         V=1
70
71 INSTALL_WRKSRC=         {{WRKSRC}}/build
72 PLIST_SUB=              JQUERY=3.6.0
73                         UNDERSCORE=1.13.1
74
75 CFLAGS=                 -I{{NCURSESBASE}}/include/ncursesw
76 VAR_OPSYS[freebsd]=     CONFIGURE_ARGS=--enable-netmap
77                         CONFIGURE_ARGS=--disable-linux-user
78                         CONFIGURE_ARGS=--disable-linux-aio
79 VAR_OPSYS[linux]=       CONFIGURE_ARGS=--disable-netmap
80                         CONFIGURE_ARGS=--disable-linux-user
81 VAR_OPSYS[dragonfly]=   CONFIGURE_ARGS=--disable-netmap
82                         CONFIGURE_ARGS=--disable-linux-user
83                         CONFIGURE_ARGS=--disable-linux-aio
84 VAR_OPSYS[midnightbsd]= CONFIGURE_ARGS=--enable-netmap
85                         CONFIGURE_ARGS=--disable-linux-user
86                         CONFIGURE_ARGS=--disable-linux-aio
87                         CONFIGURE_ARGS=--extra-ldflags=-lutil
88
89 post-patch:
90         # silence some include warnings
91         ${MKDIR} ${WRKSRC}/bsd-user/dragonfly
92         # support midnight
93         ${CP} -a ${WRKSRC}/bsd-user/freebsd ${WRKSRC}/bsd-user/midnightbsd
94
95 post-install:
96         ${INSTALL_SCRIPT} ${FILESDIR}/qemu-ifup.sample \
97                 ${STAGEDIR}${PREFIX}/etc
98         ${INSTALL_SCRIPT} ${FILESDIR}/qemu-ifdown.sample \
99                 ${STAGEDIR}${PREFIX}/etc
100         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/qemu-*
101         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/elf2dmp
102         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/share/qemu/palcode-clipper
103         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/share/qemu/hppa-firmware.img
104         (cd ${WRKSRC} && ${COPYTREE_SHARE} docs ${STAGEDIR}${STD_DOCDIR}/)
105         # remove sphinx leftovers
106         ${RM} -r ${STAGEDIR}${STD_DOCDIR}/docs/sphinx
107         # remove empty directories
108         ${RM} -r ${STAGEDIR}/var
109
110 pre-configure-dragonfly:
111         # On dragonfly, userland programs can't include <sys/disk.h>
112         ${REINPLACE_CMD} -e 's|sys/disk\.h|sys/skipdisk.h|' \
113                 ${WRKSRC}/meson.build
114
115 [FILE:782:descriptions/desc.primary]
116 QEMU is a fast processor emulator using dynamic translation to achieve
117 good emulation speed.  QEMU has two operating modes:
118
119  * Full system emulation. In this mode, QEMU emulates a full system (for
120    example a PC), including a processor and various peripherials.  It can
121    be used to launch different Operating Systems without rebooting the PC
122    or to debug system code.
123  * User mode emulation (Linux host only). In this mode, QEMU can launch
124    Linux processes compiled for one CPU on another CPU. It can be used to
125    launch the Wine Windows API emulator or to ease cross-compilation and
126    cross-debugging.
127
128 As QEMU requires no host kernel patches to run, it is safe and easy to use.
129
130 See also the preconfigured system images on http://oszoo.org/
131 Many live cd isos also work.
132
133
134 [FILE:96:distinfo]
135 8c85699acf9d7a43a5fe29a64cdd56370b0c2d1ad074baf7098a824d17aad73b    122400592 qemu-7.2.1.tar.xz
136
137
138 [FILE:2949:manifests/plist.primary]
139 @sample etc/qemu-ifdown.sample
140 @sample etc/qemu-ifup.sample
141 %%ONLY-FREEBSD%%bin/
142  qemu-arm
143  qemu-ga
144  qemu-i386
145  qemu-x86_64
146 %%ONLY-LINUX%%bin/
147  qemu-ga
148  qemu-pr-helper
149 %%ONLY-LINUX%%libexec/qemu-bridge-helper
150 %%ONLY-MIDNIGHTBSD%%bin/
151  qemu-arm
152  qemu-i386
153  qemu-x86_64
154 bin/
155  elf2dmp
156  qemu-edid
157  qemu-img
158  qemu-io
159  qemu-nbd
160  qemu-storage-daemon
161  qemu-system-aarch64
162  qemu-system-alpha
163  qemu-system-arm
164  qemu-system-avr
165  qemu-system-cris
166  qemu-system-hppa
167  qemu-system-i386
168  qemu-system-loongarch64
169  qemu-system-m68k
170  qemu-system-microblaze
171  qemu-system-microblazeel
172  qemu-system-mips
173  qemu-system-mips64
174  qemu-system-mips64el
175  qemu-system-mipsel
176  qemu-system-nios2
177  qemu-system-or1k
178  qemu-system-ppc
179  qemu-system-ppc64
180  qemu-system-riscv32
181  qemu-system-riscv64
182  qemu-system-rx
183  qemu-system-s390x
184  qemu-system-sh4
185  qemu-system-sh4eb
186  qemu-system-sparc
187  qemu-system-sparc64
188  qemu-system-tricore
189  qemu-system-x86_64
190  qemu-system-xtensa
191  qemu-system-xtensaeb
192 include/qemu-plugin.h
193 share/applications/qemu.desktop
194 share/icons/hicolor/128x128/apps/qemu.png
195 share/icons/hicolor/16x16/apps/qemu.png
196 share/icons/hicolor/24x24/apps/qemu.png
197 share/icons/hicolor/256x256/apps/qemu.png
198 share/icons/hicolor/32x32/apps/
199  qemu.bmp
200  qemu.png
201 share/icons/hicolor/48x48/apps/qemu.png
202 share/icons/hicolor/512x512/apps/qemu.png
203 share/icons/hicolor/64x64/apps/qemu.png
204 share/icons/hicolor/scalable/apps/qemu.svg
205 share/qemu/
206  QEMU,cgthree.bin
207  QEMU,tcx.bin
208  bamboo.dtb
209  bios-256k.bin
210  bios-microvm.bin
211  bios.bin
212  canyonlands.dtb
213  edk2-aarch64-code.fd
214  edk2-arm-code.fd
215  edk2-arm-vars.fd
216  edk2-i386-code.fd
217  edk2-i386-secure-code.fd
218  edk2-i386-vars.fd
219  edk2-licenses.txt
220  edk2-x86_64-code.fd
221  edk2-x86_64-secure-code.fd
222  efi-e1000.rom
223  efi-e1000e.rom
224  efi-eepro100.rom
225  efi-ne2k_pci.rom
226  efi-pcnet.rom
227  efi-rtl8139.rom
228  efi-virtio.rom
229  efi-vmxnet3.rom
230  hppa-firmware.img
231  kvmvapic.bin
232  linuxboot.bin
233  linuxboot_dma.bin
234  multiboot.bin
235  multiboot_dma.bin
236  npcm7xx_bootrom.bin
237  openbios-ppc
238  openbios-sparc32
239  openbios-sparc64
240  opensbi-riscv32-generic-fw_dynamic.bin
241  opensbi-riscv64-generic-fw_dynamic.bin
242  palcode-clipper
243  petalogix-ml605.dtb
244  petalogix-s3adsp1800.dtb
245  pvh.bin
246  pxe-e1000.rom
247  pxe-eepro100.rom
248  pxe-ne2k_pci.rom
249  pxe-pcnet.rom
250  pxe-rtl8139.rom
251  pxe-virtio.rom
252  qboot.rom
253  qemu-nsis.bmp
254  qemu_vga.ndrv
255  s390-ccw.img
256  s390-netboot.img
257  sgabios.bin
258  skiboot.lid
259  slof.bin
260  trace-events-all
261  u-boot-sam460-20100605.bin
262  u-boot.e500
263  vgabios-ati.bin
264  vgabios-bochs-display.bin
265  vgabios-cirrus.bin
266  vgabios-qxl.bin
267  vgabios-ramfb.bin
268  vgabios-stdvga.bin
269  vgabios-virtio.bin
270  vgabios-vmware.bin
271  vgabios.bin
272  vof-nvram.bin
273  vof.bin
274 share/qemu/firmware/
275  50-edk2-i386-secure.json
276  50-edk2-x86_64-secure.json
277  60-edk2-aarch64.json
278  60-edk2-arm.json
279  60-edk2-i386.json
280  60-edk2-x86_64.json
281 share/qemu/keymaps/
282  ar
283  bepo
284  cz
285  da
286  de
287  de-ch
288  en-gb
289  en-us
290  es
291  et
292  fi
293  fo
294  fr
295  fr-be
296  fr-ca
297  fr-ch
298  hr
299  hu
300  is
301  it
302  ja
303  lt
304  lv
305  mk
306  nl
307  no
308  pl
309  pt
310  pt-br
311  ru
312  sl
313  sv
314  th
315  tr
316
317
318 [FILE:10336:manifests/plist.docs]
319 share/doc/qemu/
320  .buildinfo
321  dbus-dbusindex.html
322  genindex.html
323  index.html
324  objects.inv
325  search.html
326  searchindex.js
327 share/doc/qemu/_static/
328  basic.css
329  custom.js
330  doctools.js
331  documentation_options.js
332  file.png
333  language_data.js
334  minus.png
335  plus.png
336  pygments.css
337  qemu_128x128.png
338  qemu_32x32.png
339  searchtools.js
340  sphinx_highlight.js
341  theme_overrides.css
342 share/doc/qemu/_static/css/
343  badge_only.css
344  theme.css
345 share/doc/qemu/_static/css/fonts/
346  Roboto-Slab-Bold.woff
347  Roboto-Slab-Bold.woff2
348  Roboto-Slab-Regular.woff
349  Roboto-Slab-Regular.woff2
350  fontawesome-webfont.eot
351  fontawesome-webfont.svg
352  fontawesome-webfont.ttf
353  fontawesome-webfont.woff
354  fontawesome-webfont.woff2
355  lato-bold-italic.woff
356  lato-bold-italic.woff2
357  lato-bold.woff
358  lato-bold.woff2
359  lato-normal-italic.woff
360  lato-normal-italic.woff2
361  lato-normal.woff
362  lato-normal.woff2
363 share/doc/qemu/_static/js/
364  badge_only.js
365  html5shiv-printshiv.min.js
366  html5shiv.min.js
367  theme.js
368 share/doc/qemu/about/
369  build-platforms.html
370  deprecated.html
371  index.html
372  license.html
373  removed-features.html
374 share/doc/qemu/devel/
375  acpi-bits.html
376  atomics.html
377  bitops.html
378  block-coroutine-wrapper.html
379  build-system.html
380  ci.html
381  clocks.html
382  code-of-conduct.html
383  conflict-resolution.html
384  control-flow-integrity.html
385  decodetree.html
386  ebpf_rss.html
387  fuzzing.html
388  index-api.html
389  index-build.html
390  index-internals.html
391  index-process.html
392  index-tcg.html
393  index.html
394  kconfig.html
395  loads-stores.html
396  maintainers.html
397  memory.html
398  migration.html
399  modules.html
400  multi-process.html
401  multi-thread-tcg.html
402  qapi-code-gen.html
403  qgraph.html
404  qom.html
405  qtest.html
406  replay.html
407  reset.html
408  s390-dasd-ipl.html
409  secure-coding-practices.html
410  stable-process.html
411  style.html
412  submitting-a-patch.html
413  submitting-a-pull-request.html
414  tcg-icount.html
415  tcg-plugins.html
416  tcg.html
417  testing.html
418  tracing.html
419  trivial-patches.html
420  ui.html
421  vfio-migration.html
422  virtio-backends.html
423  writing-monitor-commands.html
424 share/doc/qemu/docs/
425  COLO-FT.txt
426  block-replication.txt
427  bypass-iommu.txt
428  colo-proxy.txt
429  conf.py
430  defs.rst.inc
431  igd-assign.txt
432  image-fuzzer.txt
433  index.rst
434  memory-hotplug.txt
435  meson.build
436  multi-thread-compression.txt
437  multiseat.txt
438  nvdimm.txt
439  pci_expander_bridge.txt
440  pcie.txt
441  pcie_pci_bridge.txt
442  pcie_sriov.txt
443  pvrdma.txt
444  qcow2-cache.txt
445  qdev-device-use.txt
446  qemu-option-trace.rst.inc
447  qemupciserial.inf
448  rdma.txt
449  spice-port-fqdn.txt
450  throttle.txt
451  u2f.txt
452  xbzrle.txt
453  xen-save-devices-state.txt
454 share/doc/qemu/docs/_templates/footer.html
455 share/doc/qemu/docs/about/
456  build-platforms.rst
457  deprecated.rst
458  index.rst
459  license.rst
460  removed-features.rst
461 share/doc/qemu/docs/config/
462  ich9-ehci-uhci.cfg
463  mach-virt-graphical.cfg
464  mach-virt-serial.cfg
465  q35-emulated.cfg
466  q35-virtio-graphical.cfg
467  q35-virtio-serial.cfg
468 share/doc/qemu/docs/devel/
469  acpi-bits.rst
470  atomics.rst
471  bitops.rst
472  blkdebug.txt
473  blkverify.txt
474  block-coroutine-wrapper.rst
475  build-system.rst
476  ci-definitions.rst.inc
477  ci-jobs.rst.inc
478  ci-runners.rst.inc
479  ci.rst
480  clocks.rst
481  code-of-conduct.rst
482  conflict-resolution.rst
483  control-flow-integrity.rst
484  decodetree.rst
485  ebpf_rss.rst
486  fuzzing.rst
487  index-api.rst
488  index-build.rst
489  index-internals.rst
490  index-process.rst
491  index-tcg.rst
492  index.rst
493  kconfig.rst
494  loads-stores.rst
495  lockcnt.txt
496  maintainers.rst
497  memory.rst
498  migration.rst
499  modules.rst
500  multi-process.rst
501  multi-thread-tcg.rst
502  multiple-iothreads.txt
503  qapi-code-gen.rst
504  qgraph.rst
505  qom.rst
506  qtest.rst
507  rcu.txt
508  replay.rst
509  reset.rst
510  s390-dasd-ipl.rst
511  secure-coding-practices.rst
512  stable-process.rst
513  style.rst
514  submitting-a-patch.rst
515  submitting-a-pull-request.rst
516  tcg-icount.rst
517  tcg-plugins.rst
518  tcg.rst
519  testing.rst
520  tracing.rst
521  trivial-patches.rst
522  ui.rst
523  vfio-migration.rst
524  virtio-backends.rst
525  virtio-migration.txt
526  writing-monitor-commands.rst
527 share/doc/qemu/docs/interop/
528  barrier.rst
529  bitmaps.rst
530  dbus-display.rst
531  dbus-vmstate.rst
532  dbus.rst
533  firmware.json
534  index.rst
535  live-block-operations.rst
536  nbd.txt
537  parallels.txt
538  pr-helper.rst
539  prl-xml.txt
540  qcow2.txt
541  qed_spec.txt
542  qemu-ga-ref.rst
543  qemu-ga.rst
544  qemu-qmp-ref.rst
545  qemu-storage-daemon-qmp-ref.rst
546  qmp-intro.txt
547  qmp-spec.txt
548  vhost-user-gpu.rst
549  vhost-user.json
550  vhost-user.rst
551  vhost-vdpa.rst
552  virtio-balloon-stats.rst
553  vnc-ledstate-Pseudo-encoding.txt
554 share/doc/qemu/docs/specs/
555  acpi_cpu_hotplug.rst
556  acpi_erst.rst
557  acpi_hest_ghes.rst
558  acpi_hw_reduced_hotplug.rst
559  acpi_mem_hotplug.rst
560  acpi_nvdimm.rst
561  acpi_pci_hotplug.rst
562  edu.txt
563  fw_cfg.rst
564  index.rst
565  ivshmem-spec.txt
566  pci-ids.txt
567  pci-serial.txt
568  pci-testdev.txt
569  ppc-spapr-hcalls.rst
570  ppc-spapr-hotplug.rst
571  ppc-spapr-numa.rst
572  ppc-spapr-uv-hcalls.rst
573  ppc-spapr-xive.rst
574  ppc-xive.rst
575  pvpanic.txt
576  rocker.txt
577  sev-guest-firmware.rst
578  standard-vga.txt
579  tpm.rst
580  virt-ctlr.txt
581  vmcoreinfo.txt
582  vmgenid.txt
583  vmw_pvscsi-spec.txt
584 share/doc/qemu/docs/sphinx-static/
585  custom.js
586  theme_overrides.css
587 share/doc/qemu/docs/spin/
588  aio_notify.promela
589  aio_notify_accept.promela
590  aio_notify_bug.promela
591  tcg-exclusive.promela
592  win32-qemu-event.promela
593 share/doc/qemu/docs/system/
594  authz.rst
595  barrier.rst
596  bootindex.rst
597  confidential-guest-support.rst
598  cpu-hotplug.rst
599  cpu-models-mips.rst.inc
600  cpu-models-x86-abi.csv
601  cpu-models-x86.rst.inc
602  device-emulation.rst
603  device-url-syntax.rst.inc
604  gdb.rst
605  generic-loader.rst
606  guest-loader.rst
607  images.rst
608  index.rst
609  invocation.rst
610  keys.rst
611  keys.rst.inc
612  linuxboot.rst
613  managed-startup.rst
614  monitor.rst
615  multi-process.rst
616  mux-chardev.rst
617  mux-chardev.rst.inc
618  pr-manager.rst
619  qemu-block-drivers.rst
620  qemu-block-drivers.rst.inc
621  qemu-cpu-models.rst
622  qemu-manpage.rst
623  quickstart.rst
624  replay.rst
625  secrets.rst
626  security.rst
627  target-arm.rst
628  target-avr.rst
629  target-i386-desc.rst.inc
630  target-i386.rst
631  target-m68k.rst
632  target-mips.rst
633  target-openrisc.rst
634  target-ppc.rst
635  target-riscv.rst
636  target-rx.rst
637  target-s390x.rst
638  target-sparc.rst
639  target-sparc64.rst
640  target-xtensa.rst
641  targets.rst
642  tls.rst
643  virtio-net-failover.rst
644  vnc-security.rst
645 share/doc/qemu/docs/system/arm/
646  aspeed.rst
647  collie.rst
648  cpu-features.rst
649  cubieboard.rst
650  digic.rst
651  emcraft-sf2.rst
652  emulation.rst
653  gumstix.rst
654  highbank.rst
655  imx25-pdk.rst
656  integratorcp.rst
657  kzm.rst
658  mainstone.rst
659  mps2.rst
660  musca.rst
661  musicpal.rst
662  nrf.rst
663  nseries.rst
664  nuvoton.rst
665  orangepi.rst
666  palm.rst
667  raspi.rst
668  realview.rst
669  sabrelite.rst
670  sbsa.rst
671  stellaris.rst
672  stm32.rst
673  sx1.rst
674  versatile.rst
675  vexpress.rst
676  virt.rst
677  xlnx-versal-virt.rst
678  xscale.rst
679 share/doc/qemu/docs/system/devices/
680  can.rst
681  canokey.rst
682  ccid.rst
683  cxl.rst
684  ivshmem.rst
685  net.rst
686  nvme.rst
687  usb.rst
688  vhost-user-rng.rst
689  vhost-user.rst
690  virtio-pmem.rst
691 share/doc/qemu/docs/system/i386/
692  amd-memory-encryption.rst
693  cpu.rst
694  hyperv.rst
695  kvm-pv.rst
696  microvm.rst
697  pc.rst
698  sgx.rst
699 share/doc/qemu/docs/system/loongarch/loongson3.rst
700 share/doc/qemu/docs/system/openrisc/
701  cpu-features.rst
702  emulation.rst
703  or1k-sim.rst
704  virt.rst
705 share/doc/qemu/docs/system/ppc/
706  embedded.rst
707  powermac.rst
708  powernv.rst
709  ppce500.rst
710  prep.rst
711  pseries.rst
712 share/doc/qemu/docs/system/riscv/
713  microchip-icicle-kit.rst
714  shakti-c.rst
715  sifive_u.rst
716  virt.rst
717 share/doc/qemu/docs/system/s390x/
718  3270.rst
719  bootdevices.rst
720  css.rst
721  protvirt.rst
722  vfio-ap.rst
723  vfio-ccw.rst
724 share/doc/qemu/docs/tools/
725  index.rst
726  qemu-img.rst
727  qemu-nbd.rst
728  qemu-pr-helper.rst
729  qemu-storage-daemon.rst
730  qemu-trace-stap.rst
731  virtfs-proxy-helper.rst
732  virtiofsd.rst
733 share/doc/qemu/docs/user/
734  index.rst
735  main.rst
736 share/doc/qemu/interop/
737  barrier.html
738  bitmaps.html
739  dbus-display.html
740  dbus-vmstate.html
741  dbus.html
742  index.html
743  live-block-operations.html
744  pr-helper.html
745  qemu-ga-ref.html
746  qemu-ga.html
747  qemu-qmp-ref.html
748  qemu-storage-daemon-qmp-ref.html
749  vhost-user-gpu.html
750  vhost-user.html
751  vhost-vdpa.html
752  virtio-balloon-stats.html
753 share/doc/qemu/specs/
754  acpi_cpu_hotplug.html
755  acpi_erst.html
756  acpi_hest_ghes.html
757  acpi_hw_reduced_hotplug.html
758  acpi_mem_hotplug.html
759  acpi_nvdimm.html
760  acpi_pci_hotplug.html
761  fw_cfg.html
762  index.html
763  ppc-spapr-hcalls.html
764  ppc-spapr-hotplug.html
765  ppc-spapr-numa.html
766  ppc-spapr-uv-hcalls.html
767  ppc-spapr-xive.html
768  ppc-xive.html
769  sev-guest-firmware.html
770  tpm.html
771 share/doc/qemu/system/
772  authz.html
773  barrier.html
774  bootindex.html
775  confidential-guest-support.html
776  cpu-hotplug.html
777  device-emulation.html
778  gdb.html
779  generic-loader.html
780  guest-loader.html
781  images.html
782  index.html
783  invocation.html
784  keys.html
785  linuxboot.html
786  managed-startup.html
787  monitor.html
788  multi-process.html
789  mux-chardev.html
790  pr-manager.html
791  qemu-block-drivers.html
792  qemu-cpu-models.html
793  qemu-manpage.html
794  quickstart.html
795  replay.html
796  secrets.html
797  security.html
798  target-arm.html
799  target-avr.html
800  target-i386.html
801  target-m68k.html
802  target-mips.html
803  target-openrisc.html
804  target-ppc.html
805  target-riscv.html
806  target-rx.html
807  target-s390x.html
808  target-sparc.html
809  target-sparc64.html
810  target-xtensa.html
811  targets.html
812  tls.html
813  virtio-net-failover.html
814  vnc-security.html
815 share/doc/qemu/system/arm/
816  aspeed.html
817  collie.html
818  cpu-features.html
819  cubieboard.html
820  digic.html
821  emcraft-sf2.html
822  emulation.html
823  gumstix.html
824  highbank.html
825  imx25-pdk.html
826  integratorcp.html
827  kzm.html
828  mainstone.html
829  mps2.html
830  musca.html
831  musicpal.html
832  nrf.html
833  nseries.html
834  nuvoton.html
835  orangepi.html
836  palm.html
837  raspi.html
838  realview.html
839  sabrelite.html
840  sbsa.html
841  stellaris.html
842  stm32.html
843  sx1.html
844  versatile.html
845  vexpress.html
846  virt.html
847  xlnx-versal-virt.html
848  xscale.html
849 share/doc/qemu/system/devices/
850  can.html
851  canokey.html
852  ccid.html
853  cxl.html
854  ivshmem.html
855  net.html
856  nvme.html
857  usb.html
858  vhost-user-rng.html
859  vhost-user.html
860  virtio-pmem.html
861 share/doc/qemu/system/i386/
862  amd-memory-encryption.html
863  cpu.html
864  hyperv.html
865  kvm-pv.html
866  microvm.html
867  pc.html
868  sgx.html
869 share/doc/qemu/system/loongarch/loongson3.html
870 share/doc/qemu/system/openrisc/
871  cpu-features.html
872  emulation.html
873  or1k-sim.html
874  virt.html
875 share/doc/qemu/system/ppc/
876  embedded.html
877  powermac.html
878  powernv.html
879  ppce500.html
880  prep.html
881  pseries.html
882 share/doc/qemu/system/riscv/
883  microchip-icicle-kit.html
884  shakti-c.html
885  sifive_u.html
886  virt.html
887 share/doc/qemu/system/s390x/
888  3270.html
889  bootdevices.html
890  css.html
891  protvirt.html
892  vfio-ap.html
893  vfio-ccw.html
894 share/doc/qemu/tools/
895  index.html
896  qemu-img.html
897  qemu-nbd.html
898  qemu-pr-helper.html
899  qemu-storage-daemon.html
900  qemu-trace-stap.html
901  virtfs-proxy-helper.html
902  virtiofsd.html
903 share/doc/qemu/user/
904  index.html
905  main.html
906
907
908 [FILE:333:manifests/plist.nls]
909 share/locale/bg/LC_MESSAGES/qemu.mo
910 share/locale/de_DE/LC_MESSAGES/qemu.mo
911 share/locale/fr_FR/LC_MESSAGES/qemu.mo
912 share/locale/hu/LC_MESSAGES/qemu.mo
913 share/locale/it/LC_MESSAGES/qemu.mo
914 share/locale/sv/LC_MESSAGES/qemu.mo
915 share/locale/tr/LC_MESSAGES/qemu.mo
916 share/locale/uk/LC_MESSAGES/qemu.mo
917 share/locale/zh_CN/LC_MESSAGES/qemu.mo
918
919
920 [FILE:416:manifests/plist.man]
921 share/man/man1/
922  qemu-img.1.gz
923  qemu-storage-daemon.1.gz
924  qemu.1.gz
925 share/man/man7/
926  qemu-block-drivers.7.gz
927  qemu-cpu-models.7.gz
928  qemu-qmp-ref.7.gz
929  qemu-storage-daemon-qmp-ref.7.gz
930 share/man/man8/
931  qemu-nbd.8.gz
932  qemu-pr-helper.8.gz
933 %%ONLY-FREEBSD%%share/man/man7/qemu-ga-ref.7.gz
934 %%ONLY-FREEBSD%%share/man/man8/qemu-ga.8.gz
935 %%ONLY-LINUX%%share/man/man7/qemu-ga-ref.7.gz
936 %%ONLY-LINUX%%share/man/man8/qemu-ga.8.gz
937
938
939 [FILE:414:patches/patch-accel_tcg_translate-all.c]
940 --- accel/tcg/translate-all.c.orig      2023-04-05 20:10:23 UTC
941 +++ accel/tcg/translate-all.c
942 @@ -28,7 +28,7 @@
943  #include "qemu.h"
944  #if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
945  #include <sys/param.h>
946 -#if __FreeBSD_version >= 700104
947 +#if defined(__MidnightBSD__) || __FreeBSD_version >= 700104
948  #define HAVE_KINFO_GETVMMAP
949  #define sigqueue sigqueue_freebsd  /* avoid redefinition */
950  #include <sys/proc.h>
951
952
953 [FILE:546:patches/patch-configure]
954 --- configure.orig      2023-04-05 20:10:23 UTC
955 +++ configure
956 @@ -430,6 +430,8 @@ elif check_define __sun__ ; then
957    targetos=sunos
958  elif check_define __HAIKU__ ; then
959    targetos=haiku
960 +elif check_define __MidnightBSD__ ; then
961 +  targetos=freebsd
962  elif check_define __FreeBSD__ ; then
963    targetos=freebsd
964  elif check_define __FreeBSD_kernel__ && check_define __GLIBC__; then
965 @@ -471,6 +473,10 @@ dragonfly)
966    bsd="yes"
967    make="${MAKE-gmake}"
968  ;;
969 +midnightbsd)
970 +  bsd="yes"
971 +  make="${MAKE-gmake}"
972 +;;
973  netbsd)
974    bsd="yes"
975    make="${MAKE-gmake}"
976
977
978 [FILE:337:patches/patch-include_qemu_bswap.h]
979 --- include/qemu/bswap.h.orig   2023-04-05 20:10:24 UTC
980 +++ include/qemu/bswap.h
981 @@ -4,7 +4,7 @@
982  #ifdef CONFIG_MACHINE_BSWAP_H
983  # include <sys/endian.h>
984  # include <machine/bswap.h>
985 -#elif defined(__FreeBSD__)
986 +#elif defined(__FreeBSD__) || defined(__DragonFly__)
987  # include <sys/endian.h>
988  #elif defined(__HAIKU__)
989  # include <endian.h>
990
991
992 [FILE:2507:patches/patch-meson.build]
993 --- meson.build.orig    2023-04-05 20:10:24 UTC
994 +++ meson.build
995 @@ -46,8 +46,8 @@ config_host_data = configuration_data()
996  genh = []
997  qapi_trace_events = []
998  
999 -bsd_oses = ['gnu/kfreebsd', 'freebsd', 'netbsd', 'openbsd', 'dragonfly', 'darwin']
1000 -supported_oses = ['windows', 'freebsd', 'netbsd', 'openbsd', 'darwin', 'sunos', 'linux']
1001 +bsd_oses = ['midnightbsd', 'freebsd', 'netbsd', 'openbsd', 'dragonfly', 'darwin']
1002 +supported_oses = ['windows', 'freebsd', 'netbsd', 'openbsd', 'darwin', 'sunos', 'linux', 'dragonfly', 'midnightbsd']
1003  supported_cpus = ['ppc', 'ppc64', 's390x', 'riscv', 'x86', 'x86_64',
1004    'arm', 'aarch64', 'loongarch64', 'mips', 'mips64', 'sparc64']
1005  
1006 @@ -444,7 +444,7 @@ if get_option('hax').allowed()
1007      accelerators += 'CONFIG_HAX'
1008    endif
1009  endif
1010 -if targetos == 'netbsd'
1011 +if targetos in [ 'netbsd', 'dragonfly' ]
1012    nvmm = cc.find_library('nvmm', required: get_option('nvmm'))
1013    if nvmm.found()
1014      accelerators += 'CONFIG_NVMM'
1015 @@ -887,7 +887,7 @@ if have_system and get_option('curses').
1016        return 0;
1017      }'''
1018  
1019 -  curses_dep_list = targetos == 'windows' ? ['ncurses', 'ncursesw'] : ['ncursesw']
1020 +  curses_dep_list = targetos == 'windows' ? ['ncurses', 'ncursesw'] : ['ncurses']
1021    curses = dependency(curses_dep_list,
1022                        required: false,
1023                        method: 'pkg-config',
1024 @@ -910,15 +910,16 @@ if have_system and get_option('curses').
1025        has_curses_h = cc.has_header('curses.h', args: curses_compile_args)
1026      endif
1027      if has_curses_h
1028 -      curses_libname_list = (targetos == 'windows' ? ['pdcurses'] : ['ncursesw', 'cursesw'])
1029 +      libtinfo = cc.find_library('tinfo', required: false, static: enable_static)
1030 +      curses_libname_list = (targetos == 'windows' ? ['pdcurses'] : ['ncurses'])
1031        foreach curses_libname : curses_libname_list
1032          libcurses = cc.find_library(curses_libname,
1033                                      required: false,
1034                                      kwargs: static_kwargs)
1035          if libcurses.found()
1036 -          if cc.links(curses_test, args: curses_compile_args, dependencies: libcurses)
1037 +          if cc.links(curses_test, args: curses_compile_args, dependencies: [libncurses,libtinfo])
1038              curses = declare_dependency(compile_args: curses_compile_args,
1039 -                                        dependencies: [libcurses])
1040 +                                        dependencies: [libncurses, libtinfo])
1041              break
1042            else
1043              msg = 'curses library not usable'
1044
1045
1046 [FILE:385:patches/patch-meson_mesonbuild_mesonlib_universal.py]
1047 --- meson/mesonbuild/mesonlib/universal.py.orig 2023-04-05 20:11:08 UTC
1048 +++ meson/mesonbuild/mesonlib/universal.py
1049 @@ -658,7 +658,7 @@ def is_netbsd() -> bool:
1050  
1051  
1052  def is_freebsd() -> bool:
1053 -    return platform.system().lower() == 'freebsd'
1054 +    return platform.system().lower() in ('freebsd', 'midnightbsd')
1055  
1056  def is_irix() -> bool:
1057      return platform.system().startswith('irix')
1058
1059
1060 [FILE:454:patches/patch-net_tap-bsd.c]
1061 --- net/tap-bsd.c.orig  2023-04-05 20:10:24 UTC
1062 +++ net/tap-bsd.c
1063 @@ -30,9 +30,16 @@
1064  
1065  #if defined(__NetBSD__) || defined(__FreeBSD__)
1066  #include <sys/ioctl.h>
1067 +#include <sys/socket.h>
1068  #include <net/if.h>
1069  #include <net/if_tap.h>
1070  #endif
1071 +#if defined(__DragonFly)
1072 +#include <sys/ioctl.h>
1073 +#include <sys/socket.h>
1074 +#include <net/if.h>
1075 +#include <net/tap/if_tap.h>
1076 +#endif
1077  
1078  #ifndef __FreeBSD__
1079  int tap_open(char *ifname, int ifname_size, int *vnet_hdr,
1080
1081
1082 [FILE:344:patches/patch-util_getauxval.c]
1083 --- util/getauxval.c.orig       2023-04-05 20:10:23 UTC
1084 +++ util/getauxval.c
1085 @@ -98,7 +98,7 @@ unsigned long qemu_getauxval(unsigned lo
1086      return 0;
1087  }
1088  
1089 -#elif defined(__FreeBSD__)
1090 +#elif defined(__MidnightBSD__) || (defined(__FreeBSD__) && __FreeBSD_version__ > 1200001)
1091  #include <sys/auxv.h>
1092  
1093  unsigned long qemu_getauxval(unsigned long type)
1094
1095
1096 [FILE:7685:files/pkg-message-single]
1097 FreeBSD host notes
1098 ==================
1099
1100 - Needs to set net.link.tap.user_open sysctl in order to use /dev/tap*
1101   networking as non-root.  Don't forget to adjust device node permissions in
1102   /etc/devfs.rules.
1103
1104 - slirp (usermode networking) is fixed now in cvs, on FreeSBIE 1.0 guests you
1105   still have to manually do: echo nameserver 10.0.2.3 >/etc/resolv.conf but
1106   i've been told that that's normal.  (fixed on FreeSBIE 1.1.) And you have
1107   to wait a bit for dhclient to do its thing; traffic to address 10.0.2.2 is
1108   routed to 127.1 on the host.
1109
1110 - Expect timer problems when guest kernel HZ is > hosts, for example time
1111   sleep 1 takes 49 seconds and booting sleeps for minutes at the acd0 probe
1112   with a FreeSBIE 1.0 guest, thats because its kernel is built with HZ=5000,
1113   and FreeBSD's default is 100...  (no longer a problem with FreeSBIE 1.1.)
1114   The linux 2.6 kernel uses 1000 by default btw.  (changed to 250 later, and
1115   recent linux kernels now no longer have a fixed HZ, aka `tickless
1116   kernel'...)  Enabling /dev/rtc doesn't seem to help either (not included
1117   since it needs a patch to emulators/rtc.)
1118
1119 - Update: the above problem has gotten worse with FreeBSD guests
1120   somewhere before 8.0, mainly since the kernel now usually wants
1121   double or even quadruple number of timer irqs compared to HZ if
1122   it detects an apic (and at least early versions of FreeBSD 8 had
1123   a bug that essentially halved qemu's clock rate too); the only
1124   reason you usually don't see symptoms of this with FreeBSD 8
1125   guests is they automatically reduce their HZ to 100 when running
1126   in a VM while the default for the host kernel is still HZ=1000.
1127   Workaround: you can disable the apic clock in the guest by setting
1128
1129     hint.apic.0.clock="0"
1130
1131   in loader.conf(5) (or manually at the loader prompt), if that
1132   doesn't work the only things you can do is either reduce the
1133   guest's HZ to, say, 100 by setting e.g.
1134
1135     kern.hz="100"
1136
1137   from the loader as above (which usually is a good idea in a VM
1138   anyway and FreeBSD 8 now does by itself as mentioned), or otherwise
1139   increase the host's HZ to 2000 or even 4000 from the loader in
1140   the same way.
1141
1142 - The -smb option (smb-export local dir to guest using the default
1143   slirp networking) needs the samba port/package installed
1144   in addition to qemu. (SAMBA knob.)
1145
1146 - If you want to use usb devices connected to the host in the guest
1147   yot need either recent 10-current (not tested yet much) or you can
1148   use usbredir over the network (see below); also unless you are
1149   running qemu as root you then need to fix permissions for /dev/ugen*
1150   device nodes: if you are on 5.x or later (devfs) put a rule in
1151   /etc/devfs.rules, activate it in /etc/rc.conf and run /etc/rc.d/devfs
1152   restart.  Example devfs.rules:
1153
1154     [ugen_ruleset=20]
1155     add path 'ugen*' mode 660 group operator
1156
1157   corresponding rc.conf line:
1158
1159     devfs_system_ruleset="ugen_ruleset"
1160
1161 - If you want to test the new (in 0.15.0) usb network redirection (USBREDIR
1162   option) see this thread by Hans de Goede <hdegoede <at> redhat.com>:
1163
1164     http://thread.gmane.org/gmane.comp.emulators.qemu/110176/focus=110183
1165
1166   Quote:
1167
1168   Example usage:
1169
1170   1) Start usbredirserver for a usb device:
1171   sudo usbredirserver 045e:0772
1172   2) Start qemu with usb2 support + a chardev talking to usbredirserver +
1173      a usb-redir device using this chardev:
1174   qemu -usb \
1175     -readconfig docs/ich9-ehci-uhci.cfg \
1176     -chardev socket,id=usbredirchardev,host=localhost,port=4000 \
1177     -device usb-redir,chardev=usbredirchardev,id=usbredirdev ...
1178
1179   [you would replace docs/ich9-ehci-uhci.cfg with e.g.
1180   /raven/share/doc/qemu/docs/ich9-ehci-uhci.cfg, but turns out
1181   ehci was broken for me here with FreeBSD guests and the previous
1182   qemu version at least, I got:
1183
1184     FETCHENTRY: entry at 22C5484 is of type 2 which is not supported yet processing error - resetting ehci HC
1185     Assertion failed: (0), function ehci_advance_state, file /data/ports/emulators/qemu-devel/work/qemu-0.15.0/hw/usb-ehci.c, line 2045.
1186
1187   The new qemu version works better tho.]
1188
1189 - Still usb: since the hub is no longer attached to the uchi controller and
1190   the wakeup mechanism, resume interrupt is not implemented yet linux guests
1191   will suspend the bus, i.e. they wont see devices usb_add'ed after its
1192   (linux') uhci module got loaded.  Workaround: either add devices before
1193   linux loads the module or rmmod and modprobe it afterwards.  [Not sure
1194   if this still applies to the new libusb host code used on recent
1195   10-current.]
1196
1197 - If you build qemu wihout SDL and then get crashes running it try passing it
1198   -nographic.  This should probably be default in that case...
1199
1200 - qemu's network boot roms (-boot n) have a bug when bootfiles sizes are a
1201   multiple of blksize, if this affects you (like with FreeBSD's /boot/pxeboot)
1202   you can do like
1203
1204     cp /boot/pxeboot pxeboot-qemu && chmod +w pxeboot-qemu && echo >>pxeboot-qemu
1205
1206   and then use pxeboot-qemu.  Actually you need recent btx code
1207   (from after 7.0 was released) because of the real mode boot
1208   problem, so use at least pxeboot from there.  And I just did that
1209   for the pxeboot extracted out of
1210
1211     ftp://ftp.freebsd.org/pub/FreeBSD/snapshots/200805/7.0-STABLE-200805-i386-bootonly.iso
1212
1213   and placed it here:
1214
1215     http://people.freebsd.org/~nox/qemu/pxeboot-qemu
1216
1217 - If you use slirp (usernet, the default) and want to mount nfs into the guest
1218   and you are not running qemu as root, then mountd(8) on the exporting box
1219   needs to be run with -n in order to accept requests from ports >= 1024.
1220
1221 - (not FreeBSD-specific:) There have been reports of qcow2 corruption with (at
1222   least) win2k guests on recent kvm (which uses similar qcow2 code than qemu
1223   now, see this thread:
1224
1225     http://lists.gnu.org/archive/html/qemu-devel/2009-02/msg00713.html -
1226
1227   the consensus on that thread seems to be that qcow(2) code has always been
1228   experimental and you should use raw images if you want reliability; raw is
1229   also usually faster.)  You should be able to migrate existing images to raw
1230   using qemu-img(1)'s convert function; raw doesn't support advanced features
1231   like snapshots tho.  [a few important qcow2 bugfixed have been committed in
1232   the meantime so this _might_ be less of an issue now; and meanwhile there
1233   also is the new qed format - I don't know how stable that one is.]
1234
1235 - (also not FreeBSD-specific:)  It is recommended to pass raw images using the
1236   new -drive syntax, specifying format=raw explicitly in order to avoid
1237   malicious guests being able to exploit the format autodetection thats
1238   otherwise getting used.  (Not that you should run malicious guests anyway,
1239   but this eleminates at least a known attack vector.)
1240
1241 - qemu now has improved physical cdrom support, but still there is at
1242   least one known problem: you need to have the guest eject the disc if you
1243   want to change it/take it out, or otherwise the guest may continue using
1244   state (like size) of the old disc.  (You can also do like `change ide1-cd0
1245   /dev/acd0' in the monitor after taking out the disc if a guest cannot eject
1246   it itself.)
1247
1248 - The default configuration location (qemu-ifup script etc.) has been changed
1249   from /etc to PREFIX/etc (usually /raven/etc).  Move your files accordingly.
1250
1251 - The pcap code (-net nic... -net pcap,ifname=...) should work properly now,
1252   with only one exception:  Advanced features like TSO used on the host
1253   interface can cause oversize packets which now do get truncated to avoid
1254   confusing/panicing guests but of course still will cause retransmissions.
1255   So if you see slow throughput and `pcap_send: packet size > ..., truncating'
1256   messages on qemu's tty try disabling TSO etc on the host interface at least
1257   while using pcap.
1258
1259
1260 [FILE:20:files/qemu-ifdown.sample]
1261 #!/bin/sh
1262 exec true
1263
1264
1265 [FILE:20:files/qemu-ifup.sample]
1266 #!/bin/sh
1267 exec true
1268
1269
1270 [FILE:323:dragonfly/patch-hw-ppc_newworld.c]
1271 --- hw/ppc/mac_newworld.c.orig  2023-04-05 20:10:23 UTC
1272 +++ hw/ppc/mac_newworld.c
1273 @@ -75,6 +75,11 @@
1274  #include "hw/sysbus.h"
1275  #include "trace.h"
1276  
1277 +/* FreeBSD headers define this */
1278 +#ifdef round_page
1279 +#undef round_page
1280 +#endif
1281 +
1282  #define MAX_IDE_BUS 2
1283  #define CFG_ADDR 0xf0000510
1284  #define TBFREQ (100UL * 1000UL * 1000UL)
1285
1286
1287 [FILE:334:dragonfly/patch-hw_ppc_mac__oldworld.c]
1288 --- hw/ppc/mac_oldworld.c.orig  2023-04-05 20:10:23 UTC
1289 +++ hw/ppc/mac_oldworld.c
1290 @@ -66,6 +66,11 @@
1291  
1292  #define GRACKLE_BASE 0xfec00000
1293  
1294 +/* FreeBSD headers define this */
1295 +#ifdef round_page
1296 +#undef round_page
1297 +#endif
1298 +
1299  static void fw_cfg_boot_set(void *opaque, const char *boot_device,
1300                              Error **errp)
1301  {
1302
1303
1304 [FILE:906:dragonfly/patch-util_coroutine-ucontext.c]
1305 --- util/coroutine-ucontext.c.orig      2023-04-05 20:10:24 UTC
1306 +++ util/coroutine-ucontext.c
1307 @@ -225,7 +225,15 @@ Coroutine *qemu_coroutine_new(void)
1308                  2, arg.i[0], arg.i[1]);
1309  
1310      /* swapcontext() in, siglongjmp() back out */
1311 -    if (!sigsetjmp(old_env, 0)) {
1312 +    /* Save signal mask in this sigsetjmp, because makecontext on DragonFly
1313 +     * leaves all signals blocked when entering the new context with
1314 +     * swapcontext.
1315 +     * Workaround this, by just having the signal mask restored by the
1316 +     * siglongjmp that brings us back from qemu_coroutine_new().
1317 +     * XXX Remove this workaround when the makecontext behaviour is fixed
1318 +     *     on DragonFly.
1319 +     */
1320 +    if (!sigsetjmp(old_env, 1)) {
1321          start_switch_fiber_asan(COROUTINE_YIELD, &fake_stack_save, co->stack,
1322                                  co->stack_size);
1323          start_switch_fiber_tsan(&fake_stack_save,
1324