From nobody Sat Nov 15 12:30:54 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass header.i=me@linux.beauty; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; arc=pass (i=1 dmarc=pass fromdomain=linux.beauty) ARC-Seal: i=2; a=rsa-sha256; t=1752665349; cv=pass; d=zohomail.com; s=zohoarc; b=YceM2SjKTzgTqCqGzIsGGGRsAPSGPuDYnPTvYdFCHI3Z0+YdSmhWEacF2x4vyxujtdaIby/jkjobT7+KxTbe7nqG+rMUEM2wG6/TH3iBTHQi6Sy2POPtaki6+i+uuThketxfdxwhSnFvIN7PxA+SGBVD9F72W5qSkZwwenNmK4A= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1752665349; h=Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=zURQNxoyZKdVtB1gy/iQeZPpxTEyEiUmAjpAwlC0X+U=; b=YonnVBJhZyk+EuleKTyfXIAgacKUc4R+SF8KH6yfgP2BC7DKYLDQQOhVKppMt5+xFtstlGkXfShrXN1iYeM/5nOoucGdJv4AH1VWtADbspsK9F03oAYOXaJhiyjhgdrfrgitTyOhSP7vD381wKv8itGpeGE3bV620Sy9rU1/6NE= ARC-Authentication-Results: i=2; mx.zohomail.com; dkim=pass header.i=me@linux.beauty; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; arc=pass (i=1 dmarc=pass fromdomain=linux.beauty) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1752665349947655.3991462519618; Wed, 16 Jul 2025 04:29:09 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1uc0IP-0007Mf-OZ; Wed, 16 Jul 2025 07:27:33 -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 1uc0CY-0002Xj-Fx; Wed, 16 Jul 2025 07:21:30 -0400 Received: from sender4-pp-f112.zoho.com ([136.143.188.112]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uc0CW-00016A-Lz; Wed, 16 Jul 2025 07:21:30 -0400 Received: by mx.zohomail.com with SMTPS id 1752664814920410.61354923073725; Wed, 16 Jul 2025 04:20:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1752664817; cv=none; d=zohomail.com; s=zohoarc; b=iCGFl2rjIOwwbW52CqzeViOMA7g2UEjrXcb/EtaGDFyqGSpygOmmn8FAcbBNM9XMrXnoW/T04hg4BSy/y7r+4UdP+ATqVQKAvJIPCiZMQVqavL2j810dW3Omy9mW0Ew7Ym3m14qKpxQIMXxI0fFp2PA6xe9yP/39ColCVun/9lc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1752664817; h=Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=zURQNxoyZKdVtB1gy/iQeZPpxTEyEiUmAjpAwlC0X+U=; b=YXRYyQqupz/5LVmn4In2ztqn4N82/luBe2Y4QcNxLVQFjLKolzTx4zFjBJc4UZAgVasCXdBpbNt4Me9UdyNUxOnj3LfDM64zJUI2X6iSH3aIyKswho20J347M+plYGw6Ow3EJbxDGj2ANOO8rEeP8Dgo9HQMZ9SIW5p1ywQHxko= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=linux.beauty; spf=pass smtp.mailfrom=me@linux.beauty; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1752664817; s=zmail; d=linux.beauty; i=me@linux.beauty; h=From:From:To:To:Subject:Subject:Date:Date:Message-ID:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:Message-Id:Reply-To:Cc; bh=zURQNxoyZKdVtB1gy/iQeZPpxTEyEiUmAjpAwlC0X+U=; b=EOYIJLjV0hS6HImpwochjXKY93HrCDoRcbqi9/iGEwbE71fPRDCOnK7TzDu7LNRe 45DJCRkgmsklYaI7LeGoNFML6v+tQXX7LFeR6vytYwQAgoXAw/S3kD79Z9w7UkbjmdP MBrZZ+/rTVANxtLhAqxAIMZxVsOqKuqAkOs1fNkA= From: Li Chen To: "Peter Maydell" , "Shannon Zhao" , "Michael S. Tsirkin" , "Igor Mammedov" , "Ani Sinha" , "Eduardo Habkost" , "Marcel Apfelbaum" , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , "Yanan Wang" , "Zhao Liu" , "Song Gao" , "Jiaxun Yang" , "Sunil V L" , "Palmer Dabbelt" , "Alistair Francis" , "Weiwei Li" , "qemu-arm" , "qemu-devel" , "qemu-riscv" Subject: [PATCH v5 2/4] tests/qtest/bios-tables-test: Add test for disabling SPCR on AArch64 Date: Wed, 16 Jul 2025 19:19:54 +0800 Message-ID: <20250716111959.404917-3-me@linux.beauty> X-Mailer: git-send-email 2.50.0 In-Reply-To: <20250716111959.404917-1-me@linux.beauty> References: <20250716111959.404917-1-me@linux.beauty> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=136.143.188.112; envelope-from=me@linux.beauty; helo=sender4-pp-f112.zoho.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, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity me@linux.beauty) X-ZM-MESSAGEID: 1752665351928116600 Content-Type: text/plain; charset="utf-8" From: Li Chen Add ACPI SPCR table test case for ARM when SPCR was off. Signed-off-by: Li Chen --- tests/qtest/bios-tables-test.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/tests/qtest/bios-tables-test.c b/tests/qtest/bios-tables-test.c index 4dbc07ec5e..ede846f905 100644 --- a/tests/qtest/bios-tables-test.c +++ b/tests/qtest/bios-tables-test.c @@ -1789,6 +1789,24 @@ static void test_acpi_aarch64_virt_tcg_pxb(void) free_test_data(&data); } =20 +static void test_acpi_aarch64_virt_tcg_acpi_spcr(void) +{ + test_data data =3D { + .machine =3D "virt", + .arch =3D "aarch64", + .tcg_only =3D true, + .uefi_fl1 =3D "pc-bios/edk2-aarch64-code.fd", + .uefi_fl2 =3D "pc-bios/edk2-arm-vars.fd", + .cd =3D "tests/data/uefi-boot-images/bios-tables-test.aarch64.iso.= qcow2", + .ram_start =3D 0x40000000ULL, + .scan_len =3D 128ULL * 1024 * 1024, + .variant =3D ".acpispcr", + }; + + test_acpi_one("-cpu cortex-a57 " + " -machine spcr=3Doff", &data); + free_test_data(&data); +} static void test_acpi_tcg_acpi_hmat(const char *machine, const char *arch) { test_data data =3D {}; @@ -2604,6 +2622,8 @@ int main(int argc, char *argv[]) qtest_add_func("acpi/virt/pxb", test_acpi_aarch64_virt_tcg_pxb= ); qtest_add_func("acpi/virt/oem-fields", test_acpi_aarch64_virt_oem_fields); + qtest_add_func("acpi/virt/acpispcr", + test_acpi_aarch64_virt_tcg_acpi_spcr); if (qtest_has_device("virtio-iommu-pci")) { qtest_add_func("acpi/virt/viot", test_acpi_aarch64_virt_vi= ot); } --=20 2.50.0