Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp643420rwb; Thu, 27 Jul 2023 19:41:54 -0700 (PDT) X-Google-Smtp-Source: APBJJlHkB9sbm6Y1vUV9qu8Arj4TNynX+4AOSviTD7aSU64bjahpdhqyzcb1wbW+CvEz41fgJSot X-Received: by 2002:a05:6870:9a0c:b0:1bb:790c:2115 with SMTP id fo12-20020a0568709a0c00b001bb790c2115mr1769236oab.40.1690512114177; Thu, 27 Jul 2023 19:41:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690512114; cv=none; d=google.com; s=arc-20160816; b=uWuebIunkpoi/loSAbld1aulOAKwIuIg8yTClcnnmu874yMgFFKxlijrx+xUqsF8cD 5iGvUxSkEm6HGzo4lO+07naLNzHA0rOHDcIUtWp3Qxo1D9tJhBUM41YkRszPvmmf6PbL eGvvjbs8ZQTsgG1afM+zIt3w/s9g5Jr5ATq2PYp0G+NdAi7Ct3boW8+vg7pgaOgQGzAf FnpSn7nSM0auYI8agVrvvSYMY4jI8BZGTd4Nebhzena5XJMKsHdvgVUTOUBEo9/7ehmr tEN+k3pNwafT9UYMPAC+9BpFrnhMy1ph/XW4JSESvpsoEjxWi+/a1EWYjPXYX1VMsvvC 4nOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=tmjTr+Ekzs2/OcMS11bK61qR3FE3+8TZNMuctMbi2xU=; fh=clsWTUhWuyimXTIZKsjHAHS0Rk3ihShjuVXyRema7L4=; b=kyjYmciCc/nNspKsIkqOLBuqUwiJ1Z3bHQU33AuA8DanEOBfsk5P2UxwbKIu6TSTl8 NpJtFtKZPk4SbU+uPztZjIDNr3XSQ7dmoSiD70nFxrdOEKYZu3H+Xg9RbYHbfjyOem1z l629kZnefw1DJOB78Laa6wX6Kfwxhy74mzmAh0eYydKi4Q4X4n1MKLjrrnyKCZZCuh13 yFT200HkiM/X6V7HLm1uc1T3iXi2wPs7Jqv8pFJLl0s2I8ma2CeWe20mu7UJ53tOjs3s zkeLRfJLd3d79fqQ1uIc6QvjjOW/D0mYxtS8SZ6Xd1VIS5XX/+xzwC2jw2J7jmkC3cBc JgqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=g3XKJEBs; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v12-20020a63f84c000000b00563f8ccc0a1si2148561pgj.576.2023.07.27.19.41.42; Thu, 27 Jul 2023 19:41:54 -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=@gmail.com header.s=20221208 header.b=g3XKJEBs; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232135AbjG1Bhw (ORCPT + 99 others); Thu, 27 Jul 2023 21:37:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229479AbjG1Bhv (ORCPT ); Thu, 27 Jul 2023 21:37:51 -0400 Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3731D213F; Thu, 27 Jul 2023 18:37:50 -0700 (PDT) Received: by mail-lj1-x22e.google.com with SMTP id 38308e7fff4ca-2b9c66e2e36so13951681fa.1; Thu, 27 Jul 2023 18:37:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690508268; x=1691113068; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=tmjTr+Ekzs2/OcMS11bK61qR3FE3+8TZNMuctMbi2xU=; b=g3XKJEBsMYV3c0Kt8g5oFFYp9QszFI4Xi44G0Vw+EBF1HesmjK55TbMbLP9qV1nrWq hqs3p0Uql3PmXLMlboft9T8dJATBm1bmt71uxJ0xe0ZpnzS65vPIrluuodviQhC7Vmbu belTfY1/A6XVbJd1Ca21hzt5C97wjfwHGqAZtnw+H9aPkbpp1xBMDkOHH1NT2/aSp49o QFEfxSo6zTyPkfaj3tIAOiCtWt11HHT6uZoGAqbc1b+HKjtfZdQ6vxa/h8pyedq5hiuf PCjjB7IZkdYe4ZiTc6OYPdx4bzbysqSB+7Oq8uh2akBDNMVUs1LyTg5dz32Nba9MpHrA SBuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690508268; x=1691113068; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=tmjTr+Ekzs2/OcMS11bK61qR3FE3+8TZNMuctMbi2xU=; b=fJFZfgGeU5nlpUsySnjWmJIYBO2DHlb79MsXGYgo84SH/qkI5IlO/43o3Osu7tOfLy LS0I+CqmDn0TxRylR6C9Et5YOrsmsAwDhHLutbFHL3NmEFQV8n5ZhQplRqqpTySsQron xoaeTSWgCWtbl+Fx4ilf71WVduYv0Mp1USjsnf0oPh77yf2UlSEvPp50C1sKxSLtWISS RCGjvm2bsvgQW/9sXeAaLsC15OsSZB/Wf6xDjvdxxxTVoi3Zqswh18nHZbm0tEOoY1zw VKCjaDEzMD4sR7DCuLWLrRF0MOXUUBAFKH5SU9ghGyGM5YYhEsGYoE8AzTxVomlkevYF 94Gg== X-Gm-Message-State: ABy/qLZa4+OPY/jnbm1nz7QHnvllB8EAzlK0yMqk37zr95ymvBrIvyqf OCvwZiqzzLHYeFR6qdTtoa+d5kMInMtU+lWcxG0= X-Received: by 2002:a2e:b4b1:0:b0:2b9:b1fb:5ff4 with SMTP id q17-20020a2eb4b1000000b002b9b1fb5ff4mr1360093ljm.21.1690508268189; Thu, 27 Jul 2023 18:37:48 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Haibo Xu Date: Fri, 28 Jul 2023 09:37:36 +0800 Message-ID: Subject: Re: [PATCH 0/4] RISCV: Add kvm Sstc timer selftest To: Sean Christopherson Cc: Haibo Xu , 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="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 at 11:14=E2=80=AFPM Sean Christopherson wrote: > > 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. > > Would it be possible to extract the ARM bits from arch_timer and make the= bulk of > the test common to ARM and RISC-V? At a glance, there is quite a bit of = copy+paste. Sure, I will have a try to consolidate the common code for ARM and RISC-V i= n v2. Thanks, Haibo