Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start GDB session with API #4864

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

JackThomson2
Copy link
Contributor

@JackThomson2 JackThomson2 commented Oct 22, 2024

Allow a GDB debugging session to be started over API

Changes

Moved the GDB address config inside the machine-config section.

This allows a user to start a GDB debugging session using the API and are not limited to just using the config file

Reason

Allow for GDB to be setup when using config file is not possible

License Acceptance

By submitting this pull request, I confirm that my contribution is made under
the terms of the Apache 2.0 license. For more information on following Developer
Certificate of Origin and signing off your commits, please check
CONTRIBUTING.md.

PR Checklist

  • If a specific issue led to this PR, this PR closes the issue.
  • The description of changes is clear and encompassing.
  • Any required documentation changes (code and docs) are included in this
    PR.
  • API changes follow the Runbook for Firecracker API changes.
  • User-facing changes are mentioned in CHANGELOG.md.
  • All added/changed functionality is tested.
  • New TODOs link to an issue.
  • Commits meet
    contribution quality standards.

  • This functionality cannot be added in rust-vmm.

Copy link

codecov bot commented Oct 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.08%. Comparing base (c97418a) to head (08ff34e).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4864   +/-   ##
=======================================
  Coverage   84.07%   84.08%           
=======================================
  Files         251      251           
  Lines       28052    28058    +6     
=======================================
+ Hits        23586    23592    +6     
  Misses       4466     4466           
Flag Coverage Δ
5.10-c5n.metal 84.72% <100.00%> (+<0.01%) ⬆️
5.10-m5n.metal 84.70% <100.00%> (+<0.01%) ⬆️
5.10-m6a.metal 84.00% <100.00%> (+<0.01%) ⬆️
5.10-m6g.metal 80.70% <100.00%> (+<0.01%) ⬆️
5.10-m6i.metal 84.70% <100.00%> (+0.01%) ⬆️
5.10-m7g.metal 80.70% <100.00%> (+<0.01%) ⬆️
6.1-c5n.metal 84.72% <100.00%> (+<0.01%) ⬆️
6.1-m5n.metal 84.70% <100.00%> (+<0.01%) ⬆️
6.1-m6a.metal 84.01% <100.00%> (+<0.01%) ⬆️
6.1-m6g.metal 80.70% <100.00%> (+<0.01%) ⬆️
6.1-m6i.metal 84.69% <100.00%> (+<0.01%) ⬆️
6.1-m7g.metal 80.70% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

src/vmm/src/vmm_config/machine_config.rs Outdated Show resolved Hide resolved
CHANGELOG.md Show resolved Hide resolved
Allow a GDB debugging session to be started over API

Signed-off-by: Jack Thomson <[email protected]>
Add an entry for the new microVM guest kernel debugging feature

Signed-off-by: Jack Thomson <[email protected]>
Comment on lines -28 to -29
CONFIG_KGDB=y
CONFIG_KGDB_SERIAL_CONSOLE=y
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are these really not needed anymore?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah not required with this setup

@pb8o pb8o added the Status: Awaiting author Indicates that an issue or pull request requires author action label Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Awaiting author Indicates that an issue or pull request requires author action
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants