Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5345869rdb; Wed, 13 Dec 2023 06:18:28 -0800 (PST) X-Google-Smtp-Source: AGHT+IFi7A2nen+Ers2tRQjwW282zBirUTeOVgaBqmjXssxsPfHz/BHVhz8kwpXqyTDT/V7yX7Bs X-Received: by 2002:a05:6a21:1a3:b0:190:21e:f1c6 with SMTP id le35-20020a056a2101a300b00190021ef1c6mr4703700pzb.55.1702477107952; Wed, 13 Dec 2023 06:18:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702477107; cv=none; d=google.com; s=arc-20160816; b=gE3LoBAWwYs0SEaHCKj+YDgxi7IW1xrFK9+Z2ICtZy93QG+tOQ+x7U9DAXLjh2sW4Z hCQEbSQELPRKJm579YfKHb3+L6LMOY8ykM2CdqszevM2Dqcl4H3X7ifOlf0ApJpA5AYp XJUdtGL9jhe7nz//tiLNQJYsl8HAAF0U8bWwQaeAsXJKyQhu1tXlobJm0K2eYqeYaSwb HkYpZOdLCM+xNtlju54Ba5AOgjGfpflYV8BCA8+MzT8nhfq+fx8iRQe6xkqKcIod+BZN 6BoEBVJ8+F6WCvsBy4g5/Tl7BG5kLPFjU8udJagW1RDAQ+GP4aru3afSCxEHWHHs87Q1 GwLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=pMvhSkMSE/Am1VRqFroHUAOOjs4iyetVHF646YQvvOI=; fh=CPuIKbNPfg4aW12Y/or+RD1P6XI/E/ee2Grtxt396ns=; b=n4WoFlPwQ0vSJ7TSasskv07wmgGz/48lkL1ReltM512XNiih/0LhFBxyH4Q664gn6x Mw3u9pIv+0tlYObN1NrneoVp2ATBHp3XdPZCSo5f4dZcetoZ6ELQBfVyORYQEFThNM4k xVaCSp+OXGD8vnV0F3zKRC2iR0KmnQ22GIaNk+fu+Zm5yqYAeCPZ+ezpPol16BMZUj49 miEwgl+aAMsfJ0MM/oeHSfkaMjKxm0gmAAydcVjM3YvTo0/APKFnYPZAlr5pSvsDf10h T9GTOggJCKIkDFCi4zwMxZbyq5QYz/2Ui1vl5Ge8rs4LutvPyBQzOASzBjc4UEoL8YBt UkEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=KXYuAUC+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id o10-20020a63e34a000000b00565e0624182si9580510pgj.404.2023.12.13.06.18.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 06:18:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=KXYuAUC+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 7AF21826D94F; Wed, 13 Dec 2023 06:18:25 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1441849AbjLMOSM (ORCPT + 99 others); Wed, 13 Dec 2023 09:18:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379150AbjLMOSL (ORCPT ); Wed, 13 Dec 2023 09:18:11 -0500 Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 67420AC for ; Wed, 13 Dec 2023 06:18:17 -0800 (PST) Received: by mail-wr1-x42d.google.com with SMTP id ffacd0b85a97d-3363aa1b7d2so587436f8f.0 for ; Wed, 13 Dec 2023 06:18:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1702477096; x=1703081896; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=pMvhSkMSE/Am1VRqFroHUAOOjs4iyetVHF646YQvvOI=; b=KXYuAUC+oqLsgtArLl7kxsnNfiAs/D34549ViQ0T1w5JcR9DNL28cPsX+eWz3UwAEI 8TGxKAGhiHTDqXwxikPbTDIYsfGc4qz0CXNybP4ZvwhunNjpGqwoEBEStVAiDGKJe8aa SqmIsR2JUija7SjRcSPZ7kTQkZSUzWGclN4L4pjxloK+W6jrXw1VyKOZM0EQaBOLyVO5 5Iw/UZwCuGW+grdag38FnL7ZMSt5IdyTfkQ7R8QTVGva1uVbepKOUXuyeAMqX+CjadKM oKynrpFp6eKIBrR1gelKAQhQjwWf/0jHrpmw7ioGp0Z3IeAHN5h/5JWXvrPIeCdR9KyJ qWxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702477096; x=1703081896; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=pMvhSkMSE/Am1VRqFroHUAOOjs4iyetVHF646YQvvOI=; b=nV/p6CiSsLl72dzP15D8v/prjkDkfvaQnPSyyGdZByLCGRWWvc1ao6ln7z+wpOmBnz ApCPDfXHu2zJMbdiku3HZngmVFxu6XOul+oaH0a/Br/mRgXZ0/2f5nMTIBCcGmUUbsN8 yqpirxq1+MAKVaarQhrKKDsacfrDL+zbJlSPXGrEeKPiM4yNKSzUddYjV89nlv/GdHXc W/9z+byCzThG2kDIBG0/aTBqwh5q7DGa9zVwcZtIItxkTWV8ob4wjcjnDp1+D1w0Yv7/ hF95pmKNu/WOsChQDweRz4OfZJiJPMvBREO1od2+08Ru2rbq+yV1clFcUrasj165rEKZ 6kIg== X-Gm-Message-State: AOJu0YznCZMUR4w1Nponnji4l6hagt6QfLbCx3Cnj3G/tvs/tzWXCTBF 7fhxp42MBbOjF6EiyXZMB5zRcA== X-Received: by 2002:a5d:6242:0:b0:333:3c06:b433 with SMTP id m2-20020a5d6242000000b003333c06b433mr2848127wrv.0.1702477095654; Wed, 13 Dec 2023 06:18:15 -0800 (PST) Received: from localhost (2001-1ae9-1c2-4c00-20f-c6b4-1e57-7965.ip6.tmcz.cz. [2001:1ae9:1c2:4c00:20f:c6b4:1e57:7965]) by smtp.gmail.com with ESMTPSA id v16-20020adfa1d0000000b003362e9b75c3sm4056912wrv.88.2023.12.13.06.18.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 06:18:15 -0800 (PST) Date: Wed, 13 Dec 2023 15:18:14 +0100 From: Andrew Jones To: Haibo Xu Cc: xiaobo55x@gmail.com, Paul Walmsley , Palmer Dabbelt , Albert Ou , Paolo Bonzini , Shuah Khan , Marc Zyngier , Oliver Upton , James Morse , Suzuki K Poulose , Zenghui Yu , Anup Patel , Atish Patra , Guo Ren , Mayuresh Chitale , Greentime Hu , Daniel Henrique Barboza , Conor Dooley , Jisheng Zhang , Minda Chen , Samuel Holland , Sean Christopherson , Peter Xu , Like Xu , Vipin Sharma , Maciej Wieczor-Retman , Aaron Lewis , Thomas Huth , linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, kvm@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, kvm-riscv@lists.infradead.org Subject: Re: [PATCH v4 10/11] KVM: riscv: selftests: Add sstc timer test Message-ID: <20231213-4ba5fcc75b41cd19ec96f08e@orel> References: <3bb7d5ae5a1a016e970faa0759c47214c9391b19.1702371136.git.haibo1.xu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3bb7d5ae5a1a016e970faa0759c47214c9391b19.1702371136.git.haibo1.xu@intel.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Wed, 13 Dec 2023 06:18:25 -0800 (PST) On Tue, Dec 12, 2023 at 05:31:19PM +0800, Haibo Xu wrote: > Add a KVM selftests to validate the Sstc timer functionality. > The test was ported from arm64 arch timer test. > > Signed-off-by: Haibo Xu > --- > tools/testing/selftests/kvm/Makefile | 1 + > .../selftests/kvm/aarch64/arch_timer.c | 12 +- > tools/testing/selftests/kvm/arch_timer.c | 10 +- > .../selftests/kvm/include/riscv/arch_timer.h | 71 ++++++++++++ > .../selftests/kvm/include/riscv/processor.h | 10 ++ > .../selftests/kvm/include/timer_test.h | 5 +- > .../testing/selftests/kvm/riscv/arch_timer.c | 107 ++++++++++++++++++ > 7 files changed, 206 insertions(+), 10 deletions(-) > create mode 100644 tools/testing/selftests/kvm/include/riscv/arch_timer.h > create mode 100644 tools/testing/selftests/kvm/riscv/arch_timer.c > Reviewed-by: Andrew Jones