Re: [RFC PATCH 20/25] kvx: gdb: add kvx related gdb helpers

Jan Kiszka
2023-01-04T07:41:22Z

On 03.01.23 17:43, Yann Sionneau wrote:
> Add kvx related gdb helpers:
> * lx-kvx-tlb-access
> * lx-kvx-tlb-decode
> * lx-kvx-page-table-walk
> * lx-kvx-virt-to-phys

Dmitrii just proposed translate-vm [1], just x86-only so far. Would be
good to use that scheme, maybe even watch out for chances to factor out
arch-independent logic if there is any.

In general, it would be good to define helpers that can be implemented
by other archs as well and stay away from "lx-<my-special-arch>-*"
unless there is really something valuable to add that only makes sense
for that arch.

Jan

[1]
https://lore.kernel.org/lkml/20230102171014.31408-1-dmitrii.bundin.a@gmail.com/

--
Siemens AG, Technology
Competence Center Embedded Linux