Win 11 Pro has high CPU usage on idle in bhyve

From: Marco Orsatti <marco.dmc12_at_gmail.com>
Date: Thu, 17 Apr 2025 09:15:44 UTC
G’day

I installed a windows 11 virtual machine with bhyve on FreeBSD 14.2 x64 and I always have a very busy CPU even when windows is in Idle.
I tried different CPU configurations for the VM, but without success.

This is the current configuration (vm-bhyve):

loader="uefi"
graphics_port="5950"
graphics="yes"
graphics_res="1024x768"
xhci_mouse="yes"
cpu=8
cpu_sockets=4
cpu_cores=2
#cpu_threads=1
memory=16G
ahci_device_limit="8"
network0_type="virtio-net"
network0_switch=“firewall"
disk0_type="ahci-hd"
disk0_name="/dev/zvol/vm/win11"
disk0_dev="custom"
utctime="no"
bhyve_options="-AP"

The first VM is Windows 11, the second is FreeBSD, the third is Debian, and the others are Windows 10: