Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp12895036rwl; Tue, 3 Jan 2023 23:54:22 -0800 (PST) X-Google-Smtp-Source: AMrXdXuzARKpoPuyYgsgW4qNiYTw1Si3mEJ8IGfpqEfN1eb5vbblC4aE0Muk+58KONtMY/wbjFTK X-Received: by 2002:a17:907:cbc9:b0:7ad:b6d8:c9d0 with SMTP id vk9-20020a170907cbc900b007adb6d8c9d0mr42502577ejc.53.1672818861996; Tue, 03 Jan 2023 23:54:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1672818861; cv=pass; d=google.com; s=arc-20160816; b=n4WrhVZFmKYVAh+H3zhP8xp2FsR+ZpMmQmgpb3beYKnYZpz863vWP4nWyxDFpUh2+1 PgL1HJZ4iF3gTyeYXW4Qs81lGBPLJ5dNQEAwoWNyw/YIAD30fw5rsQMQl+V0f+1LDYaX C6NcyULrGQz8p8QCAFZZZ7CFuM+cd/8hxxRZH0wEy2hyAc67UNlHxtGaRBNLDojxFAGK sv1xS/n3OLIz+Kp7V+wj/W575OwkhlkP/xcoZEpYTYjGo3ibhglFuBPnRPrM7fJ2rgO+ yz4Mia+kQHvpSY7iDKjD87l9ACzug4I1ZMuo/fY3+Tte8JxvzgE8FJKO/b7KAV+lTx9I hgdw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=WPsUv0hdeXobl/MHOYuB8r7mwyQ9gdSIR5qNlZuXkJk=; b=r1sl/PKPRVNGN6yAXLxDHCkESMtiGxHXtK9UNRUyOWvCXZBpPlbv+8KwTk2vh6hvGn UMwMjdQAg30/gQNImUECkf4Im3hj9UbkHIB3BBP8Pe+cC6thHt++yidgRXVc/TGFYSld IJ58aUC6WT5UHhuFlO5WzUK2MltxFpW9Nv3BpD5jwTKP+7UYqR0VH/GFONVJuyMLwUa1 HOBHaMpRT+e7CQjWOGNZJh6fc4XF3cxCY73k7CUGThzUeZMai2AccdYWcdQM3vq5vfWl qOXJqxRaRvXffLXKSUepK3p+nfsCpOgJk1NxGHkhzjKfPZkxo+yNFyvCPPbSPtxW8j4T 6QwA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=CLi8jFzM; arc=pass (i=1 spf=pass spfdomain=siemens.com dkim=pass dkdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jg14-20020a170907970e00b007c1651709e3si31270508ejc.177.2023.01.03.23.54.08; Tue, 03 Jan 2023 23:54:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=CLi8jFzM; arc=pass (i=1 spf=pass spfdomain=siemens.com dkim=pass dkdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233173AbjADHlT (ORCPT + 57 others); Wed, 4 Jan 2023 02:41:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230251AbjADHlR (ORCPT ); Wed, 4 Jan 2023 02:41:17 -0500 Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on2084.outbound.protection.outlook.com [40.107.13.84]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23BCB109E for ; Tue, 3 Jan 2023 23:41:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jXePlQDNLD+KpKs+hC+i4CrcNP5sbZE0vyukJe3QASmlMRrGX/TGV61BZMPdykj1HtJO/SaKn3WVhi99UFtsUCpFJPiatyvpnIhjGnUiqsQ6YtgnL//mkoP8g9wbBD5KnzRsfD+0eVJSLSQT650JPQbHkG5anHsDeXG7gfYO0vgcQ2+uwGPaoozhv+DAhI/rIw4olmcIR76VTFi570xmzwJmKP2/kadcxeMaO61CceCkOsvN+/GuIZ6E6yngBwtG3iZm57x9a+9M9pht8Plfd7sRGLpgSuxwuHFt43j0sFvOnhkQsSG9Ai9tw1t3XKIc1SxvPQ02f0BCCFm+66YfxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=WPsUv0hdeXobl/MHOYuB8r7mwyQ9gdSIR5qNlZuXkJk=; b=KvaZIzoS9nNBl5SVn83lYC/43Yz85CeeMuCDZqnPJC1EcOXGpOxIxaYUxWXd9He+2m3JWk+yiXQPlreZHNLt0EgcD2hqItAv7AEM0TBMR3rRFH163Wgr6E7tDOpXqcAhBPc8EzAsFKhnSpFpffYi0k8jr/gKeYffN/3TJilktb7ljU+S+muZPe8mmKxIzpf3DTdYgZ8s963S+Hmi47DkMq65JNIK9VNDGjrMXDCzqLXPfFgCfQ1a6o3ZDBe9a+WVZz5pSQoTUdqaFMT4UWNVhDWit5DVUOOulh0uledgfIXimh2U4iMTJIDK3/rTIlyyNYAlWbhy2XxtJ0oZyMnVSw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=siemens.com; dmarc=pass action=none header.from=siemens.com; dkim=pass header.d=siemens.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=siemens.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=WPsUv0hdeXobl/MHOYuB8r7mwyQ9gdSIR5qNlZuXkJk=; b=CLi8jFzM/0bgouLW1YI4zlFPIBX/35887ZrRGgDTl6JIqt/LPTV3k9ZFcu2Dz3MeIXvlJFDaamqjThFBscbzHF8pT28iZuahEnIDGKBhmpbow7u+jk+T0stGlBlGaIuz9V219R68RzkHvdp9yHRTZelY1a6AolaWuWa4amewG2VCl6nbuOncn4mWPMQT/yi9u1AJHaieRyvfV92vRB2MyjgKQhFwN2bcSqP++PWY9gSkMHVtSPxXdCcoc2+yVz9RXpi0BR9BOXqga/wzlARKGr+PU9sQkKlDzalES9bBP7mWFO6Hq6Xay5xs+HxSruhqa2s2WeulQ1kJfyIYS3m7Yw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=siemens.com; Received: from AS4PR10MB6181.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:588::19) by DB8PR10MB3321.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:10:f8::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5944.19; Wed, 4 Jan 2023 07:41:13 +0000 Received: from AS4PR10MB6181.EURPRD10.PROD.OUTLOOK.COM ([fe80::2957:50e8:8ce6:124a]) by AS4PR10MB6181.EURPRD10.PROD.OUTLOOK.COM ([fe80::2957:50e8:8ce6:124a%9]) with mapi id 15.20.5944.019; Wed, 4 Jan 2023 07:41:13 +0000 Message-ID: Date: Wed, 4 Jan 2023 08:41:06 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [RFC PATCH 20/25] kvx: gdb: add kvx related gdb helpers Content-Language: en-US To: Yann Sionneau Cc: Kieran Bingham , linux-kernel@vger.kernel.org, Clement Leger , Guillaume Thouvenin , Dmitrii Bundin References: <20230103164359.24347-1-ysionneau@kalray.eu> <20230103164359.24347-21-ysionneau@kalray.eu> From: Jan Kiszka In-Reply-To: <20230103164359.24347-21-ysionneau@kalray.eu> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: FR3P281CA0119.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a3::19) To AS4PR10MB6181.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:588::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS4PR10MB6181:EE_|DB8PR10MB3321:EE_ X-MS-Office365-Filtering-Correlation-Id: d91c9376-595a-44ca-65c4-08daee270e0b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: x0eSphG2X2X1kKnJr/i3BfHTXjZWhTov++7NdhG98C2vFFB7/P2d8Bskat8JOpSm6xbcMX4P8gtRX36Q+kBp2WdK44di+KPPNaT98R2F1M7BRS+z+ZPmw9KioZ+QpppfskzuGpzsCDKm2eBKOOKB/K4yEjf10pT3tT8UYdFb7TZZccggw4eovZg+SHEt0q5XvanvIRfHENAA+ztQGCyECFOwVMZEkGTsrGZFaNxZi3vgF+5LB5MIuJNgrceIloD2zujDx3YexUarWTjSOSn4Eps7QEUKw5Mk90tEiJsfoLaTOVHkGJ4mTsM4wCPCopCN2ebc+qWnP6NLSnaEc74xY+ibkrca4gTKpe7TVAKSe4oWleBtcOPkwlURBMkBwcgnZrR/OD7HKt8IIbylkvDGdQowSKcrtraQvXdUASBUGdEO9Mk13WjIwEwiG/LitZEbrkteQJ3Uhul6hYEbw+tHDwtEX7p8YonsNNNGs7zWU5GCoZZJsS+bqzTeEuC5LvW4CYJBshTIShCk1EIey8a+uSxVUBG+7VCKyvgf+xt6JZxN+ujEB/CC+zbTY6CrmjnYj9C4JdyQUYjPQQOn3PagCQi5KKISE93LCxR7O7yqHZM8hmekb+DwVvPfbr0TxTGYieT1KL3IBfUaaJNsYhAtZAwSe5w77CU7gbdoIe3DVOR8OoIDnEpmpjgQsvdBGrUOZaHoWdHta1r7FiRzB3FRCj8S7mIm5Ux4N3V1Cp9g2Dw4lVArzUlRUiUdRZhJsQlmdudsKTly4UWrQ58s8Ejq9A== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AS4PR10MB6181.EURPRD10.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230022)(4636009)(396003)(376002)(366004)(39860400002)(346002)(136003)(451199015)(38100700002)(83380400001)(86362001)(31696002)(82960400001)(5660300002)(4744005)(44832011)(2906002)(66556008)(8936002)(8676002)(4326008)(66946007)(66476007)(41300700001)(2616005)(6512007)(186003)(6506007)(26005)(53546011)(6666004)(54906003)(6916009)(316002)(478600001)(966005)(6486002)(31686004)(36756003)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?L1dvYXlXdElUdFRlMzEyRm5OcGdQc0ExNjkvUTRJWGFsd0VWcThZRFA5Q3FJ?= =?utf-8?B?dHBIVFpENXNDUnF5OGNLNkFoNGdXOW8vOWJoMTVRY09wZ0RZbWl2dHhNaTlE?= =?utf-8?B?cEo2cXBIcWtoNGliRFdkK1VtOWlOZG9tcitKRzEvNDBlMXBwYVRUNW9DREtq?= =?utf-8?B?ZVRqVnEwZHIyYUhoRmliTW1JdkdnSktCcGw3Q2ZIOHhRdlc3VVZrbDR1MS9R?= =?utf-8?B?UUQ2VFJBS05kek0wMDFwWnAva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Wt4czMzbWNySjBmbkhTNmgzeXA1OUlWWkhaQ3lhdldO?= =?utf-8?B?QTM5S1g3d3lsUGNuL1RGM0Z3NWJhWnNLbUw5WE1sY0FkdnFta2MxS2N3UlNW?= =?utf-8?B?Wnc9PQ==?= X-OriginatorOrg: siemens.com X-MS-Exchange-CrossTenant-Network-Message-Id: d91c9376-595a-44ca-65c4-08daee270e0b X-MS-Exchange-CrossTenant-AuthSource: AS4PR10MB6181.EURPRD10.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jan 2023 07:41:13.4671 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 38ae3bcd-9579-4fd4-adda-b42e1495d55a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Nk5Mi5f1Zdx5SEcMX75ZgDJIJanNIYGnSrgDZ6SoBOKPabmZk+exTym4TwnQR6LEQNvvi+OSoJvSLWS46V+PbQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR10MB3321 X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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--*" 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