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 server inside microvms #700

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

usamasaqib
Copy link
Contributor

@usamasaqib usamasaqib commented Mar 20, 2024

What does this PR do?

This PR adds a qemu command line option to start the gdb server inside the microvms.

Which scenarios this will impact?

Motivation

The motivation here is to allow developers to attach gdb to running VMs for debugging the kernel.
There are multiple use cases for this, for example:

  • Debugging eBPF verification flow.
  • Debugging loaded eBPF programs.
  • Inspecting kernel memory to dump eBPF maps.

Additional Notes

@usamasaqib usamasaqib requested a review from a team as a code owner March 20, 2024 13:01
@@ -139,6 +139,9 @@ func newDomainConfiguration(e *config.CommonEnvironment, set *vmconfig.VMSet, vc
hostOS = "linux" // Remote VMs are always on Linux hosts
}

qemuArgs := map[string]pulumi.StringInput{
"-s": pulumi.String(""),
Copy link
Member

Choose a reason for hiding this comment

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

do we always want this? Can you add a comment about what this flag does too?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants