Received: by 2002:a17:505:a38d:b0:1be9:327d:8ee3 with SMTP id rs13csp5392280njc; Wed, 28 May 2025 03:58:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU5uMSh6tIrRqHJHwtxZ9sUfTjwwB4q/kL8aIOOkQBHn90ZnA1EUCygBTeR69C7HHESOG6SHvCW5T0Amw==@linaro.org X-Google-Smtp-Source: AGHT+IFgY6OEh5cZb1/d0+9SfchjIg3OXWsc7YlMMkQ9c+YpJ+NkazyKpRX5A7xBIHTSXgzvwy3E X-Received: by 2002:a05:620a:1b95:b0:7cd:1f2e:dadd with SMTP id af79cd13be357-7ceecc44b03mr2457182885a.55.1748429906828; Wed, 28 May 2025 03:58:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1748429906; cv=pass; d=google.com; s=arc-20240605; b=IrY38AfghQuT6Z78Zkf3OgMNJKDhnKlzsBLxGdOTlhTtaVBZ2qcorVJIxs4M+ZBQaK /z46uA70F1b0TchVSyNBKC7z6wlITedqZm16iNOcdKcDpmH1g2f0UfMsDUJQEbw6t5JJ 4Wzk6tfxfl6LPm0rq1thrrS0rjhAt2FukAvnePXK/+k5CXFl3Dl3SSPJxj5xdGabT/mD pPGyFiuh4F0Iz58+0ux84jjqljfbR2mSjtYjbxt+WOXCh/SDMz8IBtdeTtonrQVlOLaH 7bZkaVZ++vcjHU5e6CF6chr5/9vFodTA0melBnh/SkS0KnaBiU6f2e8epMDoaDyx9S+O 9tPA== 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:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=2c0O9T1s6X8/ZTemOXWayC8UqGgBEItGWgmlUlE7g6Y=; fh=9Ao6jpMk2Jd0hXa5Ydg+eCtDk8miDbM2r+QXkjtqA5E=; b=KikcXB3JW4iM9wVAsIGFNQLok3YV+PYSxgjG2aMo55h1uOT2MHYzzmbGrFw8JFULg5 1rVTx/BoVKuA4kLzpwnrXlEI3rYsJoZBv5opD0iI/N/PnwvhGob1a+W6K0DycwnqBo+T 80oSW6DI4OfxAlyNazfEQ4WtKNSKy0D6b6v315EzPIE73xRKYuptyH/qehNMnwBpneTc 2yNbcfu1sftgfTZIu7BQ7fBSGEFiS3czvsFtWStDT/5m7xKHmlYKSFc36ttgsiTIk8Ap M3LnDIHsufcZ/L3lIjE0Ms+42Z0HKWhYUzzRpZ2bdI8KEL1ebzM5Bh6LphJNNPV5ZGUg /jJg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.beauty header.s=zmail header.b=U+m7GROl; 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 af79cd13be357-7cfc5d426d3si116675185a.235.2025.05.28.03.58.26 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 28 May 2025 03:58:26 -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=U+m7GROl; 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 1uKEUF-0007Ha-Sp; Wed, 28 May 2025 06:58:19 -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 1uKEU9-0007Dt-Ki; Wed, 28 May 2025 06:58:14 -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 1uKEU6-0007uu-EU; Wed, 28 May 2025 06:58:11 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1748429676; cv=none; d=zohomail.com; s=zohoarc; b=ZKF18XAFk0kG7laTR6kFGuQvE/ikl97/K2HAjjgQmSbnaBa8t4XpjgICCCz30mq8NwfPZXG5DeNibDg/LxMJVE8IXfBj4OK3yppEXS8IfBhXfmay2QJ5Tn59sQWno+dHZHZvoXVKwjKhjYcjrMacGiEZKFUC0DI3zyUqj+iqkng= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1748429676; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=2c0O9T1s6X8/ZTemOXWayC8UqGgBEItGWgmlUlE7g6Y=; b=GSay3zsNvR/wGAbijItLYpZxCsUQK3WBmipgeHTbA6mlY51etaBibfqgon89X8vUJwl/QIIMBxaLLnZTwZO3F/sGuatg+9ktPLbv3xwYg7h8SdYQRE5l15VGVwu8CSPYc8lN5vbwD8ovaaJDTnl1n1hWT7bCjRrSQ7BEmgOpwcg= 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=1748429676; s=zmail; d=linux.beauty; i=me@linux.beauty; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-ID:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:Message-Id:Reply-To; bh=2c0O9T1s6X8/ZTemOXWayC8UqGgBEItGWgmlUlE7g6Y=; b=U+m7GROlVgSXmakrLzdtYLpkyIc9LhIi5NYpUmD2tVcH5pCWoiJ6qSl3zcFyH62A TlO96rxitS4HzZmmjorbhCf1m6OPsc+nJyuS6Nz/Vmy6lWWuHmA500z2/y8X/i/fXPa Nyy3SVf6/oxL+8VUF1rWTg9CjRVWfg9Fivg0laUU= Received: by mx.zohomail.com with SMTPS id 1748429673760272.6198314666002; Wed, 28 May 2025 03:54:33 -0700 (PDT) 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" Cc: Li Chen Subject: [PATCH REPOST v4 2/4] tests/qtest/bios-tables-test: Add test for disabling SPCR on AArch64 Date: Wed, 28 May 2025 18:53:36 +0800 Message-ID: <20250528105404.457729-3-me@linux.beauty> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250528105404.457729-1-me@linux.beauty> References: <20250528105404.457729-1-me@linux.beauty> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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: KPkkk+aspzqD 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