Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 90727C25B67 for ; Fri, 27 Oct 2023 07:57:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235002AbjJ0H5j (ORCPT ); Fri, 27 Oct 2023 03:57:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231233AbjJ0H5h (ORCPT ); Fri, 27 Oct 2023 03:57:37 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF386196 for ; Fri, 27 Oct 2023 00:57:34 -0700 (PDT) Received: from kwepemm000007.china.huawei.com (unknown [172.30.72.55]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4SGw186RG3zrTrv; Fri, 27 Oct 2023 15:54:36 +0800 (CST) Received: from [10.174.185.179] (10.174.185.179) by kwepemm000007.china.huawei.com (7.193.23.189) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.31; Fri, 27 Oct 2023 15:57:31 +0800 Subject: Re: [PATCH v2] KVM: arm64: Add tracepoint for MMIO accesses where ISV==0 To: Oliver Upton CC: , , Marc Zyngier , James Morse , Suzuki K Poulose References: <20231026205306.3045075-1-oliver.upton@linux.dev> From: Zenghui Yu Message-ID: Date: Fri, 27 Oct 2023 15:57:30 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: <20231026205306.3045075-1-oliver.upton@linux.dev> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.185.179] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To kwepemm000007.china.huawei.com (7.193.23.189) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org On 2023/10/27 4:53, Oliver Upton wrote: > It is a pretty well known fact that KVM does not support MMIO emulation > without valid instruction syndrome information (ESR_EL2.ISV == 0). The > current kvm_pr_unimpl() is pretty useless, as it contains zero context > to relate the event to a vCPU. > > Replace it with a precise tracepoint that dumps the relevant context > so the user can make sense of what the guest is doing. > > Signed-off-by: Oliver Upton Acked-by: Zenghui Yu