Received: by 2002:a17:505:bc8:b0:1be9:327d:8ee3 with SMTP id pe8csp1823915njb; Thu, 15 May 2025 05:43:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXsn9ELQ30W4oEmdhyr2CZJTXS3Y0he8hpuIFs0LkobIWowvA86dM43HIn+Xf8mNTW2eiZ2IhMF/B5FJQ==@linaro.org X-Google-Smtp-Source: AGHT+IGK1sd/v+2EUJl6hqC164126HkFAQgD78Ms+0ODT8s9bBuIz58UwODFBjpPpcnr9Pnz8NKA X-Received: by 2002:ac8:40ce:0:b0:494:9fab:4608 with SMTP id d75a77b69052e-4949fab5371mr58695361cf.1.1747312991851; Thu, 15 May 2025 05:43:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1747312986; cv=pass; d=google.com; s=arc-20240605; b=KTt5mdOVA2G0XCllbmpqx0KusDbKSWUATOg4jWFB5tVUcBvJ64ywxM0Q8lldFr6WDK 1jIKqH+K+7bARDrtW7njiSxhNA6V/AOG2zGSXbOZops/zdBN5S8nHrNJdfN9zTuYnThe m5VhmuIGCB3M+DSN5mrRuQQ/OnZNCq5GiOz26GKmXE2RcXOnCAu7+uFYdrShhPsblGgS yFPkshafkp8PtEwuUqXBx7MHF2uF9VC2+iWnl1XYhTMZZt9FRfAqt8hGu4M87gGx3XBs ZZRdZmW1jdC+540HzGrevD8AZJ8ssTs8LNdEPFyBr1bLJHutH4w+r1DGd6mYRHAktkHD KZNA== ARC-Message-Signature: i=2; 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:mime-version:user-agent :references:in-reply-to:subject:to:from:message-id:date :dkim-signature; bh=2c0O9T1s6X8/ZTemOXWayC8UqGgBEItGWgmlUlE7g6Y=; fh=alEL13DYEITECSbbUHMbidm18Box6cS8s897e13CZyg=; b=QBIHQ/Fmi1D4Rt8JkRsIquV4t9MgLzHvZLeLYYQsQ8Kc5nosQTmGZeL1aoIzcsqIqj ZJjB6KL7Dp3Ns+P1CA/3TNkK2qR4CZXzbtGBxtfs2K6Byd2uwBRYPCF2sy+UHKaP5RDj JlWX/mRo4VvEMuxsruScnzwjsGNIUVOvDhFMKWoguNT9IYssdhOj30iDrEmF5tV+XsIk 1I4vnDJ4tDMJLrFw65o40s5soSeaNJIkP7KrWzYrvxM0FTm+PBBKRcNPF9xWAjxomrJh GEPVXnURbFlJ1xn4v0regMeiIn5R2VLBaX47H0cf93fknNmSbEywK7jMs//EZfbex6v0 28rg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.beauty header.s=zmail header.b=atCqdIUX; arc=pass (i=1 spf=pass spfdomain=linux.beauty dkim=pass dkdomain=linux.beauty dmarc=pass fromdomain=linux.beauty>); spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org" Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-4945247c20fsi154632221cf.148.2025.05.15.05.43.06 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 15 May 2025 05:43:06 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-arm-bounces+alex.bennee=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=@linux.beauty header.s=zmail header.b=atCqdIUX; arc=pass (i=1 spf=pass spfdomain=linux.beauty dkim=pass dkdomain=linux.beauty dmarc=pass fromdomain=linux.beauty>); spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1uFXvP-0004AK-Cs; Thu, 15 May 2025 08:43:00 -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 1uFXvD-0003tP-9X; Thu, 15 May 2025 08:42:51 -0400 Received: from sender4-op-o15.zoho.com ([136.143.188.15]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uFXv9-0007h9-Pt; Thu, 15 May 2025 08:42:46 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1747312935; cv=none; d=zohomail.com; s=zohoarc; b=U1tTreCxkfjgoyVIdZ5gMu7skN+jP/yJmGEkQUPqem/rs619Km017HxeaCGcQH4Ob6inDsi4cWZPEOO3TSgcc2xctJBldPwfKlAJvqmYHgjpPTEfyo9DZnIKLfDoLdRdMhUJHZpvU3Yex5TuSSioMaNOoDC/GFdra+eJsoVNrfo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1747312935; h=Content-Type:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=2c0O9T1s6X8/ZTemOXWayC8UqGgBEItGWgmlUlE7g6Y=; b=hZUHkN2+wb6yZB8NUOiK/ufv3WWDEy7OCQ/MmjKT718DKLunj3++XhP+P4/fb0+p4FIIRyEDHAmWBPMXVglMv1MmJ9Bbw914y5LXvfWJLY62Vxng4xAS1+hFFURhwP+VuShtqHh+TsqNTGqE+cLtr+0aPZBSj//BP6z+24JTzFU= 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=1747312934; s=zmail; d=linux.beauty; i=me@linux.beauty; h=Date:Date:Message-ID:From:From:To:To:Subject:Subject:In-Reply-To:References:MIME-Version:Content-Type:Message-Id:Reply-To:Cc; bh=2c0O9T1s6X8/ZTemOXWayC8UqGgBEItGWgmlUlE7g6Y=; b=atCqdIUXWGgL46/OwbUEYLkNvqeZMcvzLScQVPkOTJaRFGL9e39HN4e6nnFKMxXY PnYXiwyVnfvIlZQj5M312d/5E3PAR1vDUM8atAGOCsyTbgarvvgbu1skI4HY81TEgP4 mdVxa+KYSl45rnoiLszUl0LbBIX9ROb2/xM7H7mw= Received: by mx.zohomail.com with SMTPS id 1747312933525403.31887335201293; Thu, 15 May 2025 05:42:13 -0700 (PDT) Date: Thu, 15 May 2025 20:42:07 +0800 Message-ID: <87jz6irqow.wl-me@linux.beauty> From: Li Chen To: "Peter Maydell" , "Shannon Zhao" , "Michael S. Tsirkin" , "Igor Mammedov" , "Ani Sinha" , "Eduardo Habkost" , "Marcel Apfelbaum" , =?ISO-8859-1?Q?=22Philippe_Mathieu-Daud=E9?= =?ISO-8859-1?Q?=22?= , "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 V3 2/4] tests/qtest/bios-tables-test: Add test for disabling SPCR on AArch64 In-Reply-To: <87msberqzi.wl-me@linux.beauty> References: <87msberqzi.wl-me@linux.beauty> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/30.1 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.188.15; envelope-from=me@linux.beauty; helo=sender4-op-o15.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_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_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-arm@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-arm-bounces+alex.bennee=linaro.org@nongnu.org Sender: qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org X-TUID: NY2VLNIPlmrU 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 0a333ec435..d2a1aa7fb3 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); } +static void test_acpi_aarch64_virt_tcg_acpi_spcr(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, + .variant = ".acpispcr", + }; + + test_acpi_one("-cpu cortex-a57 " + " -machine spcr=off", &data); + free_test_data(&data); +} static void test_acpi_tcg_acpi_hmat(const char *machine, const char *arch) { test_data data = {}; @@ -2583,6 +2601,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_viot); } -- 2.49.0