From patchwork Thu Apr 3 15:18: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: 877936 Delivered-To: patch@linaro.org Received: by 2002:a5d:6dae:0:b0:38f:210b:807b with SMTP id u14csp3322134wrs; Thu, 3 Apr 2025 08:23:23 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUfHIACad2FECxZMnR8Fa9NldBy9Oo3yTT3ztE4BRdOKJu7ccpaS3gaGu/sn1umOf1CCyi1xA==@linaro.org X-Google-Smtp-Source: AGHT+IGOVt0QFDTtDSjmTwouP39WU8pcd7QiIPl+fcaRh+tpoNdBjCFu18fhnGK6GjZbPQvSqsy4 X-Received: by 2002:a05:6000:1862:b0:39c:12ce:67d with SMTP id ffacd0b85a97d-39c29737ee3mr6397301f8f.9.1743693803783; Thu, 03 Apr 2025 08:23:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1743693803; cv=none; d=google.com; s=arc-20240605; b=N57uifx9/hD3JLg6cPYaqFBEJXz7V2HH0WgkShcP4aU3sIRrx2nxb3l5zENimpJcyx vAyaXEq4bQ0I1Vt54c2BUlQiQ7Npm78lRLYAb9nq/8Lcnt4k5BR9TiC9Y7eIcOTII/Vt p5Qxb/hQbdiCe0sskfgUXi6tBporNAN/7J431rFHU8RjDm7x9OaaqBxeOFV1ALJSJZ8V jyX0A6Yqy1aCVU990AjBTofWpzP7ZCYkdrQTkOSyLGyrK7uCXx28u7kIWxFENj1LB38x Qh1C04TQz/YjgctFyUF+/y4A9ebwoQfo+HX1pqg9pNs1jy7ueMho4RO0tIB4DNKFszDJ r2Kw== 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=uZabDrQmZm0L+6w9TkaKSHx4mVelHvsyKGr5umV4YlI=; b=eIJM7/GVT9mUUzv1Mb20Mo5Fl9WAgJT4SN7ikG8BJ8SY7LInmtX0M0uUj4yGRVeCnD GqghMkhJJ3ViedhqxPgvsmwQdWVcYv+SGX3nYu4qhXEKktf21FBaivuBx+Y1eNxrf+Xm oMLJ4ar7QmY/vnA6Y7XEVhuTUdfq0l8b4MmMxDDIzawLTZWWZVLgqXFfNolxJgbOia1y WRzQI+FYXo4i0ISqzkao6OEVmkcuNEatgyz5PCXFUIJFYQxz/P/y0s4BwCYwy2x4U7m0 kqb1XCjAWJAqXF1pjnhaDTgCJbvY9CvWBupJecb6XAfi8wbFsj+GKkfUH7nHKOaemAYi exjw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=bMH6Zeoj; 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 5b1f17b1804b1-43ec39b1775si11527345e9.190.2025.04.03.08.23.23 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 03 Apr 2025 08:23:23 -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=bMH6Zeoj; 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 1u0MOT-0002RP-8p; Thu, 03 Apr 2025 11:22:17 -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 1u0MM1-000807-IC for qemu-devel@nongnu.org; Thu, 03 Apr 2025 11:19:45 -0400 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1u0MLz-0000ag-Mn for qemu-devel@nongnu.org; Thu, 03 Apr 2025 11:19:41 -0400 Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-43cf848528aso7857865e9.2 for ; Thu, 03 Apr 2025 08:19:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1743693578; x=1744298378; 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=bMH6ZeojYfJUxZnwDbKvB3IB4B8N4TEJ8pTVWSGr3QPTeEQxkPt2dj0NAsHcEYvSaY dwPpCOTPlBWR30HRtCXhMKNW/+NiY7n/Jf+H7Bt9szR3p3mpnLXc7fTJsY8q4gz9WReN k0gtbyi8snFFDSkv+3Dm0gMoNLc9ySEELscAKPfn1iCiedl39mgncBeRnSk4pC3pIF/i CTvtnGGnmlKbn3PVPSf9OJBoNjthPIeYCxCFM1E6RFIUiZsZ3L5C5MpR+0cwmzwKotnB rO+WbkG2+kJ467zi5ovITMUsZoyOoyX9sTdYaD4SQRW7TZ3p9LipCMIQWRBCOGUgVSVq YwmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743693578; x=1744298378; 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=bvx6FLXWKnz/jqjN+XeaWLxLDGBXxSmjxfT8QrbN8RuErn3sp2fyYQBJ3rzmWJ1Lon VrW9qVSC6NDlvezgBuIe309X7EBu2U46/jeWvYVYKOV0HjLf0aiPYvNgFXyXbSP79k4l 8LVfz48SE9TroEwCzlUfBnE6afAA8YsAs+TYnelTCcXhrwlVyw22PnefV3b7CL3DRJty 6iyK74wIOFv+xHOp64/fxSXyOOnI8IaZxJDkMqzs0e3xqaGdMhP7wgr/2VA9cnB/9EdD nXet3uT345KVG3Xngx+NCb0xPWvWcCLmLxxCD84qrHQa0wtZ7QYT9xJXgk8E7BV1PCZS t4VQ== X-Gm-Message-State: AOJu0YxeXOd6d6V8H0JGkmUIHEWBOvo/2rMqKdPKh1za+CyfAIfZLBm6 bw48ENhmSFxq664Kj4cozaSPJoGeKKtCv6QKCH+vE0XPZEvPm1oMqrN4Uq1DheiAko8EADIfDI1 z X-Gm-Gg: ASbGncuLE3YXEwghECYxwO3OAZAo0uMgxdkg5WCllZU2WhiM9gR1HJ54D/pJI7jcE0s IHJmXFjDAoLtr/cge/ituGHs6XuRRZZGC0TTDI37Oc9XdE97L7hwdTP0W7tWCm5DdcKpYWcQx8c 29JTci0swLrPMQsqya4mBsxgTIzO9H2/EPJLNRssUiEKCXyUzuXhUWHldJonaqcH0/hH4qN/t83 daY/OmxJpPwt+DjPawpI7kZEe0dxpMzS/6I8PjT5r8E12w+koOj4gupVavzuGN8wIs8DDu1xVn3 RgPBOH3Mt8qLxgWhm1wp5QOa3FyvGL5YQ5pGrmkkDAD2C586miGa2SQUn9wXVGz6ax7QHYtbIPm mJxnYp2oAWTdIxUy+Xig= X-Received: by 2002:a05:600c:4f85:b0:43c:e7a7:aea0 with SMTP id 5b1f17b1804b1-43eb5c95ab8mr67541505e9.26.1743693577813; Thu, 03 Apr 2025 08:19:37 -0700 (PDT) Received: from localhost.localdomain (145.171.88.92.rev.sfr.net. [92.88.171.145]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43ec1663053sm24538415e9.15.2025.04.03.08.19.35 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 03 Apr 2025 08:19:37 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Thomas Huth , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Gustavo Romero , Peter Maydell , Laurent Vivier , Ani Sinha , Udo Steinberg , "Michael S. Tsirkin" , qemu-arm@nongnu.org, Paolo Bonzini , Igor Mammedov , Andrew Jones , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Fabiano Rosas , =?utf-8?q?Alex_Benn=C3=A9e?= , Shannon Zhao Subject: [PATCH-for-10.0? v2 10/14] qtest/bios-tables-test: Add test for -M virt, its=off Date: Thu, 3 Apr 2025 17:18:25 +0200 Message-ID: <20250403151829.44858-11-philmd@linaro.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20250403151829.44858-1-philmd@linaro.org> References: <20250403151829.44858-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32e; envelope-from=philmd@linaro.org; helo=mail-wm1-x32e.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);