From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 906D7C43461 for ; Tue, 15 Sep 2020 13:43:42 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 15A7821D24 for ; Tue, 15 Sep 2020 13:43:42 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="oMiEkjUi"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="p6GnfrX0"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Dq6P7yt4" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 15A7821D24 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=pQ5kYM7iVtZ+V15vKcU2UL8mobZcPhU0W0Hxte+TdwQ=; b=oMiEkjUi0NUTeNXfsMzv9dbpV 2MCRKkj4nPvPsqCYyaYqvPlvr/QmdwIGnRfpLXO9EqeEwT1W1HvHr4gWVBrb8flypDzpnBhGoCoZ0 3jVId09qWRHbARJbGIseFT7iu4qWcl3OpnVhBHEVu6yKkOB2He40EYLyIrriLzkOAGBFLyWhqeyRK cHYwrrTCDhoL8inTYRi3cSSc9fwvpNbo1pSul2w/DhT6zLvniW0r68vT/1AZnP+ZgsEYnnw+FakZ4 lGd7HRaF7JUyCh1n6+s55sMTosxtkoL5Np+HZWLZVFmrPoH+x9VpjpFW+m9bl+ALwmjMZfxN4z9TX kZKHS3VCg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIBDU-0005wn-S2; Tue, 15 Sep 2020 13:41:52 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIBDA-0005ok-Hi for linux-arm-kernel@merlin.infradead.org; Tue, 15 Sep 2020 13:41:32 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=U45qCGtx9SVaBksmUnSx/1V6QHxz6FpyJ904HDB98F4=; b=p6GnfrX0Ax7f4B/9cWvuQWtMq3 h0QJgYoxUIZBClxQu7kUbH1l3ygmaWuYeVQx4QMchPVIUu8H9HcxGGqIaQtLIJhy1x5QTKLDaz2TX 1+MgcWNTTiG5J+uL1H2PUMXV8DxX7k45w0aTn1uA9BWDXyjdp484ZvTi38HlL0x8ZJeDgsPeQoRFt Yo5k6Wcg1dyFlxt2g9O71ejY1MYpKliBOCtc2pmsR8ddXVfG3MwIKqNMMENiXcVSMEHHrvUkBU7yI X1rZkbc9YNJ9VvnEem/1wC7oltjRsk+iLaIeOl8yNqOL+PUUl0ETck4OYK7pN0rJdWfcquWQINM24 smtnywUg==; Received: from mail-pf1-x443.google.com ([2607:f8b0:4864:20::443]) by casper.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIAtg-0001jb-7F for linux-arm-kernel@lists.infradead.org; Tue, 15 Sep 2020 13:21:31 +0000 Received: by mail-pf1-x443.google.com with SMTP id d9so1934867pfd.3 for ; Tue, 15 Sep 2020 06:21:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=U45qCGtx9SVaBksmUnSx/1V6QHxz6FpyJ904HDB98F4=; b=Dq6P7yt4vj+kizZ4X9Ka3FEDRZJJNwBd525w8mw2F0pDzjVGt/f46wofiMMuWzlZSy 6dpC7e9tI0tcmpbWZpxR95EY5RHK50QlZ3L1X0dscEPg7HeTfsYaFXuLmZFF+pJq8APu Rmh34lYvYtod6hZ4y3PhSgSdW1blhiJfIp4o4XbRBbuFlDvxj/YzIrE2xwT9Z5zkzEBw lylondjpwN9uiXnwh3GRQWfOFeESfRbRFf3svHbjhbkVyK0paBglYDn88r9ShiW5btj8 38i35kFCtLUQZgEaXeEiCTG+Q0mJo5TCSULLPBz5A0RDRKtYfM9t5O7qlOoZES+WUVXK DCJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=U45qCGtx9SVaBksmUnSx/1V6QHxz6FpyJ904HDB98F4=; b=BfbrsFJ77iLqTK40FO0Diuj+O7BFdw3XFF7dd48mNnMR9K1TLBEsdzoR9fAIbD6fGQ OyN7va/GOwYZ/59tH8lkh1JdNBrzTM/xTj+PZv7dxvyyL/shiFHQDTSNefSd3B6iSC0I sV8Apk4aOIAYG5CUzKV9bxoCftbx2FURN00Q2WX7U+dUTuAl/goRKqOD62WhJULBiGJ9 9flOl9VlZ5C0Y2RU2FImfdmy5JwkV9o6XyjQUkpgqPeGR9zboJ4fLXLdkJvJPb1ZrKdl A1jlRxLj9/orb1HYF8Vm4kKWnUy8rCd0HR5kBQsS1p7i/OxfAQlZRoYNemxrN2Jo3T9y gE6A== X-Gm-Message-State: AOAM532WCXoRb5ArfMcGmtFs8lb21GUmfOUirJoELvxWYcVSLFP9b6u4 SQIU/ulFfDs8W7rvsLEexCiLVw== X-Google-Smtp-Source: ABdhPJwU7lrcEWwdOVdx2+8cCwzNgDde0rPw4DppzG5Tv00KspesNfv6+Ridx1pPq0GwM7Uu8svg3g== X-Received: by 2002:a05:6a00:1481:b029:142:2501:35d7 with SMTP id v1-20020a056a001481b0290142250135d7mr1882690pfu.55.1600176077733; Tue, 15 Sep 2020 06:21:17 -0700 (PDT) Received: from leoy-ThinkPad-X240s ([2600:3c01::f03c:91ff:fe8a:bb03]) by smtp.gmail.com with ESMTPSA id i2sm12077498pfq.89.2020.09.15.06.21.13 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 15 Sep 2020 06:21:17 -0700 (PDT) Date: Tue, 15 Sep 2020 21:21:09 +0800 From: Leo Yan To: Sergey Senozhatsky Subject: Re: [PATCHv2] perf kvm: add kvm-stat for arm64 Message-ID: <20200915132109.GB32758@leoy-ThinkPad-X240s> References: <20200915091140.152775-1-sergey.senozhatsky@gmail.com> <20200915103644.GA32758@leoy-ThinkPad-X240s> <20200915105702.GA604@jagdpanzerIV.localdomain> <20200915111541.GB604@jagdpanzerIV.localdomain> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200915111541.GB604@jagdpanzerIV.localdomain> User-Agent: Mutt/1.9.4 (2018-02-28) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200915_142124_573754_B2E9F9D6 X-CRM114-Status: GOOD ( 17.47 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mathieu Poirier , Peter Zijlstra , John Garry , linux-kernel@vger.kernel.org, Suleiman Souhlal , Namhyung Kim , Will Deacon , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, Sep 15, 2020 at 08:15:41PM +0900, Sergey Senozhatsky wrote: > On (20/09/15 19:57), Sergey Senozhatsky wrote: > > On (20/09/15 18:36), Leo Yan wrote: > > > > +#define HVC_STUB_ERR 0xbadca11 > > > > + > > > > +/* Per asm/kvm_asm.h */ > > > > +#define ARM_EXCEPTION_IRQ 0 > > > > +#define ARM_EXCEPTION_EL1_SERROR 1 > > > > +#define ARM_EXCEPTION_TRAP 2 > > > > +#define ARM_EXCEPTION_IL 3 > > > > > > Nitpick: from completeness, we also can give out KVM exiting reason > > > for 'ARM_EXCEPTION_IL'. > > > > OK, let me take a look. > > I think ARM_EXCEPTION_IL are reported as HYP_GONE. According to > arch/arm64/include/asm/kvm_asm.h > > --- > #define ARM_EXCEPTION_IRQ 0 > #define ARM_EXCEPTION_EL1_SERROR 1 > #define ARM_EXCEPTION_TRAP 2 > #define ARM_EXCEPTION_IL 3 > > #define kvm_arm_exception_type \ > {ARM_EXCEPTION_IRQ, "IRQ" }, \ > {ARM_EXCEPTION_EL1_SERROR, "SERROR" }, \ > {ARM_EXCEPTION_TRAP, "TRAP" }, \ > {ARM_EXCEPTION_HYP_GONE, "HYP_GONE" } > --- > > So it should be reported already. Thanks for double checking. But I still think this is incorrect, ARM_EXCEPTION_HYP_GONE is defined as HVC_STUB_ERR (0xbadca11), which is different from ARM_EXCEPTION_IL (3). So I don't understand why you have the conclusion that 'ARM_EXCEPTION_IL are reported as HYP_GONE'. Sorry if I miss anything for this. Thanks, Leo _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel