[Bug 282852] bhyve: Failed to emulate instruction sequence

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 18 Nov 2024 18:03:46 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=282852

            Bug ID: 282852
           Summary: bhyve: Failed to emulate instruction sequence
           Product: Base System
           Version: 14.2-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bhyve
          Assignee: virtualization@FreeBSD.org
          Reporter: scf@FreeBSD.org

After an update and reboot to a VM I have, bhyve now returns an error:

Failed to emulate instruction sequence [ 41f646040874064c017d88eb144c89 ] at
0xbea5fcf9

Apparently, this occurs when a UEFI variables file is updated.  The claim is
that bhyve did not support emulation of "testb imm8,r/m8".  I can confirm that
replacing the UEFI variables file with a previous copy does allow the VM to
boot.

There is an issue that fixes this for illumos
(https://www.illumos.org/issues/14483) with the fix on GitHub
(https://github.com/illumos/illumos-gate/commit/e1ded6bd708926c1adf348bccd10d6df6a12eedb).
 The fix makes a call to vie_mmio_read() which is only in illumos.

I had tried that patch with using memread() without success, but my
bhyve/vmm-foo is lacking.  :)

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