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

Support GDB on AArch64 #4355

Closed
wants to merge 7 commits into from

Commits on Aug 12, 2022

  1. vmm: Use temporary gdbstub_arch for test

    This is only for test purpose before `gdbstub_arch` modification is
    upstreamed.
    
    Signed-off-by: Michael Zhao <michael.zhao@arm.com>
    michael2012z committed Aug 12, 2022
    Copy the full SHA
    d44682d View commit details
    Browse the repository at this point in the history
  2. hypervisor: Update kvm-ioctls to main branch

    Signed-off-by: Michael Zhao <michael.zhao@arm.com>
    michael2012z committed Aug 12, 2022
    Copy the full SHA
    ef22702 View commit details
    Browse the repository at this point in the history
  3. vmm: Enable gdbstub on AArch64

    The `gva_translate` function is still missing, it will be added with a
    separate commit.
    
    Signed-off-by: Michael Zhao <michael.zhao@arm.com>
    michael2012z committed Aug 12, 2022
    Copy the full SHA
    54593fb View commit details
    Browse the repository at this point in the history
  4. vmm: Implement translate_gva on AArch64

    On AArch64, `translate_gva` API is not provided by KVM. We implemented
    it in VMM by walking through translation tables.
    
    Address translation is big topic, here we only focus the scenario that
    happens in VMM while debugging kernel. This `translate_gva`
    implementation is restricted to:
     - Exception Level 1
     - Translate high address range only (kernel space)
    
    This implementation supports following Arm-v8a features related to
    address translation:
     - FEAT_LPA
     - FEAT_LVA
     - FEAT_LPA2
    
    The implementation supports page sizes of 4KiB, 16KiB and 64KiB.
    
    Signed-off-by: Michael Zhao <michael.zhao@arm.com>
    michael2012z committed Aug 12, 2022
    Copy the full SHA
    c732b2e View commit details
    Browse the repository at this point in the history
  5. hypervisor: Enable gdb HW breakpoint on AArch64

    Signed-off-by: Michael Zhao <michael.zhao@arm.com>
    michael2012z committed Aug 12, 2022
    Copy the full SHA
    5f994cc View commit details
    Browse the repository at this point in the history
  6. vmm: Enable GDB HW Watchpoint

    This commit setup the skeleton of HW watchpoint support.
    
    Signed-off-by: Michael Zhao <michael.zhao@arm.com>
    michael2012z committed Aug 12, 2022
    Copy the full SHA
    10e7cc6 View commit details
    Browse the repository at this point in the history
  7. hypervisor: Implement GDB HW Watchpoint on AArch64

    Note: This is a temporary commit.
    Now there is problem, still testing.
    
    Signed-off-by: Michael Zhao <michael.zhao@arm.com>
    michael2012z committed Aug 12, 2022
    Copy the full SHA
    222a416 View commit details
    Browse the repository at this point in the history