From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1EFF4C4727C for ; Tue, 29 Sep 2020 22:55:57 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 701CD2075A for ; Tue, 29 Sep 2020 22:55:56 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="UyVNuqZb" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 701CD2075A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:58304 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kNOXL-0001O4-A8 for qemu-devel@archiver.kernel.org; Tue, 29 Sep 2020 18:55:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33404) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kNOQk-0002rb-8B for qemu-devel@nongnu.org; Tue, 29 Sep 2020 18:49:06 -0400 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:21144) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1kNOQh-00053s-HS for qemu-devel@nongnu.org; Tue, 29 Sep 2020 18:49:05 -0400 Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1601419742; 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=vdf7bQWqpFNs3r3ydPMxG1ARTKmwVNGr5rEsk2E5fdY=; b=UyVNuqZbcbl3QPcSe8e0A2/MAMAl8fB3fqgNadGbvycFx2692J7lf9jnp83szJkHv0J7aK PbFpGrMCMiNBXlTYKmy5SaYhUkaB6Zw6wsenhliL8XcHKx6TAaCOzKXfjvrBVlWK/AoduT BnlVJeT7THQI4N22l8O1fTthqC0sOK4= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-272-nRA3uT9XNn2b72aGC9ufPA-1; Tue, 29 Sep 2020 18:49:01 -0400 X-MC-Unique: nRA3uT9XNn2b72aGC9ufPA-1 Received: by mail-wm1-f72.google.com with SMTP id a7so2428630wmc.2 for ; Tue, 29 Sep 2020 15:49:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=vdf7bQWqpFNs3r3ydPMxG1ARTKmwVNGr5rEsk2E5fdY=; b=UJlBReGm+LFhudsPElml8qSv5hJkPhPxD742nPgMmYGKEsKzB5bMi/EXcMeKEyTVkw 7H3TNZZSDOWZSvKLe0oHOY43w8GRTndI7UNH8TJZK5L2Y32KoFPNt9pWZ7nUxTiVtTXE oh3Nl2cUJQKBaWvmTfMGPvkN9KsXxuhn1kE5yYALlNLoOFO6chA9oCMNn2ziWokzm+xt FGoRWpSBGVC+TkXHkwY3/HWzFNtnaczaObQeTkL4rIQ3LCzUI0AQsMVRuvLTcnHCrpBK ETxits18PPB99rmCnM9iS9IpuH1V3NdK1O8jEfdpQl8/l/qBABI2OrUlRHHVfgWNGmRA jRfw== X-Gm-Message-State: AOAM531k/AxWdli9Tg3mvikd+6Zn1q3pdbd0leHytYIEClv86EAwhxSs gUxBfTMXHZL5W1AMdg+VXvCdU8y4oroRGEojJ8QC4TT6Vy1OmnYj7NFjodMhh3B8p9DIiyo7bYh 3rMRdeuhJVvplZ3k= X-Received: by 2002:adf:ec90:: with SMTP id z16mr6425276wrn.145.1601419739732; Tue, 29 Sep 2020 15:48:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyLScYkTDMq6GtwalMPsp6ayjvi5OOnjIeMdWpRM2KQWL1xXvCzST9zHz4XHP73C54/J+1EIg== X-Received: by 2002:adf:ec90:: with SMTP id z16mr6425264wrn.145.1601419739579; Tue, 29 Sep 2020 15:48:59 -0700 (PDT) Received: from x1w.redhat.com (74.red-83-53-161.dynamicip.rima-tde.net. [83.53.161.74]) by smtp.gmail.com with ESMTPSA id e7sm7740685wrm.6.2020.09.29.15.48.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Sep 2020 15:48:58 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH] tests/acceptance: Add a 'virt_kvm' test using the GICv3 Date: Wed, 30 Sep 2020 00:48:57 +0200 Message-Id: <20200929224857.1225107-1-philmd@redhat.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=philmd@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=63.128.21.124; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/28 22:47:55 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.687, 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Willian Rampazzo , qemu-arm@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Wainer dos Santos Moschetta , Cleber Rosa Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" The current 'virt_kvm' test is restricted to GICv2, but can also work with a GICv3. Duplicate it but add a GICv3 test which can be tested on some hardware. Noticed while running: $ avocado --show=app run -t machine:virt tests/acceptance/ ... (2/6) tests/acceptance/boot_linux.py:BootLinuxAarch64.test_virt_kvm: ERROR: Unexpected empty reply from server (1.82 s) The job.log content is: L0351 DEBUG| Output: 'qemu-system-aarch64: host does not support in-kernel GICv2 emulation\n' With this patch: $ avocado --show=app run -t device:gicv3 tests/acceptance/ (1/1) tests/acceptance/boot_linux.py:BootLinuxAarch64.test_virt_kvm_gicv3: PASS (55.10 s) Signed-off-by: Philippe Mathieu-Daudé --- tests/acceptance/boot_linux.py | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/tests/acceptance/boot_linux.py b/tests/acceptance/boot_linux.py index 0055dc7cee..c743e231f4 100644 --- a/tests/acceptance/boot_linux.py +++ b/tests/acceptance/boot_linux.py @@ -182,10 +182,11 @@ def test_virt_tcg(self): self.add_common_args() self.launch_and_wait() - def test_virt_kvm(self): + def test_virt_kvm_gicv2(self): """ :avocado: tags=accel:kvm :avocado: tags=cpu:host + :avocado: tags=device:gicv2 """ if not kvm_available(self.arch, self.qemu_bin): self.cancel(KVM_NOT_AVAILABLE) @@ -195,6 +196,20 @@ def test_virt_kvm(self): self.add_common_args() self.launch_and_wait() + def test_virt_kvm_gicv3(self): + """ + :avocado: tags=accel:kvm + :avocado: tags=cpu:host + :avocado: tags=device:gicv3 + """ + if not kvm_available(self.arch, self.qemu_bin): + self.cancel(KVM_NOT_AVAILABLE) + self.vm.add_args("-accel", "kvm") + self.vm.add_args("-cpu", "host") + self.vm.add_args("-machine", "virt,gic-version=3") + self.add_common_args() + self.launch_and_wait() + class BootLinuxPPC64(BootLinux): """ -- 2.26.2