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