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

Gdb server #2168 #2333

Commits on Feb 18, 2021

  1. GDB server: Add gdb server skeleton

    Signed-off-by: Marius-Cristian Baciu <baciumar@amazon.com>
    baciumar authored and kumargu committed Feb 18, 2021
    Configuration menu
    Copy the full SHA
    6e30e47 View commit details
    Browse the repository at this point in the history
  2. GDB server: Add PoC for the address translation

    Signed-off-by: Marius-Cristian Baciu <baciumar@amazon.com>
    baciumar authored and kumargu committed Feb 18, 2021
    Configuration menu
    Copy the full SHA
    ebb4e09 View commit details
    Browse the repository at this point in the history
  3. GDB server: Add initial implementation

    This provides support for breakpoints
    
    Signed-off-by: Marius-Cristian Baciu <baciumar@amazon.com>
    baciumar authored and kumargu committed Feb 18, 2021
    Configuration menu
    Copy the full SHA
    a9904d7 View commit details
    Browse the repository at this point in the history
  4. GDB server: Add seccomp rule

    The KVM_SET_GUEST_DEBUG ioctl enables the handling of a trap signal,
    generated when execution reaches a breakpoint or single-stepping
    is enabled. An alternative to this seccomp rule would be
    requiring the execution of the guest under GDB to be performed
    with seccomp disabled
    
    Signed-off-by: Marius-Cristian Baciu <baciumar@amazon.com>
    baciumar authored and kumargu committed Feb 18, 2021
    Configuration menu
    Copy the full SHA
    97a620d View commit details
    Browse the repository at this point in the history
  5. GDB server: Refactor initial implementation

    Improve readability, define proper error types and add support
    for early-boot virtual address access
    
    Signed-off-by: Marius-Cristian Baciu <baciumar@amazon.com>
    baciumar authored and kumargu committed Feb 18, 2021
    Configuration menu
    Copy the full SHA
    978d581 View commit details
    Browse the repository at this point in the history
  6. GDB server: Solve address translation bug

    Cases in which PDPTE's PS flag would be 1 or PDE's PS flag
    would be 0 were not properly treated.
    This problem only manifested itself later in the boot process
    (e.g., register_virtio_device for a stack address)
    
    Signed-off-by: Marius-Cristian Baciu <baciumar@amazon.com>
    baciumar authored and kumargu committed Feb 18, 2021
    Configuration menu
    Copy the full SHA
    c9a274f View commit details
    Browse the repository at this point in the history
  7. GDB server: Alter address-translation approach

    Removed the option of setting breakpoints at linear addresses in
    early boot. The support for it contained a work-around and not
    all inconsistencies at the client could have been solved on the
    server side (e.g.: "info breakpoints" would not display such a
    breakpoint as "hit" when it was the case).
    
    Signed-off-by: Marius-Cristian Baciu <baciumar@amazon.com>
    baciumar authored and kumargu committed Feb 18, 2021
    Configuration menu
    Copy the full SHA
    f7d6325 View commit details
    Browse the repository at this point in the history
  8. GDB server: Add command-line option for GDB

    Specifying the --debugger argument will enable GDB guest debugging
    for the current session; not specifying it leads to normal execution
    
    Signed-off-by: Marius-Cristian Baciu <baciumar@amazon.com>
    baciumar authored and kumargu committed Feb 18, 2021
    Configuration menu
    Copy the full SHA
    aec2890 View commit details
    Browse the repository at this point in the history
  9. GDB server: Apply cargo fmt

    Signed-off-by: Marius-Cristian Baciu <baciumar@amazon.com>
    baciumar authored and kumargu committed Feb 18, 2021
    Configuration menu
    Copy the full SHA
    ce170b3 View commit details
    Browse the repository at this point in the history
  10. GDB server: Update tests impacted by changes

    Adding a "debugger_enabled" argument to some public functions
    impacted some unit and integration tests
    
    Signed-off-by: Marius-Cristian Baciu <baciumar@amazon.com>
    baciumar authored and kumargu committed Feb 18, 2021
    Configuration menu
    Copy the full SHA
    a760af8 View commit details
    Browse the repository at this point in the history
  11. GDB server: Small update

    Change virt_to_phys() function signature so that it only
    receives the data it actually needs
    
    Signed-off-by: Marius-Cristian Baciu <baciumar@amazon.com>
    baciumar authored and kumargu committed Feb 18, 2021
    Configuration menu
    Copy the full SHA
    8598e4c View commit details
    Browse the repository at this point in the history
  12. GDB server: Add unittest for virt_to_phys()

    This unittest verifies the virtual-to-physical address
    translation is properly performed in the early boot process
    of a kernel
    
    Signed-off-by: Marius-Cristian Baciu <baciumar@amazon.com>
    baciumar authored and kumargu committed Feb 18, 2021
    Configuration menu
    Copy the full SHA
    b84ca0b View commit details
    Browse the repository at this point in the history
  13. Update start of debugging session mechanism

    Before, a target remote command would start the guest VM
    and would let it wait at the entry point. This commit
    offers the user the responsibility of issuing a continue
    command in the beginning so that the VM starts and executes
    until reaching the entry point. This is also aligned
    with the practice used in IDEs of starting the debugging
    process with a default continue.
    
    Signed-off-by: Marius-Cristian Baciu <baciumar@amazon.com>
    baciumar authored and kumargu committed Feb 18, 2021
    Configuration menu
    Copy the full SHA
    024d29e View commit details
    Browse the repository at this point in the history
  14. Improve code readability

    Add comments, remove magic numbers, etc.
    Also, add support for setting multiple registers
    
    Signed-off-by: Marius-Cristian Baciu <baciumar@amazon.com>
    baciumar authored and kumargu committed Feb 18, 2021
    Configuration menu
    Copy the full SHA
    3d02fee View commit details
    Browse the repository at this point in the history
  15. Update listening address:port

    This update allows for connection on any host interface and
    on a port that is easily accessible for a EC2 host
    
    Signed-off-by: Marius-Cristian Baciu <baciumar@amazon.com>
    baciumar authored and kumargu committed Feb 18, 2021
    Configuration menu
    Copy the full SHA
    dcffe1d View commit details
    Browse the repository at this point in the history
  16. Update code according to style tests checks

    Signed-off-by: Marius-Cristian Baciu <baciumar@amazon.com>
    baciumar authored and kumargu committed Feb 18, 2021
    Configuration menu
    Copy the full SHA
    327b9ac View commit details
    Browse the repository at this point in the history
  17. Address small review comments and run cargo fmt

    Add a few code comments and fix some minor code style issues
    
    Signed-off-by: Marius-Cristian Baciu <baciumar@amazon.com>
    baciumar authored and kumargu committed Feb 18, 2021
    Configuration menu
    Copy the full SHA
    b62deb4 View commit details
    Browse the repository at this point in the history
  18. Add documentation

    Signed-off-by: Marius-Cristian Baciu <baciumar@amazon.com>
    baciumar authored and kumargu committed Feb 18, 2021
    Configuration menu
    Copy the full SHA
    314ea4b View commit details
    Browse the repository at this point in the history
  19. use upstream kvm-ioclt

    Signed-off-by: kumargu <kumargu@amazon.com>
    kumargu committed Feb 18, 2021
    Configuration menu
    Copy the full SHA
    82189a3 View commit details
    Browse the repository at this point in the history

Commits on Feb 23, 2021

  1. Rebase and resolve merge conflicts

    Signed-off-by: kumargu <kumargu@amazon.com>
    kumargu committed Feb 23, 2021
    Configuration menu
    Copy the full SHA
    ccfb398 View commit details
    Browse the repository at this point in the history
  2. Add filters to support x86_64

    Signed-off-by: kumargu <kumargu@amazon.com>
    kumargu committed Feb 23, 2021
    Configuration menu
    Copy the full SHA
    84e2296 View commit details
    Browse the repository at this point in the history
  3. Replace struct_util with ByteValued

    Signed-off-by: kumargu <kumargu@amazon.com>
    kumargu committed Feb 23, 2021
    Configuration menu
    Copy the full SHA
    abaeb9e View commit details
    Browse the repository at this point in the history
  4. Add licence

    Signed-off-by: kumargu <kumargu@amazon.com>
    kumargu committed Feb 23, 2021
    Configuration menu
    Copy the full SHA
    cbff1f1 View commit details
    Browse the repository at this point in the history
  5. Fix markdown errors in doc

    Signed-off-by: kumargu <kumargu@amazon.com>
    kumargu committed Feb 23, 2021
    Configuration menu
    Copy the full SHA
    192bc85 View commit details
    Browse the repository at this point in the history

Commits on Aug 3, 2021

  1. Configuration menu
    Copy the full SHA
    5e973ea View commit details
    Browse the repository at this point in the history

Commits on Aug 17, 2021

  1. Page walk POC

    kumargu committed Aug 17, 2021
    Configuration menu
    Copy the full SHA
    e946840 View commit details
    Browse the repository at this point in the history