[Bug 291063] bhyve: Failed to emulate instruction sequence 8908f0091c244883c2044883c00441

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 23 Apr 2026 17:15:31 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=291063

Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rosenfeld@grumpf.hope-2000.
                   |                            |org

--- Comment #4 from Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org> ---
This isn't about the lock prefix.

The mov in question ends up in tpm since it's a write to a tpm device register.
The tpm implementation understands the value written as a request to cancel a
TPM command, which it doesn't support.

In principle, there are really only two options a device emulation has in such
a situation:

- ignore the write, perhaps set an error flag in a status register if such a
thing exists in the device
- abort the instruction emulation writing the device register

Our tpm implementation chose the latter. It should be investigated if it can be
made to handle this more gracefully, or implement command cancelling.

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