From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9A603C83F2C for ; Mon, 4 Sep 2023 13:32:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=RfJL/A69/ByW4jzPbdnIjJFyRAoF/lKi+0lCiyTCfV8=; b=vVCactKj6pisFw Z7mq+enjdXro1+s5vlG4QgGORLPcRMnKoCPlq7uoO8MJJTaTbSA6DGXlZS5PuPvulP+DFsJs4Lbw5 v+2RZNM8RvsoKZxqfCCWG9gB5LIZ9iW4BqDik1RZrWTd/GgontWC38dpceurBq/I3PfPPtZ5OZCBF vMh1yyhkkMKgFnnmfy8rXhF9qDBP6i7izvknXN/bP+5eEvd9663x3vVDakkNeBBXfmZNky90SRQQ9 Le8HGbexNZfmiSCMWmtX9+kJKoER9xm656fFPR/O03sk5VZVSLxEPYK9yPwrdWePdV6JqRgI/2na+ VYPcLAXSfcqi4zYZh36Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qd9g4-004C58-1X; Mon, 04 Sep 2023 13:31:40 +0000 Received: from mail-ej1-x633.google.com ([2a00:1450:4864:20::633]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qd9g1-004C41-1i for linux-arm-kernel@lists.infradead.org; Mon, 04 Sep 2023 13:31:38 +0000 Received: by mail-ej1-x633.google.com with SMTP id a640c23a62f3a-9a65f9147ccso79523566b.1 for ; Mon, 04 Sep 2023 06:31:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1693834294; x=1694439094; darn=lists.infradead.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=hCYvspyPAR7BQTyfNQLsPOWKxV3J1BTko++dNnBZlmc=; b=bZzG3Z3eaHGAbTZxdtM/Y9lgqeaimKq1hk8Y/XRWE+BFJO2yUVBJtR+rJ3GDQvq/ml pp9U9LL6ECWwQ/YjZGxwd+87JMTXvrMdphb0BNMmEj3IunapOLyd1whfIFzolTxWi1jp 1xOEoXjox9blYufhQyln/LTqq2SIhXFwBtgPkI+3l6I3tCV+0F+M9h9oD49N4RVX1Wbu EHUurTnVSliQi27PhG48LFRSbWi841zpTSXdGAL0C/OhJ4MsVotm8RdnLaPHLbZW6uQD 72U404YNDM17mF3JG/FB1x5r7XM8gE+3h8dF5eT+ZjeDLHgNG9lpNDr988xEHGxLaZWH 23vA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693834294; x=1694439094; 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=hCYvspyPAR7BQTyfNQLsPOWKxV3J1BTko++dNnBZlmc=; b=P5bKn+8m87cfGxR13SnAb4nblVeLryewE/EekzrbCFyZ1xeQk0EVx2u17DtkN1zYXI HrxnGez2yzTE2v8ppV2zTWvvdYIzKtHxu0U5QDoHC7AqeN57oMjvXwFSrxDQOhPFaTB4 mNqeEBQLzBE5WnySbHK23G/oE7Y+3JqBrarmIAnkCPH5y4W4VLojz1HMO0svGnMBvC9U PHoGHhSooAZx2ib2jjTgeCvrlPA0JqGgVfqwdltqWRDbXaAxf9oBr53KjoApQ94dG3WV /O8BnRAKXGcO/wqlyqdKvawoVS6HCQRo3yPyjxSbs0u/xS+xxZlNpV+Tf79CRbNxy3WA u9TA== X-Gm-Message-State: AOJu0YyF3ZHwjTSMme+5WrK7p51GYvepJAsigmVv36teM5qBNUxsfDpg 2skF3ciILRfj3vczxziZrgcBvQ== X-Google-Smtp-Source: AGHT+IGtFqpzjt6uSaukx7aodEb/54kI1XEGaEwgvvmfQYwT0ivCYh8vhE7uW3lVgPNl4aIYuhjmcA== X-Received: by 2002:a17:907:7808:b0:9a5:d095:a8e1 with SMTP id la8-20020a170907780800b009a5d095a8e1mr6644948ejc.11.1693834294609; Mon, 04 Sep 2023 06:31:34 -0700 (PDT) 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 m21-20020a1709060d9500b0099bc2d1429csm6167078eji.72.2023.09.04.06.31.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Sep 2023 06:31:34 -0700 (PDT) Date: Mon, 4 Sep 2023 15:31:33 +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 , Guo Ren , Conor Dooley , wchen , Greentime Hu , Sean Christopherson , Ricardo Koller , Vishal Annapurve , Vitaly Kuznetsov , Aaron Lewis , David Matlack , Mingwei Zhang , Ackerley Tng , Jim Mattson , Vipin Sharma , Maxim Levitsky , Peter Gonda , Like Xu , Philippe =?utf-8?Q?Mathieu-Daud=C3=A9?= , Thomas Huth , David Woodhouse , Michal Luczaj , 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 v2 4/8] KVM: riscv: selftests: Switch to use macro from csr.h Message-ID: <20230904-d35320b23119ee97737e8a74@orel> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230904_063137_568382_EDF12FCB X-CRM114-Status: GOOD ( 15.16 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Sat, Sep 02, 2023 at 08:59:26PM +0800, Haibo Xu wrote: > Signed-off-by: Haibo Xu > --- > tools/testing/selftests/kvm/include/riscv/processor.h | 5 +---- > 1 file changed, 1 insertion(+), 4 deletions(-) > > diff --git a/tools/testing/selftests/kvm/include/riscv/processor.h b/tools/testing/selftests/kvm/include/riscv/processor.h > index 5b62a3d2aa9b..6810c887fadc 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 > > static inline uint64_t __kvm_reg_id(uint64_t type, uint64_t idx, > @@ -95,12 +96,8 @@ 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) SATP_MODE_39/48 are also in csr.h > -#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 > Thanks, drew _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel