From patchwork Mon Mar 31 22:12:35 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: 877329 Delivered-To: patch@linaro.org Received: by 2002:a5d:6dae:0:b0:38f:210b:807b with SMTP id u14csp1972513wrs; Mon, 31 Mar 2025 15:13:39 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWu8KzuYEES4ugFNYgq4r/XStqTxhPfOn5p0laVJgDuo7TYgA7pa06ZDTBPcJW2P5wY6Vpafw==@linaro.org X-Google-Smtp-Source: AGHT+IEZCC4CfjuH/+mmS3wRcscyUdLV4m4c7r0DexJZ2qR0ksCoQ0pLZ5/TraqaLoUsf43TgjcG X-Received: by 2002:a05:622a:289:b0:476:8f75:b898 with SMTP id d75a77b69052e-478f6ca2724mr8922431cf.25.1743459218743; Mon, 31 Mar 2025 15:13:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1743459218; cv=none; d=google.com; s=arc-20240605; b=cA/n8GA+YWXdOZEpKthH80SRzBkbfbr5feaq7hzaW6PXwtYgsNfVR3muSF899ALc+l r93meFNIJno4EHsQKppI7kKEs9rgptF1yTazHaZn6Y43hK9ZMaiVrNfz49JhXh8qE8Or xYHJC+t0U3xtlgI03xUl1/+c7t1oJhcOZd0cI0266EsI05bpFeITGjbno/602Z2vgYE5 vqYPW90hAyqb+lgEO06vZsUc7i9EIjURDZ8ubUHpxBzEVEUmF0KaUcwObJFMZAoJylpK UPCh7kRSXNtuWiHbWeFC95InSRaVuiOnuTQfCXPTMEvEgFEYkZ1XDIHD7E50eLnxlOxD V1UQ== 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=obHKoIEOzkL/pFU0m16gFeNK6bbRhAdAffgtXHxHseE=; fh=knHaNtCiWBKRvwFWsaOcTt4xVsHZ3wC27Cl3q2wDLF8=; b=D6whQHT1JUMqIezNZhQx+f3j0eVXylvExze23oqVECszwKOGNr21qSrLbJGsWopYhX 1XHPaYHQMEl3ATUEoTumB/lfSe4Zc7+LgxEOrRXN7pVWO88+zhbLfNfxz/4t2NQLJDeO 70F7JeeoRtESWEqgcMGNBk6hYlwm37k2njCE6oc7G07F3hoDJIK6dahCSY/pTgqJy1ur h/LzaY9WrxqmEFvhLoJ1aATKPOAe1cJVCnmsI9mk9gG64hQTTocx1nJbNnb5gizFT9EM em4HNWf0hXdmk18SyWKCbiYnF02UiZh46bM3PDTVyz6nRREkjDtLG2QMQh+g9V4lxG8v 3yLw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=BXN7QIqt; 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-47782a1c1b5si74486211cf.92.2025.03.31.15.13.38 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 31 Mar 2025 15:13:38 -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=BXN7QIqt; 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 1tzNNE-0000Vs-NW; Mon, 31 Mar 2025 18:12:52 -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 1tzNNC-0000Tv-PM for qemu-devel@nongnu.org; Mon, 31 Mar 2025 18:12:50 -0400 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tzNNB-00075N-29 for qemu-devel@nongnu.org; Mon, 31 Mar 2025 18:12:50 -0400 Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-43cf0d787eeso46322385e9.3 for ; Mon, 31 Mar 2025 15:12:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1743459167; x=1744063967; 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=obHKoIEOzkL/pFU0m16gFeNK6bbRhAdAffgtXHxHseE=; b=BXN7QIqt45YswU09uZsYJI5tS6nK5zSpoKyl8M+l5FOazBRPOysvok7NQRASjY1fWj VKj6fok/NfNDij2EaHe/EgPDLhbp85GDYROKnXmfj7GvvRlHlzFn7cJpGcShLMmJXo5A o1wgivurTPqWTc/trT79TGFaNvgyXftwmZDGfBO87EQ9hhIj2tg1zRCNKN+dqb3p3AlG AN/3Imow0ZPXqIRV2PJ199YBf/M1uVDTrunymlNydOKbMLXqCKbiJ+SNuDjEK0VrP+MJ dnyeb0wzZgiZfM2wDXbjPTlPwr+I+KlqaF7SQvn0u34cgDIVgFlDHBzeHdo8wwHpBJEW 6B6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743459167; x=1744063967; 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=obHKoIEOzkL/pFU0m16gFeNK6bbRhAdAffgtXHxHseE=; b=dJy7H08iDVmbXoaDNmVcuZvEIbLx75/fMLZqh2Rj2507T6JtQYk718n0dCjic885Mz 59SgV2rwMvl1jaChMVut6ZTk6AfVDDEFD8b701CKrVweL3RA6pnuqr1cFwCdBcVzz0V3 L/NZC7ItXt1SE6G6YUUE+qfihRJlciveLtcEUM6JsZwstfKtPOp+5A/ae77je0U1rJxN QKcstFiaHMFwf3uur3YHGB/iGrQqf2LW7gqi8pg65JgtLrTZ6HAfVjSbmqduHYHZo7ag MtK5i2bXLiymlJORQlevq6lC+CDNlrFZm8RiCrIJ0sp9pOYqa0CpBZJF2e8QvT9M4XI0 Bugw== X-Gm-Message-State: AOJu0YxPGQoKoXPikY/O1Bc32XG6s5S0CO7je2u8bpJh7O9iS1ZLErPJ 4TaQYpaeyl0JFABMaEVrNDtJuZitAM8GM/JYWAEK6Vftotx/eBy3ULX0fiWo4xNgCFYMTsE50dC 4 X-Gm-Gg: ASbGncuonDifn6PD8FLWGDtXGD96jbpfdl3WN5xgDXtmPXmF4KyevJ7V2Fdw1gEi5Mq deKCWo4o85BVeSuDJArMHWHmJE6MR/EKs+8EG2BggFMHqLW9GvcEze0RLIKTupa1oQxsd5dHuL4 m68og39nfJc2nwRkpTWMUiH6K5kD5xHoF4dTtQJjiU9S8KaxhMo/vuLg5k4CxACj64gdmwK9jzb ig3SITKBAVpWGNAsUi9Gk56+8p/E8ELhF2yNEbPZRWcekse+TIxRtRck9PRKTH5c3vKZBhq3RhA UoEFd8IzGnQoaaZ/46+Q26iNOc3ULZ0syFj+7cuuxwujAvw0+4u34OYBr0j0vLVrREPwICOogp1 p4oJHoti7dJZn3jRIsec= X-Received: by 2002:a05:6000:1862:b0:390:f6aa:4e7c with SMTP id ffacd0b85a97d-39c120e0bc1mr8515397f8f.28.1743459167214; Mon, 31 Mar 2025 15:12:47 -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-39c0b7a4200sm12533268f8f.96.2025.03.31.15.12.45 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 31 Mar 2025 15:12:46 -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 1/5] qtest/bios-tables-test: Add test for -M virt, its=off Date: Tue, 1 Apr 2025 00:12:35 +0200 Message-ID: <20250331221239.87150-2-philmd@linaro.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20250331221239.87150-1-philmd@linaro.org> References: <20250331221239.87150-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::331; envelope-from=philmd@linaro.org; helo=mail-wm1-x331.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 Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Gustavo Romero --- tests/qtest/bios-tables-test.c | 22 ++++++++++++++++++++++ tests/data/acpi/aarch64/virt/APIC.its_off | Bin 0 -> 184 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 4 files changed, 22 insertions(+) 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 GIT binary patch literal 236 zcmebD4+?q1z`(#9?&R<65v<@85#X!<1dKp25F11@1F-=RgMkDCNC*yK9F_TjFfcO#g+N#Zh@s|zoCF3AP#UU@ R!2`+%Dg6Hr$N|zYvjDIZ5CH%H literal 0 HcmV?d00001 diff --git a/tests/qtest/bios-tables-test.c b/tests/qtest/bios-tables-test.c index 0a333ec4353..55366bf4956 100644 --- a/tests/qtest/bios-tables-test.c +++ b/tests/qtest/bios-tables-test.c @@ -2146,6 +2146,26 @@ 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", + .variant = ".its_off", + .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 +2597,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); diff --git a/tests/data/acpi/aarch64/virt/APIC.its_off b/tests/data/acpi/aarch64/virt/APIC.its_off new file mode 100644 index 0000000000000000000000000000000000000000..c37d05d6e05805304f10afe73eb7cb9100fcccfa GIT binary patch literal 184 zcmZ<^@O0k6z`($=+{xeBBUr&HBEVSz2pEB4AU24G0Uik$i-7~iVgWL^17JJ`2AFzr bgb+@aBn}xq0gwb2)Q)cq{30-g9B_L93G4|0 literal 0 HcmV?d00001 diff --git a/tests/data/acpi/aarch64/virt/FACP.its_off b/tests/data/acpi/aarch64/virt/FACP.its_off new file mode 100644 index 0000000000000000000000000000000000000000..606dac3fe4b55c31fd68b25d3a4127eeef227434 GIT binary patch literal 276 zcmZ>BbPf<