Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp754222rwd; Thu, 15 Jun 2023 01:21:35 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5Jrid4zRoMLziCrTufNIAchfTbQnCYlmICjIl21JeKSKHm6fDFoRb+PMT+8LeZ54d56XrR X-Received: by 2002:a50:ec97:0:b0:518:7099:3e5f with SMTP id e23-20020a50ec97000000b0051870993e5fmr6804834edr.4.1686817294947; Thu, 15 Jun 2023 01:21:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686817294; cv=none; d=google.com; s=arc-20160816; b=tk9+HAUQU2J4rD6o6IoJi4NKxema4lrq8ISv8h8/IMFPEr6n3z+tU3R1bDw8THJaTJ dYkZHLlaKj4oiAvzMFv8s8msOMqDhyxxg6anJafSSwg5poO1FhzYqQyHtNnqDCDf2Oja 5E1tK1yzEdQYLxiPZSJ7psNwcAY8TEjWwrTJag/O2uP+8wBsWUw52wxRTEaf5J9moym/ nYyUB5UC+DImuvUm4cg1TDq83MoUDmf/h3PXpdrVCW/bdVoHZUf9LEbbIsCqRRDaOrzB ZiQll1aLHWubNb60bPTVx2AfH0my/HAva8880WO2zdb/SHe1VSabVbkKg2N54oh3oNh+ kskA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=qy2FvnQ7sT+hFfzfZbK6StB7FDfBUwIcnd7vowD7Hdo=; b=rh/o4tTJI4V7iSUG3IguSSJTGPUUMtRn0D5x94QvE/iILQsBuS1VcOxqeCq0Dzr4DN 5OfGBS9CCK21xWWPJFwYhG7/wS6830tcEYPTWUrseOXrwQmHAqUPn8WGmMFaekZL/vy0 eBqM+JLWmEcM6LSZx6j1DxNWmlyadrH1QnG9asgE+rUTAIFD0fAZ8He+gwAMTuUs/0BI LFxwt3AYRxYbcqTPu587W6ItOgcfTKPk972x0YdUIPKNnMOmMnJ3MPQZyxTgjsPc+3iI 5NIQyqFAqZWyPn+mCHAQFycDltYW5ALfJFH3M3EPviinBz+l7lTTyiL92/0pINJozQbE By4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=Nt5IJ9A8; 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 f20-20020a170906049400b0096f8c9e7e1esi9504498eja.930.2023.06.15.01.21.09; Thu, 15 Jun 2023 01:21:34 -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=Nt5IJ9A8; 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 S244963AbjFOHfe (ORCPT + 99 others); Thu, 15 Jun 2023 03:35:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245071AbjFOHeu (ORCPT ); Thu, 15 Jun 2023 03:34:50 -0400 Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A81B82D40 for ; Thu, 15 Jun 2023 00:34:16 -0700 (PDT) Received: by mail-pl1-x630.google.com with SMTP id d9443c01a7336-1b50d7b4aaaso7310895ad.3 for ; Thu, 15 Jun 2023 00:34:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1686814456; x=1689406456; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=qy2FvnQ7sT+hFfzfZbK6StB7FDfBUwIcnd7vowD7Hdo=; b=Nt5IJ9A8Go305vi9k3xNch93gz4wG7hVjY7emu+ejrqDCvtVPNFSMj/ewo8/JK8jKC 5mTCTUhtatBK9HMGYBEbL1PQ08wnaCe7WXC+hWTgRDBES+tNYHWe/UI821L/gPKf8//x 0ggc2QMn2Bd4RHfoQL5qR+bIELmGTRAjHA1f5VFO+cJfPiov87zTo4q4rQDv5BaUL2ro jgYmzC2oRLN4GydsRhhA5SOMkVWeZxc7z1uIl+FgKR0B0/XjHWmimv0ZNw86j/5Ge3Am ir0opF7aLz9gqQJ1q21Vhp/uz/wejAlOt2q/vOSIwYoNQUB29t/JHEHK8W+lT6yaY+fQ QJWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686814456; x=1689406456; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=qy2FvnQ7sT+hFfzfZbK6StB7FDfBUwIcnd7vowD7Hdo=; b=k8qrwB4SWZVDRVP9lFv2b4ndbKTKBpESKMcBkx7Y8dxR9m+F7l60ywBpynN3ZaswDR iWI0KFUgESa1l45vkCvkBxDgACyCbilNVFMsv1ykbqZl7Tl19WzAD2msVUiVcwAADfNW Az0ix2JBUjnBEK9WGnKzzH7o74XTMV3LRrMIJoKuLYGboYm96gOkgw+sterazYb+X3UI ZZGvmhKGMOyIkRpyitW9PY2QX8R0blafvPLCZEfrE0LIOQtFAUSFk0zKFaSXLcR+KO3O +xLEg8b1vek9qMHydxzTXXSpI5Q/An4Wc1y4Zwmsp9CCmfuECLdXrpKqsTpB2SwY+s/k qKeA== X-Gm-Message-State: AC+VfDyFGWpgkwYU6lziwXbxLLdjSDLud1zr6aR3RlSwMEy13J+KTfBz hrddKj1A1D+qnjKkTnMZz2FpcA== X-Received: by 2002:a17:903:22c6:b0:1b3:d25a:5ece with SMTP id y6-20020a17090322c600b001b3d25a5ecemr10637846plg.31.1686814455799; Thu, 15 Jun 2023 00:34:15 -0700 (PDT) Received: from anup-ubuntu-vm.localdomain ([106.51.83.242]) by smtp.gmail.com with ESMTPSA id ji1-20020a170903324100b001b016313b1dsm8049855plb.86.2023.06.15.00.34.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Jun 2023 00:34:15 -0700 (PDT) From: Anup Patel To: Paolo Bonzini , Atish Patra Cc: Palmer Dabbelt , Paul Walmsley , Andrew Jones , kvm@vger.kernel.org, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Anup Patel , Atish Patra Subject: [PATCH v3 04/10] RISC-V: KVM: Set kvm_riscv_aia_nr_hgei to zero Date: Thu, 15 Jun 2023 13:03:47 +0530 Message-Id: <20230615073353.85435-5-apatel@ventanamicro.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230615073353.85435-1-apatel@ventanamicro.com> References: <20230615073353.85435-1-apatel@ventanamicro.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 We hard-code the kvm_riscv_aia_nr_hgei to zero until IMSIC HW guest file support is added in KVM RISC-V. Signed-off-by: Anup Patel Reviewed-by: Atish Patra --- arch/riscv/kvm/aia.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/arch/riscv/kvm/aia.c b/arch/riscv/kvm/aia.c index c78c06d99e39..3f97575707eb 100644 --- a/arch/riscv/kvm/aia.c +++ b/arch/riscv/kvm/aia.c @@ -408,7 +408,7 @@ int kvm_riscv_aia_alloc_hgei(int cpu, struct kvm_vcpu *owner, raw_spin_unlock_irqrestore(&hgctrl->lock, flags); - /* TODO: To be updated later by AIA in-kernel irqchip support */ + /* TODO: To be updated later by AIA IMSIC HW guest file support */ if (hgei_va) *hgei_va = NULL; if (hgei_pa) @@ -610,6 +610,14 @@ int kvm_riscv_aia_init(void) if (kvm_riscv_aia_nr_hgei) kvm_riscv_aia_nr_hgei--; + /* + * Number of usable HGEI lines should be minimum of per-HART + * IMSIC guest files and number of bits in HGEIE + * + * TODO: To be updated later by AIA IMSIC HW guest file support + */ + kvm_riscv_aia_nr_hgei = 0; + /* Initialize guest external interrupt line management */ rc = aia_hgei_init(); if (rc) -- 2.34.1