[Bug 264918] bhyve: getrandom(2) returns SIGILL on vm with host CPU AMD A6-7310 APU with AMD Radeon R4 Graphics (4) @ 1.995G

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 26 Jun 2022 22:57:53 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264918

            Bug ID: 264918
           Summary: bhyve: getrandom(2) returns SIGILL on vm with host CPU
                    AMD A6-7310 APU with AMD Radeon R4 Graphics (4) @
                    1.995G
           Product: Base System
           Version: 13.1-RELEASE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bhyve
          Assignee: virtualization@FreeBSD.org
          Reporter: trix@basement.net

Hardware host: HP 260-a020
Hardware CPU: AMD A6-7310 APU with AMD Radeon R4 Graphics (4) @ 1.995G

Symptom:
Call to 

# /usr/local/bin/salt-key --gen-keys --gen-keys-dir=.

returns "Illegal instruction"

How to Reproduce:
 * Create bhyve VM (I used sysutils/vm-bhyve) with 13.1-RELEASE
 * Login on VM and become root
 * pkg add -y py35-salt
 * /usr/local/bin/salt-key --gen-keys --gen-keys-dir=.

Repeating the test on the hardware host itself (also running 13.1-RELEASE)
succeeds.

Test succeeds on hardware host and bhyve VM using an "AMD Ryzon 7 3800X" CPU,

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