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

From: Jan Kiszka
Date: Wed Jan 04 2023 - 02:41:22 EST


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@xxxxxxxxx/

--
Siemens AG, Technology
Competence Center Embedded Linux