Project

General

Profile

Actions

Bug #14632

open

bhyve instruction emulation should heed single-stepping

Added by Patrick Mooney 4 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
bhyve
Start date:
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

When the guest has enabled single-stepping (via rflags.tf), the instruction emulation in bhyve needs to inject #DB after completing instruction emulation. It does not do this currently, meaning emulated instructions will act strangely as perceived by any in-guest debuggers.

This was discovered by running the KVM unit tests under bhyve, specifically the debug test:

FAIL: Single-step #DB on emulated instructions
FAIL: Usermode Single-step #DB on emulated instructions

No data to display

Actions

Also available in: Atom PDF