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