From nobody Sat Feb 7 03:36:19 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.124; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=philmd@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1603739263; cv=none; d=zohomail.com; s=zohoarc; b=Yra4XMqHDLFGRXuWflYftW3U43DTYMfT6YUaNaqUU2QptfS0QpuK16YfIK3OTSnAloTnIZoOqo3rYb3GdGe0b5zowtBXgui9TbLR9KosVONy5Kxekwh/qy6h7SYYq5FSwN93WrQpo0jZP3ijHJ+uPAZtJto/46TZPBV/580v6qE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1603739263; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=R4NQKTT0N4YaHyuFI7iWRatURDvw2djrZGhLWKYnYYw=; b=PWICCfSlOcmYiqUHjwa3AkRELKD1sYkfqka8+QatTIRKBGlvMkG+crnQVzt/Opwa9r255D0kHhXA3jabbSzo/gGp0S3R8yyPXSxSoienxPi+xcKX14LU12ti924H9MC6dvcXgHG3WqX6/Po1iJfzF32jUJ+LpSw/oTo8lYBXyQA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=philmd@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.zohomail.com with SMTPS id 1603739263939306.9821039013848; Mon, 26 Oct 2020 12:07:43 -0700 (PDT) Received: from mail-ej1-f70.google.com (mail-ej1-f70.google.com [209.85.218.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-243-H-0MfFDJP46ZbAVf1CYLlw-1; Mon, 26 Oct 2020 15:07:40 -0400 Received: by mail-ej1-f70.google.com with SMTP id gh22so5829795ejb.8 for ; Mon, 26 Oct 2020 12:07:40 -0700 (PDT) Return-Path: Return-Path: Received: from x1w.redhat.com (237.red-88-18-140.staticip.rima-tde.net. [88.18.140.237]) by smtp.gmail.com with ESMTPSA id h13sm5752787edz.43.2020.10.26.12.07.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Oct 2020 12:07:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1603739262; 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: in-reply-to:in-reply-to:references:references; bh=R4NQKTT0N4YaHyuFI7iWRatURDvw2djrZGhLWKYnYYw=; b=bPXqDozQu0dgEsA/SMNauTxDvgQYwkTAb/YGjD3SRLMG91kmKeDmvI8rWLu8KStnh5opG7 Kr5sliPbl7A7QNdF29vrag+fte5uY4wEZlbUjQFK9KhMF4HILKDqQ/TG4ncyNOnvv1erxU QO2C4yLBoBvI6jMnmQt7OybyX77RLHo= X-MC-Unique: H-0MfFDJP46ZbAVf1CYLlw-1 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=R4NQKTT0N4YaHyuFI7iWRatURDvw2djrZGhLWKYnYYw=; b=GurvnCpcLCu1HAF5ivTfs21+6gsbI2Cz2KPsZxPVD84qmbT0cDGU1hzIvrUnFpa592 y6zqpjpa3iI++9wlW2X0/eS4oy3DAxr9vDl893LsU73gjE9CtLyI9i4tA1qxx7AVQufx fkm2jvkQ1tMK/XQt4sm+j7S4rv2FEfTTK0nuVUQbDghO/RFqh7qD7j0eITRib32YcINM koxU0HiuRl68bppqK55hsuwzR+QO99cfTaOr9bRYdh3ntxwgyb+6/hRaQI5dvptklh06 NWG+6Tmx2Qtr5tR89JD50RVhnelIPmsCJoTCPey/3u3BmoGwwln4MSu60bNhZcJrM436 sh1A== X-Gm-Message-State: AOAM531Vjsmj73gTj6YWv6ra17+YAhd1GeYcdb6dZbnRgE/IMU35u7ep XTBwjgkSaa/b4wLT3m9XrHMAfsTMW7PR9w4d8+jgYnDTM1sR5QM/ATKn2b2NGUdNoyRyZ8aDwwA P0OEpjXIxuNd8vA== X-Received: by 2002:a17:906:a149:: with SMTP id bu9mr16616409ejb.115.1603739258898; Mon, 26 Oct 2020 12:07:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw7JInhPPkFsh1VFBN7oZdYwF/goz23poAPdQGOx0aYSMWpQrfSxWZ1o3lvMldRmSfp/wRE1A== X-Received: by 2002:a17:906:a149:: with SMTP id bu9mr16616392ejb.115.1603739258703; Mon, 26 Oct 2020 12:07:38 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Cleber Rosa , Wainer dos Santos Moschetta , Willian Rampazzo Subject: [PULL 2/4] tests/acceptance: Add a 'virt_kvm' test using the GICv3 Date: Mon, 26 Oct 2020 20:07:24 +0100 Message-Id: <20201026190726.19515-3-philmd@redhat.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201026190726.19515-1-philmd@redhat.com> References: <20201026190726.19515-1-philmd@redhat.com> 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: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) 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=3Dapp 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-kerne= l GICv2 emulation\n' With this patch: $ avocado --show=3Dapp 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=C3=A9 Reviewed-by: Willian Rampazzo Message-Id: <20200929224857.1225107-1-philmd@redhat.com> --- 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 0055dc7cee7..c743e231f47 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() =20 - def test_virt_kvm(self): + def test_virt_kvm_gicv2(self): """ :avocado: tags=3Daccel:kvm :avocado: tags=3Dcpu:host + :avocado: tags=3Ddevice: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() =20 + def test_virt_kvm_gicv3(self): + """ + :avocado: tags=3Daccel:kvm + :avocado: tags=3Dcpu:host + :avocado: tags=3Ddevice: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=3D3") + self.add_common_args() + self.launch_and_wait() + =20 class BootLinuxPPC64(BootLinux): """ --=20 2.26.2