Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 83BAE606A325 for ; Mon, 30 Nov 2026 03:51:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=cv6O14zb Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xXsPj-0006Lf-OQ; Sun, 29 Nov 2026 22:50:51 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xXsPg-00068d-C4; Sun, 29 Nov 2026 22:50:49 -0500 Received: from tor.source.kernel.org ([2600:3c04:e001:324:0:1991:8:25]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xXsPe-00024R-KB; Sun, 29 Nov 2026 22:50:48 -0500 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id B156161B7D; Mon, 30 Nov 2026 03:50:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3FCCB1F0089A; Mon, 30 Nov 2026 03:50:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796010635; bh=ykUs4wyWh2SSHe3hp0fHfW0o05nnd/BBKUC4EseBDhU=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=cv6O14zbF5ry0odbfmh9+TykKRO91pURJihawErCoMaQk2E2jOdA5OXROokBEwoVT YqZ1PTUonobZSE7ngXT48Lkxk6UK05J0yV/PWHpEU8eBrLeQ42kBKH7LWs8/Tp74t2 1VQmN73ypuWvxrzPqyYiij26mywIioRcVzSI4Xz0HohTVN/L2R7GcfwQqEI1kzMGW8 EHQPfjdo+2ZXywDWhliSE42vxHGV6ABds27iL7wWqmBUfP5XYQOi8MUHocle0sOzqd ZH+atdpaTqRnuxibltaMb00cAMgZt1zvGnTALxlEBfExWiFr8BjcPJT/EWLITPfjuL FpFLh5hxAANeA== Date: Sun, 29 Nov 2026 19:50:34 -0800 From: Drew Fustini To: Sunil V L Cc: qemu-devel@nongnu.org, qemu-riscv@nongnu.org, Palmer Dabbelt , Alistair Francis , Weiwei Li , Daniel Henrique Barboza , Liu Zhiwei , Chao Liu , "Michael S . Tsirkin" , Igor Mammedov , Ani Sinha , Anup Patel , Prajwal N , Shankar C , Sia Jee Heng Subject: Re: [PATCH v2 2/4] hw/riscv/virt: Add ACPI PPTT table Message-ID: References: <20261015064957.4076464-1-sunilvl@oss.qualcomm.com> <20261015064957.4076464-3-sunilvl@oss.qualcomm.com> X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261015064957.4076464-3-sunilvl@oss.qualcomm.com> Received-SPF: pass client-ip=2600:3c04:e001:324:0:1991:8:25; envelope-from=fustini@kernel.org; helo=tor.source.kernel.org X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_PASS, SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On Thu, Oct 15, 2026 at 12:19:55PM +0530, Sunil V L wrote: > Generate the Processor Properties Topology Table (PPTT) for the RISC-V > virt machine. > > Describe the machine using separate L1 data and instruction caches plus > unified L2 and L3 caches, and enable the corresponding cache and cluster > SMP properties. > > Signed-off-by: Sunil V L > Signed-off-by: Sia Jee Heng > --- > hw/riscv/virt-acpi-build.c | 7 ++++++ > hw/riscv/virt.c | 51 ++++++++++++++++++++++++++++++++++++++ > include/hw/riscv/virt.h | 4 +++ > 3 files changed, 62 insertions(+) [..] > diff --git a/include/hw/riscv/virt.h b/include/hw/riscv/virt.h > index e516898f9ad9..1e498a4f5f6e 100644 > --- a/include/hw/riscv/virt.h > +++ b/include/hw/riscv/virt.h > @@ -121,10 +121,14 @@ enum { > #define VIRT_PLIC_SIZE(__num_context) \ > (VIRT_PLIC_CONTEXT_BASE + (__num_context) * VIRT_PLIC_CONTEXT_STRIDE) > > +#define CPU_MAX_CACHES 16 > + > bool virt_is_acpi_enabled(RISCVVirtState *s); > bool virt_is_iommu_sys_enabled(RISCVVirtState *s); > void virt_acpi_setup(RISCVVirtState *vms); > > +unsigned int virt_get_caches(CPUCoreCaches *caches); > + > /* > * The virt machine physical address space used by some of the devices > * namely ACLINT, PLIC, APLIC, and IMSIC depend on number of Sockets, This hunk no longer applies on riscv-to-apply.next. Do you plan to post a v3? My RQSC series [1] depends on this series. Thanks, Drew [1] https://lore.kernel.org/qemu-devel/20261113-riscv-rqsc-v2-0-34d47fa4141e@kernel.org/