Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6233565rwl; Tue, 4 Apr 2023 09:32:12 -0700 (PDT) X-Google-Smtp-Source: AKy350bvNY9LKtlTp/V7r5E6yitQYeKLxBEkI4+HISXF4p1RggIhvF8qzfIzaY0gleBw8STuiU4g X-Received: by 2002:a17:902:ecca:b0:19a:b754:4053 with SMTP id a10-20020a170902ecca00b0019ab7544053mr4029750plh.26.1680625932655; Tue, 04 Apr 2023 09:32:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680625932; cv=none; d=google.com; s=arc-20160816; b=qfXieuUK1kGXCsfZRZmQcHNf4RhqZIsGscJ2X6ky1fvjLoQhj3AfavD+KHczEZo+gM VqpLfF5VJ2fyN7/qMIhGtHHV/O2rhWGZbnP3vCa7kkFU+DIxsNsGWLmNj3lprEAtaSKH OF8pKwDIRdFyPVF1kdeeJpqEaFSwEPXe9OZcstM2tk5KxhUpDVU/LqGQwD5h7CGHuMMP DkSmSvke3h1d4bsCDlK69/lRcxBHjg36pBEr2NXcXnYfs4LHuwW3KWdZ4/RXlOiLA4OK /rx3jIMOS8FhU8Rl/B/d6CM4EycHFd++RsP6TYSeIN8gxnMz/8pM5FuG/JY5wPPJiKyR ulng== 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=vDk7Rc1+MlWExgJcsOHL4y40vJ5PAjWrSI2Xt0WKM8M=; b=aT+nfZQo561aPK9Ctw/eAKN7hwvNALL9ydZ6q3mXFgWW1k0LiiepsNaNIGi9MQHjf+ GJgIbCdOrMIPK5h3Lspq4YSR3YkXdBeq6nDcaVvbFlzBtoj/1j04B0k6aXp+rLWrGlKH ce3uYMc2qXIJMgx3FAa+sal7lMT8HLOGc0yaPB52GLCQGMEIm2E9ef1ITeuZiksyKRDy VdzxMNQ7DwyawaIDO7BAPglRYEm0ZB930vX/ZZRWfhHOzMJpZ0OLHA/CvIMTPaeLhqzu Dx6adlyJ31igeDQ6UwTAXs1W8te1mei5aghoLHI+bm6EFzqHm7+k9FHeN0o2noeP4C7D oq7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=nQmO0Gui; 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 c35-20020a634e23000000b0051344dd6049si10189395pgb.27.2023.04.04.09.32.00; Tue, 04 Apr 2023 09:32:12 -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=nQmO0Gui; 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 S234858AbjDDQZW (ORCPT + 99 others); Tue, 4 Apr 2023 12:25:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232952AbjDDQZV (ORCPT ); Tue, 4 Apr 2023 12:25:21 -0400 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 479A1171C for ; Tue, 4 Apr 2023 09:25:20 -0700 (PDT) Received: by mail-wm1-x330.google.com with SMTP id p34so19387614wms.3 for ; Tue, 04 Apr 2023 09:25:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1680625519; 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=vDk7Rc1+MlWExgJcsOHL4y40vJ5PAjWrSI2Xt0WKM8M=; b=nQmO0GuiV4QZBXRBbBMVzHtFmDIyOn0ZbA7ZCuVmg0mv0cUepkPjSrAMNOpshj4BQp uVIU+3z9FXhDrft53jJNC6siocV4dlmMcVjeN25d04FW33B4WtxzJG4xtxPom9gW+q0C EOLNRuMKERDowqBWYXxK8Ib3xiLC+1boADcxBpk5ArAczCiOCFCoW/r6j5P5fnrClZNm SQYupR9ilY0F2FaWhkognZ4y4Cvy5s5m31k0ojG0ZYijw9MvCLzUmz492LIINCFTk8VZ TyWv+j7e0tmWrM+rVzOat6C/HAPjcxc2gMv7kr1BvKzOLbfvm7aM8mSi+B4KRmnkDK66 KQXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680625519; 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=vDk7Rc1+MlWExgJcsOHL4y40vJ5PAjWrSI2Xt0WKM8M=; b=czJBWmKrTEyBHlIx602OreGkq10tLRoDk1TORuaxtAw/ilMNMWRm17D00uc2/bZdAZ jJa8K9r+09cOeHyk/yKWQHsSw+l1IQlG6W1Yq/E1DYipJ0rdsPJX+aVW6f7lzdLYXQJP toDoZJkHfLjq5kblG+USQTSv7BBOYKhrMjayZwWv3XDCsqdijROZkAW0qJ+e86rvi9YX xnMjnSrXQ7dwz4MueV+bQ3RcJAmu0qjQGyXc/GvJ2/R4nUqTTIVHVFUFl/G7rXt4YNFm V48IMm3oDYKr0KwrcUf8arNsArkPhlg3si4JW8fvIFhdp11gwCSErzsC/h8Wsg1mAjRg gKSA== X-Gm-Message-State: AAQBX9eoMGUwlQ5gIWe9YyJ+EAW4FGGLmN6iKq9kRAth+p1GM0a+TLlu 1hay/lPMvmJ+mBtfiYhr0yq3ioYEnYZl6XKjDac= X-Received: by 2002:a7b:cd94:0:b0:3ee:5bd8:d537 with SMTP id y20-20020a7bcd94000000b003ee5bd8d537mr2409858wmj.5.1680625518762; Tue, 04 Apr 2023 09:25:18 -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 w18-20020a1cf612000000b003ee58e8c971sm15589813wmc.14.2023.04.04.09.25.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Apr 2023 09:25:18 -0700 (PDT) Date: Tue, 4 Apr 2023 18:25:17 +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 v4 7/9] RISC-V: KVM: Use bitmap for irqs_pending and irqs_pending_mask Message-ID: <6dvutvobx754xdbbfw4ociyxuay6fqjwm3vxdp5dmsyefypvzs@ydxl65hjdwt2> References: <20230404153452.2405681-1-apatel@ventanamicro.com> <20230404153452.2405681-8-apatel@ventanamicro.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230404153452.2405681-8-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 Tue, Apr 04, 2023 at 09:04:50PM +0530, Anup Patel wrote: > To support 64 VCPU local interrupts on RV32 host, we should use > bitmap for irqs_pending and irqs_pending_mask in struct kvm_vcpu_arch. > > Signed-off-by: Anup Patel > --- > arch/riscv/include/asm/kvm_host.h | 7 ++-- > arch/riscv/kvm/vcpu.c | 53 ++++++++++++++++++++----------- > 2 files changed, 38 insertions(+), 22 deletions(-) > Reviewed-by: Andrew Jones