qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [RFC v1 0/3] Add cache structure table creation for PPTT table
@ 2024-01-29  8:14 Sia Jee Heng
  2024-01-29  8:14 ` [RFC v1 1/3] hw/acpi/aml-build: " Sia Jee Heng
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Sia Jee Heng @ 2024-01-29  8:14 UTC (permalink / raw)
  To: qemu-devel, qemu-arm, qemu-riscv
  Cc: mst, imammedo, anisinha, shannon.zhaosl, jeeheng.sia,
	peter.maydell, sunilvl, palmer, alistair.francis, bin.meng,
	liwei1518, dbarboza, zhiwei_liu

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



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2024-02-02 17:32 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-29  8:14 [RFC v1 0/3] Add cache structure table creation for PPTT table Sia Jee Heng
2024-01-29  8:14 ` [RFC v1 1/3] hw/acpi/aml-build: " Sia Jee Heng
2024-01-29 11:02   ` Jonathan Cameron via
2024-01-30  5:00     ` JeeHeng Sia
2024-01-31 15:53       ` Jonathan Cameron via
2024-01-29  8:14 ` [RFC v1 2/3] hw/riscv/virt-acpi-build.c: Generate " Sia Jee Heng
2024-01-29  8:14 ` [RFC v1 3/3] hw/arm/virt-acpi-build.c: Enable CPU cache topology Sia Jee Heng
2024-01-29 11:08   ` Jonathan Cameron via
2024-01-30  5:03     ` JeeHeng Sia
2024-01-31 15:56       ` Jonathan Cameron via
2024-02-01 16:06     ` Peter Maydell
2024-02-02 17:30       ` Jonathan Cameron via

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).