From nobody Fri May 17 05:26:27 2024 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=1654255267; cv=none; d=zohomail.com; s=zohoarc; b=DlytJ8PnP3K+mze87Omf7hHv29/76XssJb2ueRQcVq3hsZ+QDiUkzr8NKJ+gHmx0AsWFTBOeBHaV0zE6rNw+S8Lt+SzPaiu18W+3KccTSHgIvG+d8E1hqaRATKs2ZW3IBKhJVFWQgkO3b5v2GY9r0AaS8pXgVfeF/9OcOxighTE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1654255267; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=KrgGtwwePF8sETGt2Mh/1UR9FcfHsk1Wt8hAxX8m0Ck=; b=HlVzNAN6yUSx0k4bLbmlDjHZKs+LjNkxLpoW6dhA12leGOd5rwNkYKN6LAmBt2w2sdSEZy0+shIfku56Eg9/XIv0JzB/KxC0xPcYPGUMsjqkfEUmg/CjSa0WhhrtADVoSjCaz3BQHepor9rxWiuHCkR4M+LGgTAuEnD1MVsecfo= 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 1654255267772182.10153436617452; Fri, 3 Jun 2022 04:21:07 -0700 (PDT) Received: from localhost ([::1]:50038 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nx5MT-0006be-Es for importer@patchew.org; Fri, 03 Jun 2022 07:21:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39840) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nx5KW-0005Yi-W8 for qemu-devel@nongnu.org; Fri, 03 Jun 2022 07:19:01 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:28369) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nx5KS-0005eC-Bx for qemu-devel@nongnu.org; Fri, 03 Jun 2022 07:18:59 -0400 Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-612-SwVrakS_MgiCwrFHaTzpCg-1; Fri, 03 Jun 2022 07:18:52 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 7F199811E75; Fri, 3 Jun 2022 11:18:52 +0000 (UTC) Received: from gator.home (unknown [10.40.194.13]) by smtp.corp.redhat.com (Postfix) with ESMTP id F347210725; Fri, 3 Jun 2022 11:18:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1654255135; 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: content-transfer-encoding:content-transfer-encoding; bh=KrgGtwwePF8sETGt2Mh/1UR9FcfHsk1Wt8hAxX8m0Ck=; b=BNXNPwLiQdOh3ravvIBsmThpyh+UexAQLHTuoj8njAeBNMSRjBfAgp2BqSj0poPkBpYrFh SQiK0ickSi5t2wXW1wM1+xyyZipNWRDXS1J8WHy0if/cvFeV7x7nZ70Zj49FDKAgbC/PrS rtcaiu5psqY6tvpbNmx+RBAE3G0mI6E= X-MC-Unique: SwVrakS_MgiCwrFHaTzpCg-1 From: Andrew Jones To: qemu-devel@nongnu.org, qemu-arm@nongnu.org Cc: f4bug@amsat.org, alex.bennee@linaro.org, cohuck@redhat.com Subject: [PATCH v2] tests: Prefer max cpu type when using AArch64 virt machine Date: Fri, 3 Jun 2022 13:18:49 +0200 Message-Id: <20220603111849.1481100-1-drjones@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 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.133.124; envelope-from=drjones@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -21 X-Spam_score: -2.2 X-Spam_bar: -- X-Spam_report: (-2.2 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.082, 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, T_SCC_BODY_TEXT_LINE=-0.01 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+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1654255268618100001 The max cpu type is the best default cpu type for tests to use when specifying the cpu type for AArch64 mach-virt. Switch all tests to it. Cc: Alex Benn=C3=A9e Signed-off-by: Andrew Jones Reviewed-by: Cornelia Huck Reviewed-by: Gavin Shan --- tests/avocado/boot_xen.py | 6 +++--- tests/avocado/replay_kernel.py | 2 +- tests/avocado/reverse_debugging.py | 2 +- tests/avocado/tcg_plugins.py | 6 +++--- tests/qtest/bios-tables-test.c | 12 ++++++------ tests/qtest/machine-none-test.c | 4 ++-- tests/vm/aarch64vm.py | 2 +- tests/vm/ubuntu.aarch64 | 2 +- 8 files changed, 18 insertions(+), 18 deletions(-) diff --git a/tests/avocado/boot_xen.py b/tests/avocado/boot_xen.py index fc2faeedb559..899c396bd55c 100644 --- a/tests/avocado/boot_xen.py +++ b/tests/avocado/boot_xen.py @@ -66,7 +66,7 @@ def test_arm64_xen_411_and_dom0(self): """ :avocado: tags=3Darch:aarch64 :avocado: tags=3Daccel:tcg - :avocado: tags=3Dcpu:cortex-a57 + :avocado: tags=3Dcpu:max :avocado: tags=3Dmachine:virt """ =20 @@ -84,7 +84,7 @@ def test_arm64_xen_414_and_dom0(self): """ :avocado: tags=3Darch:aarch64 :avocado: tags=3Daccel:tcg - :avocado: tags=3Dcpu:cortex-a57 + :avocado: tags=3Dcpu:max :avocado: tags=3Dmachine:virt """ =20 @@ -102,7 +102,7 @@ def test_arm64_xen_415_and_dom0(self): """ :avocado: tags=3Darch:aarch64 :avocado: tags=3Daccel:tcg - :avocado: tags=3Dcpu:cortex-a57 + :avocado: tags=3Dcpu:max :avocado: tags=3Dmachine:virt """ =20 diff --git a/tests/avocado/replay_kernel.py b/tests/avocado/replay_kernel.py index 0b2b0dc692b1..c19022ea977d 100644 --- a/tests/avocado/replay_kernel.py +++ b/tests/avocado/replay_kernel.py @@ -147,7 +147,7 @@ def test_aarch64_virt(self): """ :avocado: tags=3Darch:aarch64 :avocado: tags=3Dmachine:virt - :avocado: tags=3Dcpu:cortex-a53 + :avocado: tags=3Dcpu:max """ kernel_url =3D ('https://archives.fedoraproject.org/pub/archive/fe= dora' '/linux/releases/29/Everything/aarch64/os/images/pxe= boot' diff --git a/tests/avocado/reverse_debugging.py b/tests/avocado/reverse_deb= ugging.py index d2921e70c3b4..d6a6d7277235 100644 --- a/tests/avocado/reverse_debugging.py +++ b/tests/avocado/reverse_debugging.py @@ -198,7 +198,7 @@ def test_aarch64_virt(self): """ :avocado: tags=3Darch:aarch64 :avocado: tags=3Dmachine:virt - :avocado: tags=3Dcpu:cortex-a53 + :avocado: tags=3Dcpu:max """ kernel_url =3D ('https://archives.fedoraproject.org/pub/archive/fe= dora' '/linux/releases/29/Everything/aarch64/os/images/pxe= boot' diff --git a/tests/avocado/tcg_plugins.py b/tests/avocado/tcg_plugins.py index 642d2e49e305..2bbf62f5036e 100644 --- a/tests/avocado/tcg_plugins.py +++ b/tests/avocado/tcg_plugins.py @@ -68,7 +68,7 @@ def test_aarch64_virt_insn(self): :avocado: tags=3Daccel:tcg :avocado: tags=3Darch:aarch64 :avocado: tags=3Dmachine:virt - :avocado: tags=3Dcpu:cortex-a53 + :avocado: tags=3Dcpu:max """ kernel_path =3D self._grab_aarch64_kernel() kernel_command_line =3D (self.KERNEL_COMMON_COMMAND_LINE + @@ -94,7 +94,7 @@ def test_aarch64_virt_insn_icount(self): :avocado: tags=3Daccel:tcg :avocado: tags=3Darch:aarch64 :avocado: tags=3Dmachine:virt - :avocado: tags=3Dcpu:cortex-a53 + :avocado: tags=3Dcpu:max """ kernel_path =3D self._grab_aarch64_kernel() kernel_command_line =3D (self.KERNEL_COMMON_COMMAND_LINE + @@ -120,7 +120,7 @@ def test_aarch64_virt_mem_icount(self): :avocado: tags=3Daccel:tcg :avocado: tags=3Darch:aarch64 :avocado: tags=3Dmachine:virt - :avocado: tags=3Dcpu:cortex-a53 + :avocado: tags=3Dcpu:max """ kernel_path =3D self._grab_aarch64_kernel() kernel_command_line =3D (self.KERNEL_COMMON_COMMAND_LINE + diff --git a/tests/qtest/bios-tables-test.c b/tests/qtest/bios-tables-test.c index a4a46e97f0b8..7c3a58a97460 100644 --- a/tests/qtest/bios-tables-test.c +++ b/tests/qtest/bios-tables-test.c @@ -1270,7 +1270,7 @@ static void test_acpi_virt_tcg_memhp(void) =20 data.variant =3D ".memhp"; test_acpi_one(" -machine nvdimm=3Don" - " -cpu cortex-a57" + " -cpu max" " -m 256M,slots=3D3,maxmem=3D1G" " -object memory-backend-ram,id=3Dram0,size=3D128M" " -object memory-backend-ram,id=3Dram1,size=3D128M" @@ -1363,7 +1363,7 @@ static void test_acpi_virt_tcg_numamem(void) }; =20 data.variant =3D ".numamem"; - test_acpi_one(" -cpu cortex-a57" + test_acpi_one(" -cpu max" " -object memory-backend-ram,id=3Dram0,size=3D128M" " -numa node,memdev=3Dram0", &data); @@ -1397,7 +1397,7 @@ static void test_acpi_virt_tcg_pxb(void) "if=3Dnone,media=3Dcdrom,id=3Ddrive-scsi0-0-0-1,readonly= =3Don" " -device scsi-cd,bus=3Dscsi0.0,scsi-id=3D0," "drive=3Ddrive-scsi0-0-0-1,id=3Dscsi0-0-0-1,bootindex=3D= 1" - " -cpu cortex-a57" + " -cpu max" " -device pxb-pcie,bus_nr=3D128", &data); =20 @@ -1511,7 +1511,7 @@ static void test_acpi_virt_tcg(void) =20 data.smbios_cpu_max_speed =3D 2900; data.smbios_cpu_curr_speed =3D 2700; - test_acpi_one("-cpu cortex-a57 " + test_acpi_one("-cpu max " "-smbios type=3D4,max-speed=3D2900,current-speed=3D2700"= , &data); free_test_data(&data); } @@ -1591,7 +1591,7 @@ static void test_acpi_virt_viot(void) .scan_len =3D 128ULL * 1024 * 1024, }; =20 - test_acpi_one("-cpu cortex-a57 " + test_acpi_one("-cpu max " "-device virtio-iommu-pci", &data); free_test_data(&data); } @@ -1699,7 +1699,7 @@ static void test_acpi_oem_fields_virt(void) char *args; =20 args =3D test_acpi_create_args(&data, - "-cpu cortex-a57 "OEM_TEST_ARGS, true); + "-cpu max "OEM_TEST_ARGS, true); data.qts =3D qtest_init(args); test_acpi_load_tables(&data, true); test_oem_fields(&data); diff --git a/tests/qtest/machine-none-test.c b/tests/qtest/machine-none-tes= t.c index d0f8cd990245..d47533a835b7 100644 --- a/tests/qtest/machine-none-test.c +++ b/tests/qtest/machine-none-test.c @@ -24,8 +24,8 @@ struct arch2cpu { =20 static struct arch2cpu cpus_map[] =3D { /* tested targets list */ - { "arm", "cortex-a15" }, - { "aarch64", "cortex-a57" }, + { "arm", "max" }, + { "aarch64", "max" }, { "avr", "avr6-avr-cpu" }, { "x86_64", "qemu64,apic-id=3D0" }, { "i386", "qemu32,apic-id=3D0" }, diff --git a/tests/vm/aarch64vm.py b/tests/vm/aarch64vm.py index b00cce07eb81..a82b4dd7a91a 100644 --- a/tests/vm/aarch64vm.py +++ b/tests/vm/aarch64vm.py @@ -31,7 +31,7 @@ # parameters that works for backwards compatibility. DEFAULT_CONFIG =3D {'kvm' : {'cpu' : "host", 'machine' : "virt,gic-version=3Dhost"}, - 'tcg' : {'cpu' : "cortex-a57", + 'tcg' : {'cpu' : "max", 'machine' : "virt"}, } =20 diff --git a/tests/vm/ubuntu.aarch64 b/tests/vm/ubuntu.aarch64 index b291945a7e9d..e2958ccd2a44 100755 --- a/tests/vm/ubuntu.aarch64 +++ b/tests/vm/ubuntu.aarch64 @@ -18,7 +18,7 @@ import aarch64vm import ubuntuvm =20 DEFAULT_CONFIG =3D { - 'cpu' : "cortex-a57", + 'cpu' : "max", 'machine' : "virt,gic-version=3D3", 'install_cmds' : "apt-get update,"\ "apt-get build-dep -y --arch-only qemu,"\ --=20 2.34.3