From patchwork Mon Mar 31 22:12:34 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 877328 Delivered-To: patch@linaro.org Received: by 2002:a5d:6dae:0:b0:38f:210b:807b with SMTP id u14csp1972447wrs; Mon, 31 Mar 2025 15:13:24 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCU/SWrujD+WfoN4OdfVqCw6ZFUd6Qj+OafqpFqEKc7zEwPnuPMBGc5kccZk30Mb2Kj4KzgG5A==@linaro.org X-Google-Smtp-Source: AGHT+IFeFQ0E+ynS9lVXbpxidDo/NfaYP2YkyZdZc3YHQkzKjbFacDBGKtjQtNkI9RD/fAltgIFc X-Received: by 2002:ac8:5991:0:b0:476:903a:b7f1 with SMTP id d75a77b69052e-477ed79917dmr165863191cf.11.1743459204475; Mon, 31 Mar 2025 15:13:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1743459204; cv=none; d=google.com; s=arc-20240605; b=NbSSpyClWfehUtlF0XQHUqnjx9+UJMfvbxg0jsTxebGCoOQaO2xuPQk5KXDq1gHgYS T3lEblHX978h2ebTkfld/eBwiHrYpoq24RlbXdL6kidx6m3XyhR+sDihy0vGPI6wrlWv nSPPkmT3XR2XUvDciStHClqUb6DoJ7ivrWoMQMnaH+bnjDBFLLNxLgDeU5WA+vWNu0Js kQoo1OMfqmYYc7Cw7YcRzNmoAKQdIv+Hs7MR6DbCYtk2hqa0ybAvqrfhXFvlQjp3w+B+ bYBOeL4U215wjwqMQ1CIhl2PJkATpCXRwrcA6yKfRyqre40/csVw30w+V/nCTP13ALAH DRmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=/2djY+Ipfb5bt5gWpZJXDDTqZrYNZiOz6PXhVA3G2is=; fh=knHaNtCiWBKRvwFWsaOcTt4xVsHZ3wC27Cl3q2wDLF8=; b=DDx41GpXVbuyqjHoyDQ7jyuVkgPZsM9r+++XOmx9Qdy4dwZvD/L89TyOLqNTjqMwXG ren+LPCtIcoLxu50hvqG4KomxnNMZopyUbj6/weZFKZ6i3Xki8ucKCnwGuGGJH8r7CL4 oOH5Uj4ZnC/GBNvlq8rXQL2MOZHY3wghjCb3gHUauYPV3FFj64LmieQWv6b84bZYQUvJ 7iPJyx4tzvOXrKKuPyIi/xi59QrKYHUgL3DN9ajKHScGdE5SgGKUjl7Ld+BPHQ6blvSn TMjTu8bfXSn1ilOEIiT9uU14xEqjSQeFip1eCqNFhVluPDIiNWOzGCWenWVCdrqXQKm7 kNNw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=p+YwqHaA; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-47782a1c14dsi73863551cf.13.2025.03.31.15.13.24 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 31 Mar 2025 15:13:24 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=p+YwqHaA; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tzNN9-0000Re-9d; Mon, 31 Mar 2025 18:12:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tzNN7-0000QP-4k for qemu-devel@nongnu.org; Mon, 31 Mar 2025 18:12:45 -0400 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tzNN5-00074P-Hp for qemu-devel@nongnu.org; Mon, 31 Mar 2025 18:12:44 -0400 Received: by mail-wr1-x42e.google.com with SMTP id ffacd0b85a97d-39ac56756f6so4206237f8f.2 for ; Mon, 31 Mar 2025 15:12:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1743459161; x=1744063961; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=/2djY+Ipfb5bt5gWpZJXDDTqZrYNZiOz6PXhVA3G2is=; b=p+YwqHaA829q1REl4pftgKjRRIHvruyPvGM2cSjfkS5q3OR6FGesFEQon6Ldy9PARG CPw/DeKicMQzvwDSe5bVHHC2rHmwDfxGdAUq0rHmj8QoGGACBuUXc9qfJUJH9LU9mPzq kGA2nQDzl4/j+8PAbbI4BZXS7ew24EZJ7KBUVnDrBygoRK3Ke0KlYbNs1vgY2gZK/BKb J4895Y9JZ9yaxlYLV9t0oYE61FbVIhqHGtLrDpPXEadfvMIwVioyv7AI89fTEb+6DvG9 AFivZsPs13+oas2HM/sF2ACAbjDsnMd32TK05xGvNNaV19N/8GJIbCRy94N3IWWcd1hf rohQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743459161; x=1744063961; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=/2djY+Ipfb5bt5gWpZJXDDTqZrYNZiOz6PXhVA3G2is=; b=UTq+lu4Vx4aD6IbofCv99Bva/m82ayhI4+EmA7UJxw/GyWLkUQMag1dDDTNRUo0VvG fxy4DKqEIpT7raiNk2BU4xYSmUib3oRD0h9tB4GvkKwuh7MRGvCPpn9XBJX5n5n+YpZA OLfJnIaYyfy56ZRGvINoutitJwL6E/+hg2PxfilJ7iZ1QkaN0soJPn7Y6LizpxJvYaIn 5BImn17Vstv01vY+yORdGl/FagwSwQb7Icy4D1bqsal2+verYgr+vBHDzEHMpaC5qg+d r4HHBE+72dg5Cc4xJcWYIi/2ZWJt973HlQwfiDYPoBbRJ7lZWwYVPjgct4+iClBpFG5W OOaA== X-Gm-Message-State: AOJu0YwwgCu1RL9S+scbJ7rTJ//T4pPOz3a4+fRuURe2qLh+LrE9XIVP ozW7McuFd2GnPcJIvwQgj6eBpylBNONucxXg0RDFotvzNBr2W+4T6jKZZzXnugZ4iB6T7Q5PiJo E X-Gm-Gg: ASbGncuLdBoT+pu4c+UCeFzh8wTWvqCd4b4uZAZERoCMhMuxlaSIfuDCbVYYS3ZezI1 GQ504r3ukDPslBsVzENzk+zFJrgh7JRIY/hZMOpwbZ7xcYS4fmeSGrcsOvxaZ1ZAMpVux6gP5v+ BMf3HKFegGz8a4NOb+9zjBfmHdgEuqFNwnEa2vfUTJS5f2jqOc9RG7C1+sWb3fidT4uah5VOlvc ZCbA1LTSVGlFMb4NoeNdR4obTyqpKkINOP11b2x8BYRkY7QTbqEUSd9qPPfNdAyqRvuUR1tZ4HO dOPg/cR1pjtVhDjQ/cuM7hLNHAaFmB+geSO6D9MsxYpPAkONFwTYv3L7S/xdh1nbZGcgB2YUTb2 V/y0viOjkIWppi9dOSuUZp9gd1537Cg== X-Received: by 2002:a05:6000:400c:b0:391:a43:8bbd with SMTP id ffacd0b85a97d-39c120deba4mr9061943f8f.21.1743459161515; Mon, 31 Mar 2025 15:12:41 -0700 (PDT) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43d90000a09sm133627225e9.35.2025.03.31.15.12.40 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 31 Mar 2025 15:12:40 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Udo Steinberg , qemu-arm@nongnu.org, "Michael S. Tsirkin" , Igor Mammedov , Shannon Zhao , Gustavo Romero , Ani Sinha , Peter Maydell , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= Subject: [PATCH-for-10.0 0/5] hw/arm/virt-acpi: Do not advertise disabled GIC ITS in MADT table Date: Tue, 1 Apr 2025 00:12:34 +0200 Message-ID: <20250331221239.87150-1-philmd@linaro.org> X-Mailer: git-send-email 2.47.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42e; envelope-from=philmd@linaro.org; helo=mail-wr1-x42e.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, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, 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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org GIC ITS can be disabled using '-M its=off'. When that occurs, it shouldn't be advertised in ACPI tables. Philippe Mathieu-Daudé (5): qtest/bios-tables-test: Add test for -M virt,its=off qtest/bios-tables-test: Whitelist aarch64/virt/APIC.its_off blob hw/arm/virt-acpi: Factor its_enabled() helper out hw/arm/virt-acpi: Do not advertise disabled GIC ITS qtest/bios-tables-test: Update aarch64/virt/APIC.its_off blob hw/arm/virt-acpi-build.c | 12 +++++++++--- tests/qtest/bios-tables-test.c | 22 ++++++++++++++++++++++ tests/data/acpi/aarch64/virt/APIC.its_off | Bin 0 -> 164 bytes tests/data/acpi/aarch64/virt/FACP.its_off | Bin 0 -> 276 bytes tests/data/acpi/aarch64/virt/IORT.its_off | Bin 0 -> 236 bytes 5 files changed, 31 insertions(+), 3 deletions(-) create mode 100644 tests/data/acpi/aarch64/virt/APIC.its_off create mode 100644 tests/data/acpi/aarch64/virt/FACP.its_off create mode 100644 tests/data/acpi/aarch64/virt/IORT.its_off