Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp1538905rwo; Wed, 2 Aug 2023 16:15:55 -0700 (PDT) X-Google-Smtp-Source: APBJJlF0B2hf22gcblnriWT5FoevzsifGpZeUljmAtzCy9TMHxdoOcJO5zamlnIbtnhqIU955GyD X-Received: by 2002:a17:906:1a:b0:98e:1c4b:10bb with SMTP id 26-20020a170906001a00b0098e1c4b10bbmr6168664eja.35.1691018155640; Wed, 02 Aug 2023 16:15:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691018155; cv=none; d=google.com; s=arc-20160816; b=hSF9tlroV2K6Yxbm+LkfnibAqZbXYi0kFJBJLhYFzgPVNM/2qRGqSl9IYI7q97luct EWKZMqipG2Nf3KuOWxz0aJrm1QAJB/2MBHd6iWJtvcr/TMC56Zbn/ka8qAJTEZD04C4a KQ4MxO/TeqqfGv5chbNeYIoUdJ88z3QzsDYCimPuaL2+SCTWF2zpNOtti0YA4zdr2koT Gc+3DvaqGvgVlVQ3417gMKF79s/2CFuxuGgSp5U/IJk85dVkg8cUiembZFRvoXdRhtNP QHswvHA+t0KEONrq2O/+Z7Safh/yzB8FIy8piuy8k2yD6Q7TQY6NZk8nBdydhH9WVSsa 55mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:dkim-signature; bh=RUKe0tndPE8THtppbQ2T+ebrmbNyYQbFqdjBVqfHPSc=; fh=jPvdAMYy3iv6b9xe7ZgpKAhSusiQZu7yL+3BsBo7QNk=; b=nu7Nj/QQkMyMFtYpmIouvBV/namvpBco9Sj92Pa/OyLVqT084UXUwQdJ+5Z0ZL1tkB G7kHA6mmBkYSUp4T2HcM+ysr22bdfhf3eTCxVxHlWIhGZkkW/RNIpH4yb4NRPwxiGZvj zofM5/8LFoKsSib76rzcFg5+m4SkwoqffvjEuxCTIORojAeNQcQFopunCSfthdRRjOoG BsY1mA8N+ORgCBoVX9F16GvNY08MBE47fCA/EtVuMmPDmXkWu/IvatVvwQUy9WWup+/E 0Dx6t+H4s7BVk+p2iZ5Km3VHHD9gFJDXyVhvRHwlpvB+as0Y2B7YqLtqxQcZEBy9RDqN l9xQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=38kWKGnI; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id me24-20020a170906aed800b00993211b85acsi11218427ejb.216.2023.08.02.16.15.30; Wed, 02 Aug 2023 16:15:55 -0700 (PDT) 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=@google.com header.s=20221208 header.b=38kWKGnI; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233883AbjHBWQv (ORCPT + 99 others); Wed, 2 Aug 2023 18:16:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59112 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231309AbjHBWQq (ORCPT ); Wed, 2 Aug 2023 18:16:46 -0400 Received: from mail-yb1-xb49.google.com (mail-yb1-xb49.google.com [IPv6:2607:f8b0:4864:20::b49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 97158271C for ; Wed, 2 Aug 2023 15:16:45 -0700 (PDT) Received: by mail-yb1-xb49.google.com with SMTP id 3f1490d57ef6-d10792c7582so253069276.3 for ; Wed, 02 Aug 2023 15:16:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1691014605; x=1691619405; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=RUKe0tndPE8THtppbQ2T+ebrmbNyYQbFqdjBVqfHPSc=; b=38kWKGnIr9nG7NEImMKN/kYSbzmt49a74eU6F0kFCbveiePdOPvNcSEILmD2Jrj89V 5s3HlMArUkW/HBVjC+BKGdl78VEbeZGDRzpzebvzFmuEnfdGuYFrCh3LXUe2ON7XsDcJ XDSLeSHsdI1bdoXHmvcO1jlgRNqVX9i7F64mW3dIaLVO9uUlcnnTV8K4Ciie8zUrBEma T3UfOaEFJQ/Gp4fnvYg3Li6J3QtmUyuB1OzkNZ28bLiFkz/bN6RFDN4Eyei9qrn/QWZT hpTPIOVK7oPnJ3vimIJk7oKHDviRjKFyB8E7Hn/7QR0uMlBKyc9mGCI06sxNJxlvAPN5 ZCXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691014605; x=1691619405; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=RUKe0tndPE8THtppbQ2T+ebrmbNyYQbFqdjBVqfHPSc=; b=IgD9fYyovwxefhRuwBhZo8fc2Z/YremRxRYYom8XWQ26P+mv8CfXoo5cuL0hp8+QdG cgg4hLh4PAj3ew3RS9/WZNPC6bI5mHEL27Qd2K+wnWzTQlQ/3bIpxDQdDeVBs9cHODNi f1PUKZLYfYacFHRNIbUd/HKEpGLDCXw1/0Z04bf0I5MzzFnNy3ipda+vzLUX7AB9svNG C2oPZW8BPxHRrIwB7E4VHBqjv9YK/SGePPH/tpIMz5r5T0c8GKor19kvhfT9s2qJMQUO 7cJT6C1Z/frK7b244ll7ruxAiekLqdOf3wxFppyGrPG2fu+DDH9JmukK5LK/7kT+MZO2 kbCA== X-Gm-Message-State: ABy/qLb5WgXG/TlSo31sch7Zi2D8wDKGpza//JaB04W2RhAfGvF1l0a9 4k1O38xHd6jrS/vFZzoj4hgCo/2vupg= X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a25:aaae:0:b0:d04:d397:352d with SMTP id t43-20020a25aaae000000b00d04d397352dmr130484ybi.4.1691014604767; Wed, 02 Aug 2023 15:16:44 -0700 (PDT) Date: Wed, 2 Aug 2023 15:16:43 -0700 In-Reply-To: Mime-Version: 1.0 References: Message-ID: Subject: Re: [PATCH 0/4] RISCV: Add kvm Sstc timer selftest From: Sean Christopherson To: Haibo Xu Cc: xiaobo55x@gmail.com, ajones@ventanamicro.com, Paul Walmsley , Palmer Dabbelt , Albert Ou , Paolo Bonzini , Shuah Khan , Anup Patel , Atish Patra , Vipin Sharma , Colton Lewis , Marc Zyngier , Andrew Jones , Vishal Annapurve , linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, kvm@vger.kernel.org, linux-kselftest@vger.kernel.org, kvm-riscv@lists.infradead.org Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL 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 Thu, Jul 27, 2023, Haibo Xu wrote: > The sstc_timer selftest is used to validate Sstc timer functionality > in a guest, which sets up periodic timer interrupts and check the > basic interrupt status upon its receipt. > > This KVM selftest was ported from aarch64 arch_timer and tested > with Linux v6.5-rc3 on a Qemu riscv64 virt machine. > > Haibo Xu (4): > tools: riscv: Add header file csr.h > KVM: riscv: selftests: Add exception handling support > KVM: riscv: selftests: Add guest helper to get vcpu id > KVM: riscv: selftests: Add sstc_timer test FYI, patch 4 will conflict with the in-flight guest printf changes[*], as will reworking the existing arch_timer test. My plan is to create an immutable tag later this week (waiting to make sure nothing explodes). I highly recommend basing v2 on top of that. [*] https://lore.kernel.org/all/20230729003643.1053367-1-seanjc@google.com