Software Archive
Read-only legacy content
17061 Discussions

VMX and hardware debuggers

jason09
Beginner
423 Views
Is it possible to single-step from VMX non-root mode into VMX root mode using a hardware debugger? Or, barring that, are internal VMX registers, such as the current VMCS pointer, readable using a hardware debugger (so a BP can be set at the host entry point)? I'm trying to trace execution into and out of a very simple VT-x hypervisor.
0 Kudos
2 Replies
David_O_Intel1
Employee
423 Views
A fellow engineer commented:

"Kernel debuggers provide tracing capabilities between non-root and root modes.

One of the possibilities is to set 2 separate kernel debugger sessions: one - for root, another for non-root.

For example, for Hyper-V, the instance of kernel debugger that is responsible for the non-root execution runs inside RootOS using method that is known as VirtualPipe, the instance that traces Hyper-V execution is running on a separate machine that is connected to the unit under test (UUT) via 1394.

The above debug capabilities may require additional investigation/development."

David Ott

0 Kudos
hellfire
New Contributor I
423 Views
Possible solution is adopting GDB stub for running in VMX root mode and exchanging via serial port with client at the other PC.
0 Kudos
Reply