Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4432962rwl; Mon, 3 Apr 2023 05:06:25 -0700 (PDT) X-Google-Smtp-Source: AKy350ZZLOXw+dDBiMv8dO4gZnkiguSSIdvqyXYJ8XEk3X8iNV0z2+QJQPUw1Sz8eUGwF1cKNp8h X-Received: by 2002:a17:907:3e93:b0:947:793d:b5c4 with SMTP id hs19-20020a1709073e9300b00947793db5c4mr15638261ejc.64.1680523584686; Mon, 03 Apr 2023 05:06:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680523584; cv=none; d=google.com; s=arc-20160816; b=jSJ2FIDSA+nVoEuht0VQpxdfSecFCnPYg2hxAni0jaXp9fOwkT3TM22RzyeIgiYtWL 7rWKMgko80uWxJa32zbAmrv1Ny8b3SOfcFauqg3sv6rwGoHtFGCspgPTgkdXxt3jzrhN h2KSk9ksVdG707IX5Dz0Vz034nKgjk+Wo4Lqk5BEa4ipJlQ6Ty4m9jXDMfLF5790RLBT o7RzlVNdFcVlJwzBQtItarnwoTCF7+A2D7Qmvzx50Bmw7DrLK6e282EhLw+r8pld8+du vL4PHR+eOsBBKQ2aLzArBwNELhqkmD9wuynG12dIzhuj1bmYyggvxSwztowsqxlLt6zA /k6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=aTnNv9XdGhYjOU9CcATjnOwylj3cx5IlVTw/VdMJWrc=; b=xUKHO7SkwLDLKTWHL7e4+fCXqEo1zV8VNoZEMQTuXONtgQayDoqMKtnR5icJvmvTa5 FLM672peaK1HmkzHEUsd5SVl1Z+GGx1bvxyfGspQSjpps1YKC2whEEOHvRVoFBeh966t +L4q0FnCS+EChRXi2F35qz7A62IkPS5Z9NNbsaA1mrL1GTeSDJLHmoQfWW/yx/Kk6EKS reDJTGJ0sYgaqHIJgjpXEp5PytGy/wb95M3+ohpTpZy9Coq6kTkrxy+PDWRpdBcmx7zo e7AftFeFgqGD6PzUboV7wQ6SPJIbdfy7jEPixS0lMxeWsiH1yEtMsvCI9y3xVyKqLHlD e5Zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20210112.gappssmtp.com header.s=20210112 header.b=1QVT5ZwH; 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 pg26-20020a170907205a00b0093001cd3801si7429424ejb.187.2023.04.03.05.06.00; Mon, 03 Apr 2023 05:06:24 -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=@brainfault-org.20210112.gappssmtp.com header.s=20210112 header.b=1QVT5ZwH; 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 S232328AbjDCMFW (ORCPT + 99 others); Mon, 3 Apr 2023 08:05:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231995AbjDCMFT (ORCPT ); Mon, 3 Apr 2023 08:05:19 -0400 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2310103 for ; Mon, 3 Apr 2023 05:05:11 -0700 (PDT) Received: by mail-ed1-x52d.google.com with SMTP id x3so116266074edb.10 for ; Mon, 03 Apr 2023 05:05:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20210112.gappssmtp.com; s=20210112; t=1680523510; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=aTnNv9XdGhYjOU9CcATjnOwylj3cx5IlVTw/VdMJWrc=; b=1QVT5ZwH445IL+4hcb90apKtOn9XWo8AG3e4epOeRhuDSB0LUCiPjbbmuJyWq+tRZb u/IgbDyskrFey489XvB7OkvalYU8dGfnykhLS+cPZEjA+onfYSoFNvsj9aT8jfL9ZoBd gdzujFLSCOHiz4INorE7Di1m7BdejjdBE3XQhUtdBf69R0gbrkScWTUYd0Skvyxa+Y/h aNbQSGo2iTrlLmWazm+hpPGmlATA71GLVf63Wd0caLF+ijf1VOzcsd/o3avhyjbRtYq0 MuJYMYq42icLOP0yB4Z3MMXeDh43gbbTPuT52FO9H2rlufmD9yYqDL4uZwCdQYxmYNZ6 Y9iQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680523510; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=aTnNv9XdGhYjOU9CcATjnOwylj3cx5IlVTw/VdMJWrc=; b=3Dl/1qDRoXEQ5DzwW0Dy/S1fe+jABAvSzybGw7En2SVIVF05v+ysAPE6OaRxfp+g6H QcXKyWIatGWmw04JRqqppAx5zYYgGYa1JHUT3eVRAmvkr0q6O1nUd2p+blqkkge6C2Ue BlGMsOsnuIWdFG+8cbttnTbTyTJtAK6tHn2/FtT0nmO+OjsUvZEU8YcOCspshlAANCOr YYUlp17dKk6UuVkXzQNCeihMG06iNnQjgQwy+SSbZdT4Xx5deCv4emVNZEywMSeXjanA BsLMfVqKuQtLHKAggdYdh+hDzD81yaJZ1/a2Vg6bD8l0rfJr5FpnFOETGY5L/hsaxjR7 /PXQ== X-Gm-Message-State: AAQBX9fYgOWET3gJtNuT51jfmOhY7pak56j5JadoU/2jtNT2S03DaTfr MJvI0r1CY6Eu7n5D1sBX0S6IUz1faqn1en3ddU6How== X-Received: by 2002:a17:906:7c54:b0:932:6a66:fc43 with SMTP id g20-20020a1709067c5400b009326a66fc43mr17062399ejp.13.1680523510364; Mon, 03 Apr 2023 05:05:10 -0700 (PDT) MIME-Version: 1.0 References: <20230403093310.2271142-1-apatel@ventanamicro.com> <20230403093310.2271142-7-apatel@ventanamicro.com> In-Reply-To: From: Anup Patel Date: Mon, 3 Apr 2023 17:34:57 +0530 Message-ID: Subject: Re: [PATCH v3 6/8] RISC-V: KVM: Add ONE_REG interface for AIA CSRs To: Andrew Jones 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE 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 3, 2023 at 5:01=E2=80=AFPM 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/uap= i/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? Regards, Anup