You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* dbg: change visibility of debugging related functions/structs
Signed-off-by: Doru Blânzeanu <[email protected]>
* dbg: move kvm vcpu debug type to another file
- this is done in preparation of accomodating support for other hypervisors
which means some of the functionality whould be common.
- moving the debug code to a separate file can enable us to
group common behavior in traits
Signed-off-by: Doru Blânzeanu <[email protected]>
* dbg: move hardware breakpoints functionality to separate file
- also add a trait that contains all the needed methods for interacting
with a vCPU
Signed-off-by: Doru Blânzeanu <[email protected]>
* dbg: move read/write registers and get_stop_reason to vCPU functionality trait
Signed-off-by: Doru Blânzeanu <[email protected]>
* dbg: modify hw breakpoints and move common functionality in trait
Signed-off-by: Doru Blânzeanu <[email protected]>
* dbg: move read/write address and add/remove sw breakpoint to separate file
- add trait to define common behavior to be used by other hypervisors
later
Signed-off-by: Doru Blânzeanu <[email protected]>
* dbg: remove specific method that adds entry point breakpoint
- it can be done using the generic way to add hw breakpoints
- also remove the entry point breakpoint after the vCPU stops to
avoid hanging there
Signed-off-by: Doru Blânzeanu <[email protected]>
* dbg: improve vCPU exit reason checking
- verify the debug registers that report what kind of exception was triggered
- in case there is an unknown reason, report it as a SwBp so that the gdb
client can inspect what happened
Signed-off-by: Doru Blânzeanu <[email protected]>
* dbg: prepare for mshv guest debugging implementation
Signed-off-by: Doru Blânzeanu <[email protected]>
* dbg: add basic skeleton for mshv guest debug
Signed-off-by: Doru Blânzeanu <[email protected]>
* dbg: add mshv intercepts for #DB and #BP exceptions
Signed-off-by: Doru Blânzeanu <[email protected]>
* dbg: mshv guest debugging support for vCPU operations
Signed-off-by: Doru Blânzeanu <[email protected]>
* dbg: mshv guest debugging support for memory inspection
Signed-off-by: Doru Blânzeanu <[email protected]>
* dbg: read/write addresses check offset calculation
- use checked_sub to avoid issues from addresses that could cause
underflow
Signed-off-by: Doru Blânzeanu <[email protected]>
* dbg: enable ci guest debugging tests on mshv
- change gdb commands in test to be usable with older gdb versions
- change Justfile to provide mshv3 feature
- change gdb test to invoke cargo test with correct features for mshv
Signed-off-by: Doru Blânzeanu <[email protected]>
* dbg: update documentation to specify the mshv debug support
Signed-off-by: Doru Blânzeanu <[email protected]>
* dbg: add specific logging for each debug command error encountered
Signed-off-by: Doru Blânzeanu <[email protected]>
---------
Signed-off-by: Doru Blânzeanu <[email protected]>
To dump the details of the memory configuration, the virtual processors register state and the contents of the VM memory set the feature `crashdump` and run a debug build. This will result in a dump file being created in the temporary directory. The name and location of the dump file will be printed to the console and logged as an error message.
43
43
44
44
There are no tools at this time to analyze the dump file, but it can be useful for debugging.
45
+
46
+
## Debugging guests
47
+
48
+
For more information on how to debug the Hyperlight guests check the following [link](./how-to-debug-a-hyperlight-guest.md).
0 commit comments