OS-6969: want mdb module for bhyve

Details

Issue Type:New Feature
Priority:4 - Normal
Status:Resolved
Created at:2018-05-19T03:08:47.160Z
Updated at:2018-12-20T19:50:57.176Z

People

Created by:Patrick Mooney [X]
Reported by:Patrick Mooney [X]
Assigned to:Hans Rosenfeld [X]

Resolution

Fixed: A fix for this issue is checked into the tree and tested.
(Resolution Date: 2018-12-20T13:13:09.529Z)

Fix Versions

2019-01-03 Interweb (Release Date: 2019-01-03)

Related Links

Labels

bhyve

Description

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.

Comments

Comment by Hans Rosenfeld [X]
Created at 2018-12-17T15:48:32.806Z

Testing:

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.


Comment by Jira Bot
Created at 2018-12-20T12:40:47.341Z

illumos-joyent commit 64570bd313f25b33a67193828aa20d7a15c3fed0 (branch master, by Hans Rosenfeld)

OS-6969 want mdb module for bhyve
Reviewed by: John Levon <john.levon@joyent.com>
Reviewed by: Patrick Mooney <patrick.mooney@joyent.com>
Approved by: John Levon <john.levon@joyent.com>


Comment by Jira Bot
Created at 2018-12-20T19:50:57.176Z

illumos-joyent commit 6b27e15c001f5d51228295eb81072fe411ae55c3 (branch master, by Patrick Mooney)

OS-7463 build broken after OS-6969 integration
Reviewed by: Hans Rosenfeld <hans.rosenfeld@joyent.com>
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>
Approved by: Jerry Jelinek <jerry.jelinek@joyent.com>