From patchwork Thu Apr 3 20:40:25 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: 877953 Delivered-To: patch@linaro.org Received: by 2002:a5d:6dae:0:b0:38f:210b:807b with SMTP id u14csp3468746wrs; Thu, 3 Apr 2025 13:43:21 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXU8wA9EPbM+gZyjf03MTzEPtwWl8YNi4BukWnuslxMy6z7H2jCi0WtSQiaGbaIureDBcSPcQ==@linaro.org X-Google-Smtp-Source: AGHT+IHmvP8e6C7RCVqZLEzmyWfcRw5pdbzSrZZVpWPlYn2Dr1w0V84DOq9B+qNMiiYCpD0sDmT4 X-Received: by 2002:a05:622a:f:b0:476:881e:eeda with SMTP id d75a77b69052e-4792598ee31mr4519201cf.24.1743713000884; Thu, 03 Apr 2025 13:43:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1743713000; cv=none; d=google.com; s=arc-20240605; b=CkS07rOm5ib2YY1vcQoRWiXZMPDT1SfJyKRkkWyWVB+g2XwNOfOpV6S2YO392igEjZ +B+3kEUxpVYr9/OU3sVIBr1rCCZ1CLiKk+amtlltCepRdWLhiu0X8T6r/StJY3Cg8xIb ybPc4+br+DtDjeN91Sj00xvEF424ivh2/vvxLztDbWZMOYEDVEipj+mxudLai3ke78/Y MwaU5dprhZYyMZIVwYldZNPFPg7MEz4nsLhUOzsaafqshSwhVeX469bDBVPNTZ4DsnaN LFuYE4vXFY9y+p49a+dku+deIGnBlgGuHNJR8X4o9RgeL2pPXW3rS+FWcVvWPOolHYej b4BQ== 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:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=877Ft8S2r+Y3e5owHO3tHYlDGhoIjLwtX0511Fk5+so=; fh=cT8sTm3MaRRFY9PfjuzDPMPIjI/oXWRSXbH4Hrbck2w=; b=UrMoy7Rb1B9yPBFHAe0qKJxga/sEsavUulxEpcTeDNuT1ihqwvpZry7ECbnPpCJu2/ uYr3BytlFtp5DdxKc9LNhovBAYD68R+XG9eZ9L42wFxvHfttWA4Pl1huQG7S6UHgGWTu lPjryS9VDkMkceHmnTPPU1bkrshAF23PG/wONtJn1Jz3JECkQ0604Lp5HtH9mDBIV6K6 xbK6GKCPMkJjG24KKV6X8rp9GZXWhcQAYXjIjT24PZD05ysVdb9bfzO1h22u1ZbJEgto 66FVrT2LnUQwKGhFD8ibmOhbLfFF+5pucuSn0lKl9q/sl+ILmDCJu3e7r1/yA06vGmIH cJ5Q==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b="fU/VdtIO"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=fail 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-4791b1c1354si16861631cf.492.2025.04.03.13.43.20 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 03 Apr 2025 13:43:20 -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=fail header.i=@linaro.org header.s=google header.b="fU/VdtIO"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=fail 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 1u0RN5-0000Ui-9w; Thu, 03 Apr 2025 16:41:07 -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 1u0RN1-0000UG-0L for qemu-devel@nongnu.org; Thu, 03 Apr 2025 16:41:03 -0400 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1u0RMz-00054g-1T for qemu-devel@nongnu.org; Thu, 03 Apr 2025 16:41:02 -0400 Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-43cf06eabdaso11711695e9.2 for ; Thu, 03 Apr 2025 13:41:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1743712858; x=1744317658; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=877Ft8S2r+Y3e5owHO3tHYlDGhoIjLwtX0511Fk5+so=; b=fU/VdtIOELqOhynYVKlhaAzreWU1Cxx5ASG3rnM6Uot5h9d/19qAo5MlMmpamS7NHG h0oKQ/1bcOBq0x2wbH2ez59979Uv6QPxluNk7GLdvSdDjr7hkAV1JISrmkoDCQnBcVdD 7jMmvvSQfzKm8DvCBEN/nWMHZwM5JZjoM1xjn9NijvWOIaXpFaDKzyuVvmRREzbQ7x3F Wof8XLGCOQhxvd5sv4RZQjVKoO8hhyP6qIsjp831Yl6oRKz49m2G1Rgcrtre2Lhsqxua jRlczzBp80Su8ZxaXW7JTx7ZqNT5qZq8MzIRC2hlRguaVmBk3q3NbQrBJjVu2V83LWxu IptA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743712858; x=1744317658; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=877Ft8S2r+Y3e5owHO3tHYlDGhoIjLwtX0511Fk5+so=; b=vdo9mir9jyd89RHxce9CdnAdxVUsmcOJSXF+gtcdzeSF2ERPcfIoXcOTbJC2LiuNTs 55iASjcpmWuU7gxUu6oCU7Mpwk1vKWG38FBpZypRd/Lv2p7Yq8WUkVf9rNf4vRJqGmf2 Hl0lPeSkwGErpOwPdEf3jkkKOdsY3sZIg9Il2/+c5JitRsGWG2sR5jlEsfDs5edlT0Ae uA9eGQTS0Cxw+RDe1nNPMLuRlT8zrrao/Lr8ygtGNRt++hNJ9jBJehpWzbCMmUPMp5UM +XAs5l3S8BrtTjSfpAmv6GvFjc/2milnJSzB4cIf39XGmY2dtXTGZ5DNNpw39SxmW2qE kaIg== X-Gm-Message-State: AOJu0Yz16Hs3U3+XJNY41UlZclEtNZzkZogzLFKjSkdpd2G2GxzCYMvS pj/ddJHkQwEu50IDSLvIeDEz9k/dSbzYYJxezjvsQXhDYSd9IpjMPOIWHGLT7Ltob5KzNVl4qaY L X-Gm-Gg: ASbGncscYk2mfixKpz+//6vdndcwwllERPoVuYcejuUBPIGjFAkU9brBGzsYE/6XWSh lOx5zTNrROnyHyphkD66oAmrrfo641K+luf6mvq4Pgj4Hnzc8Jw+qMyUe+XGVU6Df4CNy0C1nvu I7ILmdg0NOukFKN8p7g4ihK6365yKF/TSNcWxFr3jJqLPfLCvflscRwlY28kPq2Xr2oxBv19MQc YxMYGXVC1JFG3DUahJYiJX1hliwNUoV/eAhFACXmdz1DWIz4fwzMMjp/VKn2cGy2Q8G733bpQOn lcBC8d7/WTQXba2sA2WOcNh61PeIvge8ma8Buva+t3AWD/s122acX0bdJXuzi8+B2tCQLh2jIof U7ufFbD1cZma8Zuj/+QCHOiyn X-Received: by 2002:a05:600c:4e05:b0:43c:f8fe:dd82 with SMTP id 5b1f17b1804b1-43ecf90b278mr5431455e9.18.1743712858208; Thu, 03 Apr 2025 13:40:58 -0700 (PDT) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-39c30096ecasm2751545f8f.18.2025.04.03.13.40.57 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 03 Apr 2025 13:40:57 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Andrew Jones , =?utf-8?q?Alex_Benn=C3=A9e?= , "Michael S. Tsirkin" , qemu-arm@nongnu.org, Udo Steinberg , Shannon Zhao , Gustavo Romero , Igor Mammedov , Peter Maydell , Ani Sinha , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH-for-10.1 v3 5/9] qtest/bios-tables-test: Add test for -M virt, its=off Date: Thu, 3 Apr 2025 22:40:25 +0200 Message-ID: <20250403204029.47958-6-philmd@linaro.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20250403204029.47958-1-philmd@linaro.org> References: <20250403204029.47958-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::330; envelope-from=philmd@linaro.org; helo=mail-wm1-x330.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=unavailable 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 Add the use case reported as issue #2886 [*]. The test passes while it shouldn't. We are going to fix that in the following commits. [*] https://gitlab.com/qemu-project/qemu/-/issues/2886 Signed-off-by: Philippe Mathieu-Daudé --- tests/qtest/bios-tables-test.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/tests/qtest/bios-tables-test.c b/tests/qtest/bios-tables-test.c index 0a333ec4353..baaf199e01c 100644 --- a/tests/qtest/bios-tables-test.c +++ b/tests/qtest/bios-tables-test.c @@ -2146,6 +2146,25 @@ static void test_acpi_aarch64_virt_tcg_topology(void) free_test_data(&data); } +static void test_acpi_aarch64_virt_tcg_its_off(void) +{ + test_data data = { + .machine = "virt", + .arch = "aarch64", + .tcg_only = true, + .uefi_fl1 = "pc-bios/edk2-aarch64-code.fd", + .uefi_fl2 = "pc-bios/edk2-arm-vars.fd", + .cd = "tests/data/uefi-boot-images/bios-tables-test.aarch64.iso.qcow2", + .ram_start = 0x40000000ULL, + .scan_len = 128ULL * 1024 * 1024, + }; + + test_acpi_one("-cpu cortex-a57 " + "-M virtualization=on,secure=off " + "-M gic-version=max,its=off,iommu=smmuv3", &data); + free_test_data(&data); +} + static void test_acpi_q35_viot(void) { test_data data = { @@ -2577,6 +2596,8 @@ int main(int argc, char *argv[]) test_acpi_aarch64_virt_tcg_acpi_hmat); qtest_add_func("acpi/virt/topology", test_acpi_aarch64_virt_tcg_topology); + qtest_add_func("acpi/virt/its_off", + test_acpi_aarch64_virt_tcg_its_off); qtest_add_func("acpi/virt/numamem", test_acpi_aarch64_virt_tcg_numamem); qtest_add_func("acpi/virt/memhp", test_acpi_aarch64_virt_tcg_memhp);