From: Sia Jee Heng <jeeheng.sia@starfivetech.com>
To: qemu-devel@nongnu.org, qemu-arm@nongnu.org, qemu-riscv@nongnu.org
Cc: mst@redhat.com, imammedo@redhat.com, anisinha@redhat.com,
shannon.zhaosl@gmail.com, jeeheng.sia@starfivetech.com,
peter.maydell@linaro.org, sunilvl@ventanamicro.com,
palmer@dabbelt.com, alistair.francis@wdc.com,
bin.meng@windriver.com, liwei1518@gmail.com,
dbarboza@ventanamicro.com, zhiwei_liu@linux.alibaba.com
Subject: [RESEND RFC 0/3] Add cache structure table creation for PPTT table
Date: Mon, 29 Jan 2024 02:40:36 -0800 [thread overview]
Message-ID: <20240129104039.117671-1-jeeheng.sia@starfivetech.com> (raw)
This patch series adds cache structure table generation for the Processor
Properties Topology Table (PPTT) to describe cache hierarchy information
for ACPI guests. Both ARM and RISC-V virtual machines benefit from these
enhancement.
A 3-level cache topology is employed here, referring to the type 1 cache
structure according to ACPI spec v6.3. The L1 cache and L2 cache are
private resources for the core, while the L3 cache is the private
resource for the cluster.
In the absence of cluster values in the QEMU command, a 2-layer cache is
expected. The default cache value should be passed in from the
architecture code.
Examples:
3-layer: -smp 4,sockets=1,clusters=2,cores=2,threads=1
2-layer: -smp 4,sockets=1,cores=2,threads=2
Sia Jee Heng (3):
hw/acpi/aml-build: Add cache structure table creation for PPTT table
hw/riscv/virt-acpi-build.c: Generate PPTT table
hw/arm/virt-acpi-build.c: Enable CPU cache topology
hw/acpi/aml-build.c | 65 ++++++++++++++++++++++++++++++++++---
hw/arm/virt-acpi-build.c | 44 ++++++++++++++++++++++++-
hw/riscv/virt-acpi-build.c | 49 +++++++++++++++++++++++++++-
hw/riscv/virt.c | 1 +
include/hw/acpi/aml-build.h | 26 ++++++++++++++-
5 files changed, 177 insertions(+), 8 deletions(-)
base-commit: 7a1dc45af581d2b643cdbf33c01fd96271616fbd
--
2.34.1
next reply other threads:[~2024-01-29 10:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-29 10:40 Sia Jee Heng [this message]
2024-01-29 10:40 ` [RESEND RFC 1/3] hw/acpi/aml-build: Add cache structure table creation for PPTT table Sia Jee Heng
2024-01-29 10:40 ` [RESEND RFC 2/3] hw/riscv/virt-acpi-build.c: Generate " Sia Jee Heng
2024-01-29 10:40 ` [RESEND RFC 3/3] hw/arm/virt-acpi-build.c: Enable CPU cache topology Sia Jee Heng
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240129104039.117671-1-jeeheng.sia@starfivetech.com \
--to=jeeheng.sia@starfivetech.com \
--cc=alistair.francis@wdc.com \
--cc=anisinha@redhat.com \
--cc=bin.meng@windriver.com \
--cc=dbarboza@ventanamicro.com \
--cc=imammedo@redhat.com \
--cc=liwei1518@gmail.com \
--cc=mst@redhat.com \
--cc=palmer@dabbelt.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-riscv@nongnu.org \
--cc=shannon.zhaosl@gmail.com \
--cc=sunilvl@ventanamicro.com \
--cc=zhiwei_liu@linux.alibaba.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).