{"id":2227175,"url":"http://patchwork.ozlabs.org/api/1.1/patches/2227175/?format=json","web_url":"http://patchwork.ozlabs.org/project/qemu-devel/patch/20260423100229.2941820-6-peter.maydell@linaro.org/","project":{"id":14,"url":"http://patchwork.ozlabs.org/api/1.1/projects/14/?format=json","name":"QEMU Development","link_name":"qemu-devel","list_id":"qemu-devel.nongnu.org","list_email":"qemu-devel@nongnu.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20260423100229.2941820-6-peter.maydell@linaro.org>","date":"2026-04-23T10:01:35","name":"[PULL,05/59] acpi: Add parameters to pass cache descriptions to ACPI build_pptt()","commit_ref":null,"pull_url":null,"state":"not-applicable","archived":false,"hash":"c26580865d8c68b8035d68a19998dc01b40008c5","submitter":{"id":5111,"url":"http://patchwork.ozlabs.org/api/1.1/people/5111/?format=json","name":"Peter Maydell","email":"peter.maydell@linaro.org"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/qemu-devel/patch/20260423100229.2941820-6-peter.maydell@linaro.org/mbox/","series":[{"id":501172,"url":"http://patchwork.ozlabs.org/api/1.1/series/501172/?format=json","web_url":"http://patchwork.ozlabs.org/project/qemu-devel/list/?series=501172","date":"2026-04-23T10:01:35","name":"[PULL,01/59] target/arm/tcg: increase cache level for cpu=max","version":1,"mbox":"http://patchwork.ozlabs.org/series/501172/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2227175/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2227175/checks/","tags":{},"headers":{"Return-Path":"<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256\n header.s=google header.b=YLSoPJo7;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org\n (client-ip=209.51.188.17; helo=lists1p.gnu.org;\n envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=patchwork.ozlabs.org)"],"Received":["from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17])\n\t(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g1WrL1M3Zz1yD5\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 23 Apr 2026 20:03:28 +1000 (AEST)","from localhost ([::1] helo=lists1p.gnu.org)\n\tby lists1p.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-devel-bounces@nongnu.org>)\n\tid 1wFqtU-0006LB-Mv; Thu, 23 Apr 2026 06:02:48 -0400","from eggs.gnu.org ([2001:470:142:3::10])\n by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <peter.maydell@linaro.org>)\n id 1wFqtM-0006Iv-8u\n for qemu-devel@nongnu.org; Thu, 23 Apr 2026 06:02:41 -0400","from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)\n (Exim 4.90_1) (envelope-from <peter.maydell@linaro.org>)\n id 1wFqtK-0001xW-KN\n for qemu-devel@nongnu.org; Thu, 23 Apr 2026 06:02:40 -0400","by mail-wr1-x42f.google.com with SMTP id\n ffacd0b85a97d-43cfde3c3f3so6632686f8f.3\n for <qemu-devel@nongnu.org>; Thu, 23 Apr 2026 03:02:38 -0700 (PDT)","from lanath.. (wildly.archaic.org.uk. [81.2.115.145])\n by smtp.gmail.com with ESMTPSA id\n ffacd0b85a97d-43fe4e4eec9sm49323930f8f.34.2026.04.23.03.02.35\n for <qemu-devel@nongnu.org>\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Thu, 23 Apr 2026 03:02:35 -0700 (PDT)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=linaro.org; s=google; t=1776938557; x=1777543357; darn=nongnu.org;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:to:from:from:to:cc:subject:date:message-id\n :reply-to; bh=DbK55rulsKaDcNgAtsD5u3wXEZM2mu5kv3ncCIfe2Yk=;\n b=YLSoPJo7/OczbEwKcIwvmXNOtRuWi/4g8h4Rq5tk17WDu2NxwjDODM04LhzTm8SdG+\n NrXA22CenWd983xdUH92ELGiy9IfHg2E92totN4it1TFBOFS2r3YTbTO95ojPiYXI779\n NPDqCzU5x6lQ0/zzZUr8Av+uz333bV4+san76Fxjlu+kf9F5vYFZDiV1gxjz3DJc+hI/\n iQBEsNyjd3BkHBdLln7cwuGL0mgFIRqZu4gJtwVuG4llki4QsI6hfgfs5vuM9qaEwFsN\n +JGW8gNtVVTB/9B5GKusj7A72R2H7PnKIQSbXyg8GHsvlcNakSL0x1od6Uc3tShqDs7y\n siLA==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1776938557; x=1777543357;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to\n :cc:subject:date:message-id:reply-to;\n bh=DbK55rulsKaDcNgAtsD5u3wXEZM2mu5kv3ncCIfe2Yk=;\n b=AB4mGeyNE6Ac0+6D/jezsldX82coNPybX3PF1ELgraZNXsGpFuoC4LyczZQR/FgneX\n tztpp8VpVUn7QRWZ8czfu8OxJLqyP9TxAZtD00EnGyWngiuplJt3PdXAYxLD/QdDGa/0\n H8x9X7hzsvKsh1eDCf65O/YPrk6G4y4DuSSkSG3xPkkQgCCSY3c1MWW/b2iAZrYtSmXy\n vbFic027xEWtAg3WfQ6ubXBE/zwVMEFN5D9KOrvYPNFyXzOdVUbo9mjRQfVpOqbXAEkn\n AC6zXU4gmY3+ZWdnh7mdaVv0qqTceJYa+9n0+5QLth4NiC2aPYSImHarlqCcSGtKg3Ce\n UUtQ==","X-Gm-Message-State":"AOJu0Yx7wOOihqSo7FGHpPQkFtgr3bDhNfJmaL91CM1cxRchnhjgILO4\n VsWuE9I6cHDmAnz40gx1EQwlnpwN1/mcpglpaQVzUnts4WxMgoAgQpzBPxM1s1RZWhE3MGOjOPp\n UShtu","X-Gm-Gg":"AeBDievoFMx1SfCOSPKJn431j05Feucf51UkDBGDYjwe6jaAeqkZfOTLp8Z4ASDYFa4\n mtIBwz3Renzjx2BGuxeXSV2Aax3+NyCE7c1klDe3vKhmbKbKdsYeyjDYzubNAMP/XSPz7M08CBe\n YZgnXBb8K2Ru9qMJ9W07jzV1e+yAB91VkzT0i+HSChj2LsuOFJQfSd5wLe1AmfR3upNheC0Ty2a\n pFlw9kwg6G+Fk7jhdEhFFZPGS+VU8lp7Oq3QVYhdXohM6bCAYtJVvNQLjANVaGfkrIfW9xLkMSD\n msT3JafEfqHT6ZJP5I6rOK2/EIDdJtYlfmvysgPfxC7f/lkne/m29f+T/2Zs2vUavbidlYhcsx2\n Z5xbfKEQdFLTyFRUGCLUTKcrkwrPD45m3KFkQy/luK4+LTWe7XGsXs3WPD6x0emQVH5l+w0P+Sh\n 1ROZswTSEhtjZYuu4BqUg8EgErOVYiwKquIiVuk/5AVl07HtLHhV+tEPuM1OR+nccNKB76xmy20\n 2uYA2Ky3KOd5FP3TVmI9wmL+bW8eYUZHSDsTh5MEg==","X-Received":"by 2002:a05:6000:420a:b0:43c:4810:dc4a with SMTP id\n ffacd0b85a97d-43fe3e14f81mr41168144f8f.38.1776938556401;\n Thu, 23 Apr 2026 03:02:36 -0700 (PDT)","From":"Peter Maydell <peter.maydell@linaro.org>","To":"qemu-devel@nongnu.org","Subject":"[PULL 05/59] acpi: Add parameters to pass cache descriptions to ACPI\n build_pptt()","Date":"Thu, 23 Apr 2026 11:01:35 +0100","Message-ID":"<20260423100229.2941820-6-peter.maydell@linaro.org>","X-Mailer":"git-send-email 2.43.0","In-Reply-To":"<20260423100229.2941820-1-peter.maydell@linaro.org>","References":"<20260423100229.2941820-1-peter.maydell@linaro.org>","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Received-SPF":"pass client-ip=2a00:1450:4864:20::42f;\n envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x42f.google.com","X-Spam_score_int":"-20","X-Spam_score":"-2.1","X-Spam_bar":"--","X-Spam_report":"(-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,\n DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,\n RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,\n 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 <qemu-devel.nongnu.org>","List-Unsubscribe":"<https://lists.nongnu.org/mailman/options/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>","List-Archive":"<https://lists.nongnu.org/archive/html/qemu-devel>","List-Post":"<mailto:qemu-devel@nongnu.org>","List-Help":"<mailto:qemu-devel-request@nongnu.org?subject=help>","List-Subscribe":"<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=subscribe>","Errors-To":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org","Sender":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org"},"content":"From: Alireza Sanaee <alireza.sanaee@huawei.com>\n\nAdd optional parameters to pass cache descriptions to build_pptt().\nUpdate ARM and Loongarch callers to pass none for now.\n\nReviewed-by: Gustavo Romero <gustavo.romero@linaro.org>\nReviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com>\nSigned-off-by: Alireza Sanaee <alireza.sanaee@huawei.com>\nMessage-id: 20260311160609.358-6-alireza.sanaee@huawei.com\nSigned-off-by: Peter Maydell <peter.maydell@linaro.org>\n---\n hw/acpi/aml-build.c            | 3 ++-\n hw/arm/virt-acpi-build.c       | 2 +-\n hw/loongarch/virt-acpi-build.c | 4 ++--\n include/hw/acpi/aml-build.h    | 4 +++-\n 4 files changed, 8 insertions(+), 5 deletions(-)","diff":"diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c\nindex 4b37405088..b0ea8a5d5d 100644\n--- a/hw/acpi/aml-build.c\n+++ b/hw/acpi/aml-build.c\n@@ -2155,7 +2155,8 @@ void build_spcr(GArray *table_data, BIOSLinker *linker,\n  * 5.2.29 Processor Properties Topology Table (PPTT)\n  */\n void build_pptt(GArray *table_data, BIOSLinker *linker, MachineState *ms,\n-                const char *oem_id, const char *oem_table_id)\n+                const char *oem_id, const char *oem_table_id,\n+                int num_caches, CPUCoreCaches *caches)\n {\n     MachineClass *mc = MACHINE_GET_CLASS(ms);\n     CPUArchIdList *cpus = ms->possible_cpus;\ndiff --git a/hw/arm/virt-acpi-build.c b/hw/arm/virt-acpi-build.c\nindex 591cfc993c..cd0700416e 100644\n--- a/hw/arm/virt-acpi-build.c\n+++ b/hw/arm/virt-acpi-build.c\n@@ -1277,7 +1277,7 @@ void virt_acpi_build(VirtMachineState *vms, AcpiBuildTables *tables)\n     if (!vmc->no_cpu_topology) {\n         acpi_add_table(table_offsets, tables_blob);\n         build_pptt(tables_blob, tables->linker, ms,\n-                   vms->oem_id, vms->oem_table_id);\n+                   vms->oem_id, vms->oem_table_id, 0, NULL);\n     }\n \n     acpi_add_table(table_offsets, tables_blob);\ndiff --git a/hw/loongarch/virt-acpi-build.c b/hw/loongarch/virt-acpi-build.c\nindex 3e34bedcd6..a0b445f297 100644\n--- a/hw/loongarch/virt-acpi-build.c\n+++ b/hw/loongarch/virt-acpi-build.c\n@@ -538,8 +538,8 @@ static void acpi_build(AcpiBuildTables *tables, MachineState *machine)\n     build_madt(tables_blob, tables->linker, lvms);\n \n     acpi_add_table(table_offsets, tables_blob);\n-    build_pptt(tables_blob, tables->linker, machine,\n-               lvms->oem_id, lvms->oem_table_id);\n+    build_pptt(tables_blob, tables->linker, machine, lvms->oem_id,\n+               lvms->oem_table_id, 0, NULL);\n \n     acpi_add_table(table_offsets, tables_blob);\n     build_srat(tables_blob, tables->linker, machine);\ndiff --git a/include/hw/acpi/aml-build.h b/include/hw/acpi/aml-build.h\nindex f38e129719..e70e0643b1 100644\n--- a/include/hw/acpi/aml-build.h\n+++ b/include/hw/acpi/aml-build.h\n@@ -3,6 +3,7 @@\n \n #include \"hw/acpi/acpi-defs.h\"\n #include \"hw/acpi/bios-linker-loader.h\"\n+#include \"hw/core/cpu.h\"\n \n #define ACPI_BUILD_APPNAME6 \"BOCHS \"\n #define ACPI_BUILD_APPNAME8 \"BXPC    \"\n@@ -499,7 +500,8 @@ void build_slit(GArray *table_data, BIOSLinker *linker, MachineState *ms,\n                 const char *oem_id, const char *oem_table_id);\n \n void build_pptt(GArray *table_data, BIOSLinker *linker, MachineState *ms,\n-                const char *oem_id, const char *oem_table_id);\n+                const char *oem_id, const char *oem_table_id,\n+                int num_caches, CPUCoreCaches *caches);\n \n void build_fadt(GArray *tbl, BIOSLinker *linker, const AcpiFadtData *f,\n                 const char *oem_id, const char *oem_table_id);\n","prefixes":["PULL","05/59"]}