[Bug 288308] bhyve + Windows 2025 freezes with rdmsr to register 0xc0010114 error on AMD Zen4

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 18 Jul 2025 16:48:24 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=288308

            Bug ID: 288308
           Summary: bhyve + Windows 2025 freezes with rdmsr to register
                    0xc0010114 error on AMD Zen4
           Product: Base System
           Version: 14.3-RELEASE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bhyve
          Assignee: virtualization@FreeBSD.org
          Reporter: demik+freebsd@lostwave.net

Hello,

Trying to boot a Windows 2025 installer on bhyve results in a guest freeze and
the host CPU (core) peaking to 100%

CPU: AMD Ryzen 5 8500G w/ Radeon 740M Graphics       (3550.18-MHz K8-class CPU)

startup command:

# bhyve -AHP -s 0:0,amd_hostbridge \
   -s 1:0,lpc -s 2:0,virtio-net,tap1 \
   -s 3:0,virtio-blk,/dev/zvol/noise/srv/VOL/w2k25,sectorsize=512 \
   -s 4:0,ahci-cd,/tmp/Win_Server_STD_CORE_2025_24H2.2_DC_STD_MLF_X23-91028.ISO
\
   -s 4:1,ahci-cd,/tmp/virtio-win.iso \
   -l bootrom,/tmp/BHYVE_UEFI.fd,/tmp/BHYVE_UEFI_W2K25.fd \
   -s 29,fbuf,tcp=:5925,wait -K fr \ 
   -c 1 -m 4096 w2k25

> pkg info edk2-bhyve
edk2-bhyve-g202308_5
Name           : edk2-bhyve
Version        : g202308_5

OS goes through the bootloader, and freezes when the spinning thing usually
appears
Changing sectorzize and memory values doesn't help.

However, Windows 2022 installer works fine, even with the rdmsr to register
error.

Running bhyve with -w also allow Windows 2025 to boot.

Random guess: Windows 2025 checks something on register 0xc0010114, and since
it isn't implemented, it fails on a few AMD hosts. I might be totally wrong
tho.

-- 
You are receiving this mail because:
You are the assignee for the bug.