From nobody Tue Dec 16 07:12:54 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1672911798; cv=none; d=zohomail.com; s=zohoarc; b=V1r5BJ7cXGtC84pwHy6qsZs81DQrU7LVO9Yc42qjGrymcx7mkezuu4t1gEf25XnWtnp9r4auTi+bCh+fmF7hu8AJikhkb3r+9PMyirG4EY454qkY/x3gydliP3Ts4g3fwXurIOHVFpQnNxMzjS4Aeq4Cw4i8T/PVEYOySmwuyCE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1672911798; h=Content-Type:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=33CZpHdF+tcuk4L8apS5bqjpuwv5xoitissTN5dMCIs=; b=AMi26nQG12EO/DDweA+SoHUuZvKudcYJ7lZx4FYIRBjTDaydtDsCCrkWyuE8+1lUEMOBi/wVj3QApZSDy3ihdMi3jOGxgQSqRgeRHGr5nCl+iJe67zJgYhMvVUcTKusM4jeXlvOxqHaFjXNzrkOvmXj3qBYRbR8wC7+xkY/M8cQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1672911798919769.8986973617918; Thu, 5 Jan 2023 01:43:18 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pDMN0-00049n-UL; Thu, 05 Jan 2023 04:17:06 -0500 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 1pDMMy-000463-Mi for qemu-devel@nongnu.org; Thu, 05 Jan 2023 04:17:04 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pDMMx-0007h8-86 for qemu-devel@nongnu.org; Thu, 05 Jan 2023 04:17:04 -0500 Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-213-DgzN2UOyPyS43_C29CZpyg-1; Thu, 05 Jan 2023 04:17:01 -0500 Received: by mail-wr1-f69.google.com with SMTP id v4-20020adfa1c4000000b002753317406aso3916659wrv.21 for ; Thu, 05 Jan 2023 01:17:00 -0800 (PST) Received: from redhat.com ([2.52.151.85]) by smtp.gmail.com with ESMTPSA id h8-20020a05600c350800b003d990372dd5sm1850899wmq.20.2023.01.05.01.16.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Jan 2023 01:16:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1672910222; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=33CZpHdF+tcuk4L8apS5bqjpuwv5xoitissTN5dMCIs=; b=FFMr62t/udm48qdCTePJZ0dh4CUjpErpUI5tnrKOI6lBUNYj8S6E+vddXscNdjxohivTYm hiFTsArnIpBovmH+0cL5xyVjNGB4lvBjwyUfGm+Ddu1ggdwN+uxGhWjUxT9RAeX+OeMbwK gKNSf0ndRXvRb/uAZCtfwUcUV3MYgwI= X-MC-Unique: DgzN2UOyPyS43_C29CZpyg-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=33CZpHdF+tcuk4L8apS5bqjpuwv5xoitissTN5dMCIs=; b=p4TsSvn3vM0fwxumeJEsAWqnD7Fqy91WNWpIjM3wdwkDVDJcPEFQDPwijnRRwOyCRe i/4Q7Ibn2+vrPM+NmupVtIlFs5pluNnoagQz6YFmR2KHwi6MYi/bCgpui5zC+yPJIFQ3 4tXUq9pe5NU8D8XJygmsaXghYniaLLemyOry6Nq89gUv3WMjHWbYOK2lIVo5udoiSBB5 VU3sPjHrrhRuzb+xf2gS9n2pFeDlVzyoz5VrBGJc15aSb7AWbmJZ+XF2VDtelUYmO1j0 cuCXLRdOkQXSY3qr6PHBjeysgKEF7TVCDnoMKByGgCk/7QUTqU7KkuBund2gOBq0ahMh TH1g== X-Gm-Message-State: AFqh2kq9zSfoy1TGyhQ1oPwvOzdojeiAxZlpasGtCBfmZbBbMXcRZI5k 76uPJ5dPE9VJTeltmT4qNxZE+3zTT/omaMKvNrTar3eL9StezpGQ/EV77at9remQ82kBcw+/hnl gIFJ+vK2f8pRxWDRLj3C86CQzGad5qM3G1K/Wdaav6rrwmhTXl6xeULkmW6zO X-Received: by 2002:a05:600c:250:b0:3d2:2043:9cbf with SMTP id 16-20020a05600c025000b003d220439cbfmr34721577wmj.10.1672910219732; Thu, 05 Jan 2023 01:16:59 -0800 (PST) X-Google-Smtp-Source: AMrXdXtmk1uklPvsjnLG7WgTciEdmTH9BXmeLjlfZgPN0ZXetsauEz+7inFIQ31ZfIqoP2n2fw4YQQ== X-Received: by 2002:a05:600c:250:b0:3d2:2043:9cbf with SMTP id 16-20020a05600c025000b003d220439cbfmr34721559wmj.10.1672910219514; Thu, 05 Jan 2023 01:16:59 -0800 (PST) Date: Thu, 5 Jan 2023 04:16:56 -0500 From: "Michael S. Tsirkin" To: qemu-devel@nongnu.org Cc: Peter Maydell , Yicong Yang , Yanan Wang , Igor Mammedov , Ani Sinha Subject: [PULL 48/51] tests: acpi: aarch64: Add topology test for aarch64 Message-ID: <20230105091310.263867-49-mst@redhat.com> References: <20230105091310.263867-1-mst@redhat.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20230105091310.263867-1-mst@redhat.com> X-Mailer: git-send-email 2.27.0.106.g8ac3dc51b1 X-Mutt-Fcc: =sent 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=170.10.129.124; envelope-from=mst@redhat.com; helo=us-smtp-delivery-124.mimecast.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, DKIMWL_WL_HIGH=-0.001, 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_H2=-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 @redhat.com) X-ZM-MESSAGEID: 1672911800439100001 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Yicong Yang Add test for aarch64's ACPI topology building for all the supported levels. Acked-by: Michael S. Tsirkin Reviewed-by: Yanan Wang Tested-by: Yanan Wang Signed-off-by: Yicong Yang Message-Id: <20221229065513.55652-6-yangyicong@huawei.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- tests/qtest/bios-tables-test.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/tests/qtest/bios-tables-test.c b/tests/qtest/bios-tables-test.c index 395d441212..e954a9cb39 100644 --- a/tests/qtest/bios-tables-test.c +++ b/tests/qtest/bios-tables-test.c @@ -1720,6 +1720,24 @@ static void test_acpi_virt_tcg(void) free_test_data(&data); } =20 +static void test_acpi_virt_tcg_topology(void) +{ + test_data data =3D { + .machine =3D "virt", + .variant =3D ".topology", + .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, + }; + + test_acpi_one("-cpu cortex-a57 " + "-smp sockets=3D1,clusters=3D2,cores=3D2,threads=3D2", &= data); + free_test_data(&data); +} + static void test_acpi_q35_viot(void) { test_data data =3D { @@ -2057,6 +2075,7 @@ int main(int argc, char *argv[]) qtest_add_func("acpi/virt", test_acpi_virt_tcg); qtest_add_func("acpi/virt/acpihmatvirt", test_acpi_virt_tcg_acpi_hmat); + qtest_add_func("acpi/virt/topology", test_acpi_virt_tcg_topolo= gy); qtest_add_func("acpi/virt/numamem", test_acpi_virt_tcg_numamem= ); qtest_add_func("acpi/virt/memhp", test_acpi_virt_tcg_memhp); qtest_add_func("acpi/virt/pxb", test_acpi_virt_tcg_pxb); --=20 MST