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
Support GDB on AArch64 #4355
Conversation
73cbf65
to
bd5df09
Compare
A PR for AArch64 support on I will rebase when it got merged. |
Hi, I'm the author of daniel5151/gdbstub#109, which was written for @michael2012z, given that you've implemented a very similar AFAIU, the current code in this repo for supporting GDB (on x86) was derived from |
Hi, @ptosi Thanks for connecting. My implementation of Regarding the code of Guest Address translation. Sorry I cannot contribute to crosvm directly now, due to the lack of legal approval, you know. :) But please feel free to port the code here by yourself. I am exciting if you can use the code in crosvm as well. |
17388e6
to
d3a68f8
Compare
d3a68f8
to
b1b1c63
Compare
This is only for test purpose before `gdbstub_arch` modification is upstreamed. Signed-off-by: Michael Zhao <michael.zhao@arm.com>
Signed-off-by: Michael Zhao <michael.zhao@arm.com>
The `gva_translate` function is still missing, it will be added with a separate commit. Signed-off-by: Michael Zhao <michael.zhao@arm.com>
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>
Signed-off-by: Michael Zhao <michael.zhao@arm.com>
This commit setup the skeleton of HW watchpoint support. Signed-off-by: Michael Zhao <michael.zhao@arm.com>
Note: This is a temporary commit. Now there is problem, still testing. Signed-off-by: Michael Zhao <michael.zhao@arm.com>
c74e282
to
222a416
Compare
@michael2012z It's cool that you got aarch64 support working with Cloud Hypervisor and it looks like that when the aarch64 support lands upstream in Obviously you can reference your fork/branch from the github discussion! |
No problem, @rbradford . It's better close now and I will PR again when I think it will be a while before the dependency is ready. |
Fixes #3980
Now this is a draft. There is still some work to do:
gdbstub_arch
which is on review, will update to new release ofgdbstub_arch