Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3915128rdb; Thu, 14 Sep 2023 06:42:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHwfIvrba5pE+rz1iUtIIVDnDRNT4NvEvNWKlBY3w5TdnHE3I77IwIjfCBdo9nKjsFr1sui X-Received: by 2002:a17:90a:db8a:b0:268:2af6:e48c with SMTP id h10-20020a17090adb8a00b002682af6e48cmr2885052pjv.4.1694698928225; Thu, 14 Sep 2023 06:42:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694698928; cv=none; d=google.com; s=arc-20160816; b=r6Dw9gESTj0SdTgr0MFYbF1urRN1wkHYYH8DQZDyPqTFKLZAgFxVNLdO/FQFXNDgkx Vlo4u0qxfpMehuHinqaFTT85fXKxtkG3STwMVcYW1tLe21mbG+OdPryCwV5bCGH0l/Di gwXGvq6os9MxyoX6AknIet2hMDXMHMUwNvjIq2iGh1azLICuULavdWiZJyMObq+3256J tNnG6Oq6gxqXXyezx0rSrJVUIXwCt4yRBTd62l/0mRq8B8Rf7LRXmZ0MMF6HZhsayweD F0F7s1ozuYZTorm+LZXqgqb9392oGsPTZy5K6GbyvBifDAXOaYqSpZShxA+x/ZHrLA3p NCOw== 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=lMUcG5dET7EFobfbAHbzg2lwyOfsWQ8F2tpkEXeY8DY=; fh=eJ/RokBrVj9CAVaT/xFBblD/xzbu5HBCjaI/IcWvqF0=; b=rEcL9wCN43v0M6pQdIJ+lfJhXpj8xAsNT8zFLUdghhvV5lvElbBMmjXa1s97eijmjH sU8zCV6zJLpotdkhRUSTZvJ+n4ecLPigeUDduImmOXKiUYQ9zVFzYT3ufLSVJzUrjgvr /NjMK64anutvpl2uVjp8VC6PPlrVpKesBV/VLi4KEo6MDoKdU0pqVT4B0rHV998UXJhV WIa5fHfXqCIvfqhfAObB249NeGHBe2AR8p+R4++izSalteHNZpyrE2yJBnf2Hc/5xdQi cwoV6pwTi/8EfyzPl1G0z8+5wV/kzD70vvvnXouUs0j/LOTaY+8PTpXL4QIAgZ60tXEd xbew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=StgrfO85; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id mu12-20020a17090b388c00b00268300061cdsi4235903pjb.168.2023.09.14.06.42.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 06:42:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=StgrfO85; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id 7A09881F2762; Thu, 14 Sep 2023 01:52:37 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236096AbjINIwX (ORCPT + 99 others); Thu, 14 Sep 2023 04:52:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235976AbjINIwW (ORCPT ); Thu, 14 Sep 2023 04:52:22 -0400 Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 29A9B1BF4 for ; Thu, 14 Sep 2023 01:52:17 -0700 (PDT) Received: by mail-wr1-x42a.google.com with SMTP id ffacd0b85a97d-31aeedbb264so614045f8f.0 for ; Thu, 14 Sep 2023 01:52:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1694681535; x=1695286335; 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=lMUcG5dET7EFobfbAHbzg2lwyOfsWQ8F2tpkEXeY8DY=; b=StgrfO85sslASZLu1luVqtO7tb55qbJgvfpXkg9pTAfsDnQnC7nM+Yxjs2Ar02n6aW SsYJ/0RYNy1wMPnHBZz5y7uxU2qdGDeWZ3CbMk4AD5jVwtTuHxIwtMsW1VGfwUv5xmNg 8EzC7EGHo288N93zQg/H35PEtCrEC8RMTLHNQZLpN8z/XXhiyWB1gI5nlTUjBLTNfhg6 vk6/BTYqcwyVUuPNOCJ1Vz5mxMrLZdNqnAYbhxj7BKsQohSCRBtbxK0ucHGuFyje3ecI zqu395Teyh74NhcpJnFEGQbtFjyZtJETeej3Cp93WIsDYUkHWJK5Gff/O3ScKKO+PKKW cAlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694681535; x=1695286335; 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=lMUcG5dET7EFobfbAHbzg2lwyOfsWQ8F2tpkEXeY8DY=; b=lkeb3mJNcdAKHdY+kNKubj7whJwfZtfH91Oy+Ch0Da0iXX23acbxZShhe8PLj9Zko3 8+izJzs+ECrUVNSHFhz6vYmvtFRc9+uMf3okjtBRYQdjREc0o5zlo7BKt01kcH+aMIZM 1fKO2rEYy2PqVQZyWn6tGfwcEafxrdQPWiqmTuPURXiW2MWbQALonenwVzUug/1yBcmP iFRyT9itiR/Z1h5UV61M3m/DTn4VLj/k9VexOMIS6SvPfeGJd8ttn9mLzh7j2uxKp10S b3QHQI7P8YPMyx5Ny+6PVXofq8j/Hyl31mBDw40yallywiIiPyLWsc0GVjZdlWiTGZqk vkfw== X-Gm-Message-State: AOJu0Ywfnuwp/h+NcnMBlr6rcCVNSH2zy+dsmB+3KzI52++IO/Hhh+Sl 7uBxc8eWQBUZb+1RwO6qJmnjbQ== X-Received: by 2002:a5d:4f88:0:b0:319:83e4:bbbf with SMTP id d8-20020a5d4f88000000b0031983e4bbbfmr4097683wru.20.1694681535355; Thu, 14 Sep 2023 01:52:15 -0700 (PDT) Received: from localhost (cst2-173-16.cust.vodafone.cz. [31.30.173.16]) by smtp.gmail.com with ESMTPSA id r8-20020a5d4e48000000b0031ad2f9269dsm1137143wrt.40.2023.09.14.01.52.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 01:52:14 -0700 (PDT) Date: Thu, 14 Sep 2023 10:52:08 +0200 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 , Sean Christopherson , Ricardo Koller , Vishal Annapurve , Peter Xu , Vipin Sharma , David Matlack , Colton Lewis , 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 v3 5/9] KVM: riscv: selftests: Switch to use macro from csr.h Message-ID: <20230914-18bfe93b679e290188e70307@orel> References: <6cdda82518977c67004ee01a767bc67962352c13.1694421911.git.haibo1.xu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6cdda82518977c67004ee01a767bc67962352c13.1694421911.git.haibo1.xu@intel.com> 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 (fry.vger.email [0.0.0.0]); Thu, 14 Sep 2023 01:52:37 -0700 (PDT) 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 autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email On Thu, Sep 14, 2023 at 09:36:59AM +0800, Haibo Xu wrote: > Signed-off-by: Haibo Xu > --- > tools/testing/selftests/kvm/include/riscv/processor.h | 8 +------- > 1 file changed, 1 insertion(+), 7 deletions(-) > > diff --git a/tools/testing/selftests/kvm/include/riscv/processor.h b/tools/testing/selftests/kvm/include/riscv/processor.h > index 5b62a3d2aa9b..67766baed4f7 100644 > --- a/tools/testing/selftests/kvm/include/riscv/processor.h > +++ b/tools/testing/selftests/kvm/include/riscv/processor.h > @@ -8,6 +8,7 @@ > #define SELFTEST_KVM_PROCESSOR_H > > #include "kvm_util.h" > +#include > #include nit: Usually we try to keep the order of our includes separated into five categories, listed below, where each category is sorted alphabetically. Of course any dependencies the includes have on each other need to be considered too. "local-includes" > > static inline uint64_t __kvm_reg_id(uint64_t type, uint64_t idx, > @@ -95,13 +96,6 @@ static inline uint64_t __kvm_reg_id(uint64_t type, uint64_t idx, > #define PGTBL_PAGE_SIZE PGTBL_L0_BLOCK_SIZE > #define PGTBL_PAGE_SIZE_SHIFT PGTBL_L0_BLOCK_SHIFT > > -#define SATP_PPN _AC(0x00000FFFFFFFFFFF, UL) > -#define SATP_MODE_39 _AC(0x8000000000000000, UL) > -#define SATP_MODE_48 _AC(0x9000000000000000, UL) > -#define SATP_ASID_BITS 16 > -#define SATP_ASID_SHIFT 44 > -#define SATP_ASID_MASK _AC(0xFFFF, UL) > - > #define SBI_EXT_EXPERIMENTAL_START 0x08000000 > #define SBI_EXT_EXPERIMENTAL_END 0x08FFFFFF > > -- > 2.34.1 > Assuming the CONFIG_64BIT patch will come before this, then Reviewed-by: Andrew Jones Thanks, drew