Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4400687rwl; Mon, 3 Apr 2023 04:36:58 -0700 (PDT) X-Google-Smtp-Source: AKy350YD7tzbLU7vCTnEfms4cKAO+I9c22SNnw/uBYjGOIzm7avv0nIhgp2ugYWjLPAtN4dJFhkI X-Received: by 2002:a17:906:d8a9:b0:925:5705:b5b8 with SMTP id qc9-20020a170906d8a900b009255705b5b8mr36024469ejb.58.1680521818735; Mon, 03 Apr 2023 04:36:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680521818; cv=none; d=google.com; s=arc-20160816; b=uIjKc0krRB5CRYwgREtoyTcNHbrMSBVArEEAmxNPLHks/9iMUnjHvmokn0y60iGNnF QhC8O/rIgtifmvfr1zS0a8phAaWysUAimBYQPGMAUjQLkn2IseyxPvr8bucNdwse07DS 0DGzprc4NR/sL2MpAQPKV+x/STNcjyaGa61oEz1dqY4owFhJkHIS8692C+T/nb3znDjO gGcjYE23lTj/2qVom4UApgqMV03Rc4rnyg8UTA1XlPXKp0QCDv8qCWNXCincV3mEVxLI CTv+PJEAwmff65FlVo8V7ib1lu7OJWRv86lED43QHwLWkvWNkDcLmm1WIJrt/WwnNQLM 2B+Q== 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=YcQcHVUeSM2zYODLoqIXNbDNYCp1LquQUGBod5NxxrU=; b=kwiSXKOy3/+el+doQ5sj42G61jZMaSIxOUw6HEVyaQlbsBVMd1rqI3csCtz9LxG2dq vlZdgDyrpMBv/JAlyOIzcy5a4D/SlGBDxu1pTirRMAjM7him3+lLiIK0mjL7lWOPYeIx LPE3+Qisl+lBXo5WelnKlXlAHgTdnwuL1LdyStXLMQG7ugnmM3pmrUTnXFqURvyTJ002 XtR4/LNRfyd0Ez/JxtXmeRKrgcTxCj6m1fLuH/4aYB+MCTaRLOQkolqKtCd2IVC7gDvO wVMK3vRa6UAlrGXsHLSoEqg8XhRWgg0PFmQG1rzKITrIPpe59TlaUcIuU/7FKBKKNFGo nmZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=MUH+FkWm; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ue3-20020a170907c68300b0093b17cc60d2si671622ejc.36.2023.04.03.04.36.34; Mon, 03 Apr 2023 04:36:58 -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=@ventanamicro.com header.s=google header.b=MUH+FkWm; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232299AbjDCLbX (ORCPT + 99 others); Mon, 3 Apr 2023 07:31:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230269AbjDCLbV (ORCPT ); Mon, 3 Apr 2023 07:31:21 -0400 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C2603C00 for ; Mon, 3 Apr 2023 04:31:20 -0700 (PDT) Received: by mail-ed1-x535.google.com with SMTP id ew6so115919809edb.7 for ; Mon, 03 Apr 2023 04:31:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1680521479; 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=YcQcHVUeSM2zYODLoqIXNbDNYCp1LquQUGBod5NxxrU=; b=MUH+FkWmhAqp+d3dxhf5ilxC49HG89GtfiPt2fXx77t1/qlF2PBIozQ2Xscb9oA9NU 4OhAXKGsLYPeCr8ROMQncNiUKbgXDYYheKx4FNRAJ9fjScAtvGqcPqHry8IWwCQGC3nd dlKxn1D1iD39GAHilOpgg4xWPpYAiymSjoiF9NxP2UbqPmVWNN75O6JEawXhRdmfXX8z RTvzQj/GHdXGJkDx6/kSS3ZzFAZFlW+zMTFKFrGoW8gJiR3sBZqhBlEDz/EAYd+MDIP8 fN8Gqfk9gK5RavABiGawEBeMY9X4SRXQGUVEyaEz8pzfN770Nst4eUT/qmX9uruuirZI 8nnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680521479; 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=YcQcHVUeSM2zYODLoqIXNbDNYCp1LquQUGBod5NxxrU=; b=BMVeXB4p1EUxfIXVH06HbwzUJBlTcE28AFskca0XHjuxA5OPEM55zKgTIxXI++HMNn WvtAoOsG6zxW8GEpFht6xDhkXBBVdRIgXAzGolE314AwBXVp3KkmFROo7j1VGuHqSJhK vHMTqtfpk/LrBChvc0hZW5GDmHTB1EL/u3wCC0mbL5FbNxfBiZjdxYv3jxWaez7y1c+7 G4Krz3vk2edZBVd2oaT/ENH/Qc4hcit0K8xSHDMW0r5lYljlqBGeWwUsXungAnfogUtJ 4ossik2GYd2UwnzGKgPmmzYakPxfMEbajtXiZvqlMHA4wc22GOR/f19U/W/62Ys7kHoc rAxA== X-Gm-Message-State: AAQBX9cyuU91hJ/zHLaOdwrUuIMjVGBLu41nynHG9VIr9ZeeKLCLk7XI BaDdcmPzU1gxAXwehQanYoHY5w== X-Received: by 2002:a17:906:8a41:b0:92b:6f92:7705 with SMTP id gx1-20020a1709068a4100b0092b6f927705mr31534625ejc.40.1680521479131; Mon, 03 Apr 2023 04:31:19 -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 b17-20020a170906491100b008e57b5e0ce9sm4387728ejq.108.2023.04.03.04.31.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Apr 2023 04:31:18 -0700 (PDT) Date: Mon, 3 Apr 2023 13:31:18 +0200 From: Andrew Jones To: Anup Patel Cc: Paolo Bonzini , Atish Patra , Palmer Dabbelt , Paul Walmsley , Anup Patel , kvm@vger.kernel.org, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 6/8] RISC-V: KVM: Add ONE_REG interface for AIA CSRs Message-ID: References: <20230403093310.2271142-1-apatel@ventanamicro.com> <20230403093310.2271142-7-apatel@ventanamicro.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230403093310.2271142-7-apatel@ventanamicro.com> X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 03, 2023 at 03:03:08PM +0530, Anup Patel wrote: > We implement ONE_REG interface for AIA CSRs as a separate subtype > under the CSR ONE_REG interface. > > Signed-off-by: Anup Patel > --- > arch/riscv/include/uapi/asm/kvm.h | 8 ++++++++ > arch/riscv/kvm/vcpu.c | 8 ++++++++ > 2 files changed, 16 insertions(+) > > diff --git a/arch/riscv/include/uapi/asm/kvm.h b/arch/riscv/include/uapi/asm/kvm.h > index 182023dc9a51..cbc3e74fa670 100644 > --- a/arch/riscv/include/uapi/asm/kvm.h > +++ b/arch/riscv/include/uapi/asm/kvm.h > @@ -79,6 +79,10 @@ struct kvm_riscv_csr { > unsigned long scounteren; > }; > > +/* AIA CSR registers for KVM_GET_ONE_REG and KVM_SET_ONE_REG */ > +struct kvm_riscv_aia_csr { > +}; > + > /* TIMER registers for KVM_GET_ONE_REG and KVM_SET_ONE_REG */ > struct kvm_riscv_timer { > __u64 frequency; > @@ -107,6 +111,7 @@ enum KVM_RISCV_ISA_EXT_ID { > KVM_RISCV_ISA_EXT_ZIHINTPAUSE, > KVM_RISCV_ISA_EXT_ZICBOM, > KVM_RISCV_ISA_EXT_ZBB, Looks like this patch is also based on "[PATCH] RISC-V: KVM: Allow Zbb extension for Guest/VM" Thanks, drew