Received: by 2002:ac8:45c5:0:b0:405:464a:c27a with SMTP id e5csp1256535qto; Thu, 27 Jul 2023 09:05:07 -0700 (PDT) X-Google-Smtp-Source: APBJJlHF9g5UawdvRHS5qEKNt0SGSC1h8uOyZNl4NhYHZAixu66BQlTDKP8iRiw8t9Jb4iHqNA/o X-Received: by 2002:a05:6a20:7d86:b0:130:a400:1d65 with SMTP id v6-20020a056a207d8600b00130a4001d65mr3838522pzj.14.1690473907108; Thu, 27 Jul 2023 09:05:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690473907; cv=none; d=google.com; s=arc-20160816; b=mk595+AndniKPmBHSqGXampN0JeP2dAr50BPjEQLbHA4gr7H+HiNpq12P8yd+obMD5 /SCL/4Cv6BZSCgNjmGIJE1B5FI2nLFbZiQGOwDeasJjxxswAkOrQxrxLfcf5QKAsc8f4 H9mFlLErWSVOzkcMXTYkSwRqQ5JUNBPeS/MEuEZ8ovqLwssfnTJwlGONcSFqvWxYV0uj hQGAlAwIWMMI/j01L+5Ov/udqs23wLyHYvYj4cjEsMSvLXxcOAjkmd1mmA4ZmwaL3FZp kD/xy563jdxWEoyl41sOw5KoM9dBaWXjmVeiRe0wczurMfYgmDlw8g36JLkUyJA5QAzI HFgw== 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=Uh22aMhq83izPRCbdrRzzwtaMf1me9g6NjbX+Co5bp0=; fh=jPvdAMYy3iv6b9xe7ZgpKAhSusiQZu7yL+3BsBo7QNk=; b=dg2WUNqshuanWcL6OA43mAdNifcZCzuzdN8JiohvFwc/nl2FeWSfHz7lrpbPmf4DvX WcJQdrHBFa0yg+5+VTjMn4MocDOxTNDjFecRwL+P9+Z1b+FvSdqhHhGrMJXFMMNPXRSc Ci9cGgnMJtoOGGuwLpFxvLdp/on1GB9UgEPjd9CT3ttdKM8tCcwcEvzodlJaRHx+9X55 vWxeCkChNHf4mEnEGcwG4KK98x1ukeDjv6uBpTfxRm70z9Yt0U4jomJwjk6g83+1KZSr fgPJF4NSFDnZ0UZdHYzp5RTxPndQrvRD4eG070vdRyfBwchpypoqbbLBa7YrFnoeSxH5 krQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=V5PJl9OP; 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 l5-20020a633e05000000b0055beccf9921si1384273pga.212.2023.07.27.09.04.46; Thu, 27 Jul 2023 09:05:07 -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=V5PJl9OP; 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 S234489AbjG0PPC (ORCPT + 99 others); Thu, 27 Jul 2023 11:15:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234460AbjG0PPA (ORCPT ); Thu, 27 Jul 2023 11:15:00 -0400 Received: from mail-pl1-x64a.google.com (mail-pl1-x64a.google.com [IPv6:2607:f8b0:4864:20::64a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4AC2219BA for ; Thu, 27 Jul 2023 08:14:58 -0700 (PDT) Received: by mail-pl1-x64a.google.com with SMTP id d9443c01a7336-1bbd4f526caso7097215ad.3 for ; Thu, 27 Jul 2023 08:14:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1690470898; x=1691075698; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=Uh22aMhq83izPRCbdrRzzwtaMf1me9g6NjbX+Co5bp0=; b=V5PJl9OPtbH6rKjCHnQT6vG07X8vn1wK9wE/VoB4pVOU/wXuTZXHBq4qngrQhFqdYx 7Nc/8XHsnrfsfvv63G5rKFMVKoj2MBlEBdyp1WGHDAFWz3vrGvQ3AdmEIExOtJ1aO6i+ cnpQEo0+AaWgfFRrDpzagp8FGIL+tu0h/ir+/VZ2zzregWOLzHJM0I9Ivoic0+BxzKz4 WYd1p4sm9ojfR9ElLG7BmLpUbcffOLNvMQyPdc38Ip378ziKHbWr9liHJkrm859/SeMX ozbx6WwLe/AJVj5hZNh0cUCayyHYysk1ulw9KDKJg9gQ0Hv8Z3iv6s5gECSyYS8u0C8i fslw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690470898; x=1691075698; 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=Uh22aMhq83izPRCbdrRzzwtaMf1me9g6NjbX+Co5bp0=; b=GNCY0yCDjsbUgV0xZUfk8Z4h8ZLVU8h9oFT/ijd/sOALnvlWDOfi6ww8XThDwTDzGs ULkE+8ESHnGBK++SFJx6vYsGh3Z8c1gdNApEK3nqtyaffDOwUy4UaqT90PxYLsTQEd0t hF3/bEdA1GT6MWuxNFbjJL+kpWxQhCLyYj+A6gB6rTDH69aYhA3LCvO9Gn56NDFwaZlx oIMy+Cuq/yRIqJTi+ZsbJ0EAfJ98RkW9cCU92Ph5r+8ZEmK6PwpGYrLHjtz5k994oEXk KtGvp5FLGgU8yj26kR00A8uEq2WJKB4Qmjc2Sl+5s3D6XZU5WmM/SmIOXv0Ikm6r5B8G tqFQ== X-Gm-Message-State: ABy/qLbmUn7AAW66M6OXUiqn4/mIiGg2aE9r29u3ECQfQdeboJoH36nJ 0wzb2oGXGLfqgHcIR4M9cF9UeZW8vVk= X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a17:902:d2cd:b0:1b9:ce2c:3bb0 with SMTP id n13-20020a170902d2cd00b001b9ce2c3bb0mr23241plc.3.1690470897724; Thu, 27 Jul 2023 08:14:57 -0700 (PDT) Date: Thu, 27 Jul 2023 08:14:56 -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. 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.