|Issue Type:||New Feature|
|Priority:||4 - Normal|
|Created by:||Patrick Mooney [X]|
|Reported by:||Patrick Mooney [X]|
|Assigned to:||Hans Rosenfeld [X]|
Fixed: A fix for this issue is checked into the tree and tested.
(Resolution Date: 2018-12-20T13:13:09.529Z)
2019-01-03 Interweb (Release Date: 2019-01-03)
When debugging issues in a bhyve guest, it would be nice to be able to attach to it with mdb, query state such as registers and MSRs, and be able to read/disassemble its memory as translated through the virtualized %cr3.
I tested this by controlling a VM running Ubuntu 17.10. I have verified that I can single step from the first instruction of the UEFI ROM in real mode through the initial setup for protected mode and later into long mode. I have verified that in each situation the register dumps look the way they are supposed to, that the right disassembler is chosen based on the CS attributes, and that disassembling and stack tracing uses the right segments when appropriate. I've also verified that stopping/resuming VM execution and accessing memory and register contents still work as expected once the OS was booted, and that the OS wasn't doing anything unexpected while single-stepping through it's idle code.
illumos-joyent commit 64570bd313f25b33a67193828aa20d7a15c3fed0 (branch master, by Hans Rosenfeld)
OS-6969 want mdb module for bhyve
Reviewed by: John Levon <email@example.com>
Reviewed by: Patrick Mooney <firstname.lastname@example.org>
Approved by: John Levon <email@example.com>
illumos-joyent commit 6b27e15c001f5d51228295eb81072fe411ae55c3 (branch master, by Patrick Mooney)
OS-7463 build broken after OS-6969 integration
Reviewed by: Hans Rosenfeld <firstname.lastname@example.org>
Reviewed by: Jerry Jelinek <email@example.com>
Approved by: Jerry Jelinek <firstname.lastname@example.org>