Skip to content

100% CPU utilization when the guest is idle (FreeBSD on M1 Mac)

Host environment

  • Operating system: macOS 12.1
  • OS/kernel version: Darwin mac 21.2.0 Darwin Kernel Version 21.2.0: Sun Nov 28 20:29:10 PST 2021; root:xnu-8019.61.5~1/RELEASE_ARM64_T8101 arm64
  • Architecture: arm64
  • QEMU flavor: qemu-system-aarch64
  • QEMU version: 6.2.0
  • QEMU command line:
    ./qemu-system-aarch64 \
    -machine virt,accel=hvf,highmem=off \
    -hda FreeBSD-13.0-RELEASE-arm64-aarch64.qcow2 \
    -m 2G \
    -cpu host \
    -bios edk2-aarch64-code.fd \
    -serial mon:stdio \
    -nographic

Emulated/Virtualized environment

  • Operating system: FreeBSD 13.0
  • OS/kernel version: FreeBSD freebsd 13.0-RELEASE FreeBSD 13.0-RELEASE #0 releng/13.0-n244733-ea31abc261f: Fri Ap r 9 03:54:53 UTC 2021 root@releng1.nyi.freebsd.org:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC arm64
  • Architecture: arm64

Description of problem

100% CPU utilization when the guest is idle.

Steps to reproduce

  1. Download the FreeBSD qcow2 image and decompress it: https://download.freebsd.org/releases/VM-IMAGES/13.0-RELEASE/aarch64/Latest/
  2. Execute the above command.
  3. The QEMU process consumes 100% CPU.

qemu-100-cpu-utilization

Edited by soylent
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information