Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5858703rwl; Tue, 4 Apr 2023 04:55:34 -0700 (PDT) X-Google-Smtp-Source: AKy350YDwouwgihzO3Co3gYcyBpTc7/NxJ/QX4K/0QYu+yNs3c4aFv5rWsMEzXoTrk52JRBek65u X-Received: by 2002:a17:90b:1807:b0:234:b964:5708 with SMTP id lw7-20020a17090b180700b00234b9645708mr2542546pjb.5.1680609333804; Tue, 04 Apr 2023 04:55:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680609333; cv=none; d=google.com; s=arc-20160816; b=yf/12H+lJlNteotLwD4vhpS+zMiRXUEvexL8mk2Kh+AezQqDeebyfi/n59HQeyRy1q fIQitOm86PGuWoEK4RROjftz/KkA2SiQG9ykt32bfacSsLRQ02C5z1Y+jh81pWIAAJ1b XgazJNh0IV1PzoR/iSTn1a2XE+8DZMJUmyGZLnxQAQb+RdpJzosEAd3sOZKrtJAjf7Kk dJ/ZgEWUXH2nPpBFBQZ2WRVsaNsVtm1oAUhzFDwq9vqtlRmrYh37jyvr+Gm+s3sSy288 PP1p0DvnGgRyOsi9YIOucZpS4HQoooLBee2upX0ZtC9TUrnR1Vtt4TwYR1jZYoILRFYa HUmw== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=OLv0LN8lAk3QfnUhhhnsk24mDFgoCCiKw5kM+c/FrNk=; b=WhN0WImszztR0U8SyZoD2xvMHjWFLYNn9J4P32d3TGb+F5fwKGgVV/mi7hYDcdiVhM lqDKix5x38YiRangcFvC584a9qegeZGzBLvEeqgoDKHDxeR+ILDHjhI901lRY6HEKZR5 Jyu5dz9TE3KFZ7B//2l4uv3VGOO25wJ/HGJ6BBuNhVs1GdQQFlDNShbWBOpcVbnjaYHh LxQrHoO9EKxoLmQ+MJTE6Z5iWlcFu/xkkjYCNuvAehlR5mj9kpedM6ok4LYtJOxusU51 Cu5qkNCB9LqL43x5uKEJv+b5aQh56PTdShmV79A1v0tzjIK7qhAHY063Cx915TVm7vCP ixUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=PIlIYQqv; 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 nh5-20020a17090b364500b00233ea6a32c7si9846834pjb.112.2023.04.04.04.55.21; Tue, 04 Apr 2023 04:55:33 -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=PIlIYQqv; 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 S234083AbjDDLwu (ORCPT + 99 others); Tue, 4 Apr 2023 07:52:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230144AbjDDLws (ORCPT ); Tue, 4 Apr 2023 07:52:48 -0400 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4821710F3 for ; Tue, 4 Apr 2023 04:52:46 -0700 (PDT) Received: by mail-wr1-x429.google.com with SMTP id r11so32479322wrr.12 for ; Tue, 04 Apr 2023 04:52:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1680609165; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=OLv0LN8lAk3QfnUhhhnsk24mDFgoCCiKw5kM+c/FrNk=; b=PIlIYQqvjr/V8cmB877Rcy8JB6XO7vQw6kz3u5ewvPi/aNCK9zVxMGitBDmI+6p/7D QT79PNqb8XggeQ6ggP6RpTGCLaREBQ/fM0+tB1ZF3J9IZvdpirQg+vl9Ge/YvJxBEVM8 Sh7iDicitGN00XAVMZAqG5rsejGo/Wx5E6rWtsYlyqOsxIAdKBC8vIpUmNrZ1J5tJx7k Ofrj8QaOZc9IWERMqUwAbI+Zemye5wxZcdNzaXrb78dbgqoMHpybLvBZq8Oar6aZrOXm lPgCqlZEy3jB8t5/wdP3gtix8wLReCQtMnhSxZFXJ/M0rKVtoXWDpHquRNOney/B37us z9bA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680609165; h=in-reply-to:content-transfer-encoding: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=OLv0LN8lAk3QfnUhhhnsk24mDFgoCCiKw5kM+c/FrNk=; b=lUFXkUTqs5xZoSDfNtADCYFNpzYvLbBCJLW8YDr4gtTW5V6DSQoYbTeMD5L709DjBd 1diu3fju5O6dTvmR5TOWM++P+W8c1F8Zd9a4Be4bahTisH4Ba9qX4gGWWUynK3F65s8N gDboyM5GpLvoaGo40NlDIMQr6BioL+ybEeCzPiR09wZr7fTI1T0+1qXNQaxhRZFKHUhr RK6yEf/cqqjhY/5W/l6p75ilOJaB/kpMLg9My7D4owFjd4uij4BPm24xitqZLmjBWu5O eUNtuibkhvmns5DnKvONRITZTipmCyo2ornoI8zn/OSeY044wOfcKv+SXdcfaJFgkVfi ty3w== X-Gm-Message-State: AAQBX9etWAzl0U5sMdbTV6FAmPMQ74kiDt+onvOw8PQ7JyDYWM5pV9No yXe4i7oPaLIxjoNA5XkXe3BNPw== X-Received: by 2002:a5d:4904:0:b0:2cf:e868:f781 with SMTP id x4-20020a5d4904000000b002cfe868f781mr1470835wrq.42.1680609164757; Tue, 04 Apr 2023 04:52:44 -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 d16-20020a5d4f90000000b002d51d10a3fasm12192160wru.55.2023.04.04.04.52.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Apr 2023 04:52:44 -0700 (PDT) Date: Tue, 4 Apr 2023 13:52:43 +0200 From: Andrew Jones To: Anup Patel Cc: Anup Patel , Paolo Bonzini , Atish Patra , Palmer Dabbelt , Paul Walmsley , 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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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 02:23:01PM +0200, Andrew Jones wrote: > On Mon, Apr 03, 2023 at 05:34:57PM +0530, Anup Patel wrote: > > On Mon, Apr 3, 2023 at 5:01 PM Andrew Jones wrote: > > > > > > 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" > > > > Yes, do you want me to change the order of dependency? > > It's probably best if neither depend on each other, since they're > independent, but otherwise the order doesn't matter. It'd be nice to call > the order out in the cover letter to give patchwork a chance at automatic > build testing, though. To call it out, I believe adding > > Based-on: 20230401112730.2105240-1-apatel@ventanamicro.com > > to the cover letter should work. I also just noticed that this based on "RISC-V: KVM: Add ONE_REG interface to enable/disable SBI extensions"[1] and it needs to be in order to pick up the KVM_REG_RISCV_SUBTYPE_MASK and KVM_REG_RISCV_SUBTYPE_SHIFT defines. It'd be good to call that patch out with Based-on. [1]: 20230331174542.2067560-2-apatel@ventanamicro.com Thanks, drew