From nobody Sun May 5 00:30:18 2024 Delivered-To: importer2@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer2=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1623161532; cv=none; d=zohomail.com; s=zohoarc; b=SBgIvIjJrg7rTYIwDcSc0G8lMBHdQcTdv7fVeOXlQCpU8HGKB83lzKd/uj7Zl9opqQn/zYEZRoo0NHcAp9lP0R7AE5ICpMvhmTISBiYjd32t8I94kVOOZGMbasBtofGdGnkIXZYEw6p5eaVBDvjK/oLLNap+6KnPKNc3luIVGWY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1623161532; h=Content-Type:Content-Transfer-Encoding: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=BZWYureVKhJ9rXm9UOqJnRjn/QNowXGht0laPdjwHlA=; b=BZZDYKPquCL1mjXqI9qvQInL9fHYs9PrCIfPCaoK2Pb4+oSEv2FIkZypZe22wJ6HW9Orl3BmVgrXkOK3cgXEWKtyl9pBYs6Z5/4z+KocvEUiJlL/KH6MCY8Dl6/3pKW1Ss4S5Lei3jZ6nRsHryly5+7mLtaXzR9y8K6hA0ePhVg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer2=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1623161532645373.40972590351873; Tue, 8 Jun 2021 07:12:12 -0700 (PDT) Received: from localhost ([::1]:60318 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lqcSh-0005Su-Ux for importer2@patchew.org; Tue, 08 Jun 2021 10:12:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53574) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lqcQU-0002rY-3d for qemu-devel@nongnu.org; Tue, 08 Jun 2021 10:09:54 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:38921) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lqcQS-0001xe-IW for qemu-devel@nongnu.org; Tue, 08 Jun 2021 10:09:53 -0400 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-174-GcDApBLpMgKU3NF2db-PMg-1; Tue, 08 Jun 2021 10:09:50 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id B3F3781840D; Tue, 8 Jun 2021 14:09:49 +0000 (UTC) Received: from localhost.localdomain.com (ovpn-112-153.phx2.redhat.com [10.3.112.153]) by smtp.corp.redhat.com (Postfix) with ESMTPS id BD56E5D9DE; Tue, 8 Jun 2021 14:09:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1623161392; 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=BZWYureVKhJ9rXm9UOqJnRjn/QNowXGht0laPdjwHlA=; b=ZsQTVUJI5mI+twZPaiAZoUTfxfC94RSAsyMDe1VINlcYEbYsYYp3VYkY8EMP1ds9x2PrwU xaD+Tn9cKsfoPg85JWC39j5SQz6QeO+iVD8q7WIFRnhK8Cp4iUSuqqaUgiNR02fRmZkOJS Ac58nk9sg9nhEq/SueXm1j0g/Sp3LbQ= X-MC-Unique: GcDApBLpMgKU3NF2db-PMg-1 From: Cleber Rosa To: qemu-devel@nongnu.org Subject: [PATCH 1/4] block.c: fix compilation error on possible unitialized variable Date: Tue, 8 Jun 2021 10:09:35 -0400 Message-Id: <20210608140938.863580-2-crosa@redhat.com> In-Reply-To: <20210608140938.863580-1-crosa@redhat.com> References: <20210608140938.863580-1-crosa@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=crosa@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable 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+importer2=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=crosa@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -29 X-Spam_score: -3.0 X-Spam_bar: --- X-Spam_report: (-3.0 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.197, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Kevin Wolf , Fam Zheng , Thomas Huth , Eduardo Habkost , qemu-block@nongnu.org, Erik Skultety , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Cleber Rosa , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Wainer dos Santos Moschetta , Andrea Bolognani , Willian Rampazzo , John Snow , Willian Rampazzo , Stefan Hajnoczi , Max Reitz , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Beraldo Leal Errors-To: qemu-devel-bounces+importer2=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" GCC from CentOS Stream 8 is erroring out on a possibily unitialized varible. Full version info for the compiler used: gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-1) Signed-off-by: Cleber Rosa Acked-by: Willian Rampazzo --- block.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block.c b/block.c index 3f456892d0..08f29e6b65 100644 --- a/block.c +++ b/block.c @@ -4866,7 +4866,7 @@ static int bdrv_replace_node_common(BlockDriverState = *from, Transaction *tran =3D tran_new(); g_autoptr(GHashTable) found =3D NULL; g_autoptr(GSList) refresh_list =3D NULL; - BlockDriverState *to_cow_parent; + BlockDriverState *to_cow_parent =3D NULL; int ret; =20 if (detach_subchain) { --=20 2.25.4 From nobody Sun May 5 00:30:18 2024 Delivered-To: importer2@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer2=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1623161594; cv=none; d=zohomail.com; s=zohoarc; b=RHznXqJam7RmuXfxSbRpk2PcsK0W2rPQ3F0uw9I11CpvWqdPD+R6iSfe2aFiRL18CO44meDNGL0bsuQWFWr8o8lhj9SY4KddZyIJRjoauXGi1O1pmwpfvwWkUkP2mxKspRbjOdEq2fcy4yyIgT0/0HNZM7S0oXOr98Vtqf88+mc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1623161594; h=Content-Type:Content-Transfer-Encoding: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=jAIQtbHhBm5hiDXzC73PJ8AlCHtrIQkxvk6NGwK2V8w=; b=jQcKyMUqcjOdadSKrOACTqlYXzswXXqpe9T3HYB1rnzt+UPlS3uoEagQJY1BVtyedpvzs6b3lu7RSgTXdbieyJS/ShGFgtxqjEC9vIEKoXrZw+yZD8kJwTXrRevlCJgPzOREBOqa3+3Lwh+ZozB9MjSTpqXy2HkXIYQDFNCH0mY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer2=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1623161594420239.5780668413604; Tue, 8 Jun 2021 07:13:14 -0700 (PDT) Received: from localhost ([::1]:34352 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lqcTh-00070G-Lm for importer2@patchew.org; Tue, 08 Jun 2021 10:13:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53618) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lqcQX-0002xo-At for qemu-devel@nongnu.org; Tue, 08 Jun 2021 10:09:57 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:58552) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lqcQU-0001yy-MU for qemu-devel@nongnu.org; Tue, 08 Jun 2021 10:09:57 -0400 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-87-kqBIXk8WM7eThd4_sBZEbg-1; Tue, 08 Jun 2021 10:09:53 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id AA897800D62; Tue, 8 Jun 2021 14:09:51 +0000 (UTC) Received: from localhost.localdomain.com (ovpn-112-153.phx2.redhat.com [10.3.112.153]) by smtp.corp.redhat.com (Postfix) with ESMTPS id D8B6F5D9DE; Tue, 8 Jun 2021 14:09:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1623161394; 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=jAIQtbHhBm5hiDXzC73PJ8AlCHtrIQkxvk6NGwK2V8w=; b=CKOkk4rzCALqrQrmUqLZJ5zjitpC92pxzLgqYO2FTzmHu5t+4s+UPKcR0cKM8W9zGufIw+ hkQdeIyNg6+Xdsl3jJAlckL+HGEAWpXWcULsW8f1bgONcmueK9OfSMD9xzhtLGOruCmhQT alCzSREaziIQwWxayYlOC2zNZWQiRXI= X-MC-Unique: kqBIXk8WM7eThd4_sBZEbg-1 From: Cleber Rosa To: qemu-devel@nongnu.org Subject: [PATCH 2/4] Python QEMU utils: introduce a generic feature list Date: Tue, 8 Jun 2021 10:09:36 -0400 Message-Id: <20210608140938.863580-3-crosa@redhat.com> In-Reply-To: <20210608140938.863580-1-crosa@redhat.com> References: <20210608140938.863580-1-crosa@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=crosa@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable 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+importer2=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=216.205.24.124; envelope-from=crosa@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -29 X-Spam_score: -3.0 X-Spam_bar: --- X-Spam_report: (-3.0 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.197, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=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: Kevin Wolf , Fam Zheng , Thomas Huth , Eduardo Habkost , qemu-block@nongnu.org, Erik Skultety , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Cleber Rosa , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Wainer dos Santos Moschetta , Andrea Bolognani , Willian Rampazzo , John Snow , Willian Rampazzo , Stefan Hajnoczi , Max Reitz , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Beraldo Leal Errors-To: qemu-devel-bounces+importer2=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" Which can be used to check for any "feature" that is available as a QEMU command line option, and that will return its list of available options. This is a generalization of the list_accel() utility function, which is itself re-implemented in terms of the more generic feature. Signed-off-by: Cleber Rosa Acked-by: John Snow Acked-by: Willian Rampazzo Reviewed-by: Willian Rampazzo --- python/qemu/utils/__init__.py | 2 ++ python/qemu/utils/accel.py | 15 ++---------- python/qemu/utils/feature.py | 44 +++++++++++++++++++++++++++++++++++ 3 files changed, 48 insertions(+), 13 deletions(-) create mode 100644 python/qemu/utils/feature.py diff --git a/python/qemu/utils/__init__.py b/python/qemu/utils/__init__.py index 7f1a5138c4..1d0789eaa2 100644 --- a/python/qemu/utils/__init__.py +++ b/python/qemu/utils/__init__.py @@ -20,12 +20,14 @@ =20 # pylint: disable=3Dimport-error from .accel import kvm_available, list_accel, tcg_available +from .feature import list_feature =20 =20 __all__ =3D ( 'get_info_usernet_hostfwd_port', 'kvm_available', 'list_accel', + 'list_feature', 'tcg_available', ) =20 diff --git a/python/qemu/utils/accel.py b/python/qemu/utils/accel.py index 297933df2a..b5bb80c6d3 100644 --- a/python/qemu/utils/accel.py +++ b/python/qemu/utils/accel.py @@ -14,13 +14,11 @@ # the COPYING file in the top-level directory. # =20 -import logging import os -import subprocess from typing import List, Optional =20 +from qemu.utils.feature import list_feature =20 -LOG =3D logging.getLogger(__name__) =20 # Mapping host architecture to any additional architectures it can # support which often includes its 32 bit cousin. @@ -39,16 +37,7 @@ def list_accel(qemu_bin: str) -> List[str]: @raise Exception: if failed to run `qemu -accel help` @return a list of accelerator names. """ - if not qemu_bin: - return [] - try: - out =3D subprocess.check_output([qemu_bin, '-accel', 'help'], - universal_newlines=3DTrue) - except: - LOG.debug("Failed to get the list of accelerators in %s", qemu_bin) - raise - # Skip the first line which is the header. - return [acc.strip() for acc in out.splitlines()[1:]] + return list_feature(qemu_bin, 'accel') =20 =20 def kvm_available(target_arch: Optional[str] =3D None, diff --git a/python/qemu/utils/feature.py b/python/qemu/utils/feature.py new file mode 100644 index 0000000000..b4a5f929ab --- /dev/null +++ b/python/qemu/utils/feature.py @@ -0,0 +1,44 @@ +""" +QEMU feature module: + +This module provides a utility for discovering the availability of +generic features. +""" +# Copyright (C) 2022 Red Hat Inc. +# +# Authors: +# Cleber Rosa +# +# This work is licensed under the terms of the GNU GPL, version 2. See +# the COPYING file in the top-level directory. +# + +import logging +import subprocess +from typing import List + + +LOG =3D logging.getLogger(__name__) + + +def list_feature(qemu_bin: str, feature: str) -> List[str]: + """ + List available options the QEMU binary for a given feature type. + + By calling a "qemu $feature -help" and parsing its output. + + @param qemu_bin (str): path to the QEMU binary. + @param feature (str): feature name, matching the command line option. + @raise Exception: if failed to run `qemu -feature help` + @return a list of available options for the given feature. + """ + if not qemu_bin: + return [] + try: + out =3D subprocess.check_output([qemu_bin, '-%s' % feature, 'help'= ], + universal_newlines=3DTrue) + except: + LOG.debug("Failed to get the list of %s(s) in %s", feature, qemu_b= in) + raise + # Skip the first line which is the header. + return [item.split(' ', 1)[0] for item in out.splitlines()[1:]] --=20 2.25.4 From nobody Sun May 5 00:30:19 2024 Delivered-To: importer2@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer2=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1623161673; cv=none; d=zohomail.com; s=zohoarc; b=INzMHA/tPdJAyEXc9N2eoZ2oOGUVYJvS7+66mnVZ79VNMjtSLiq+5I1G4r7ntMqBtsuQgHjcG48dXmh4FHM0Xj/SMlTcPUogE8sfiDo46rHHnnd8WAXh1UNuCj3YEcVX5Dj0mgYFWTC0oEKTXPQvmvRZ4VUXE5Zdgm8fcik7o9o= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1623161673; h=Content-Type:Content-Transfer-Encoding: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=rtFmrjScq88zOKvPHUm1P+vesCV6DL5Zgyq3Gg6bQ38=; b=HCnAn464aen/lm4qmbaBzk7vCjqcN6gggJs/8lNKT4wxqywnQTU/tJmKYv9isKwePRnOnmV2Lw9TXbEkyrIDnyyNbIR4N6QBm/mxb20XGPJ8yp+FhcZKrabGJaGAdkxQdIDwXkARQEjJgcsUqLxeInyM6zFtEpMpMFTtEbCjvyc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer2=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1623161673863324.39510981740955; Tue, 8 Jun 2021 07:14:33 -0700 (PDT) Received: from localhost ([::1]:37200 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lqcUy-0000XK-NT for importer2@patchew.org; Tue, 08 Jun 2021 10:14:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53656) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lqcQa-00037F-8i for qemu-devel@nongnu.org; Tue, 08 Jun 2021 10:10:00 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:56933) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lqcQX-00020X-8Y for qemu-devel@nongnu.org; Tue, 08 Jun 2021 10:10:00 -0400 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-475-CS1jDRo9MmK9epQ0npgE8Q-1; Tue, 08 Jun 2021 10:09:55 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 9B91A501F0; Tue, 8 Jun 2021 14:09:53 +0000 (UTC) Received: from localhost.localdomain.com (ovpn-112-153.phx2.redhat.com [10.3.112.153]) by smtp.corp.redhat.com (Postfix) with ESMTPS id D03EF5D9DE; Tue, 8 Jun 2021 14:09:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1623161396; 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=rtFmrjScq88zOKvPHUm1P+vesCV6DL5Zgyq3Gg6bQ38=; b=dBEPs/MTKnJQ2be/ejZrwDig8aXxjnVp9SxMLVemv/mIyeM+18nissSpiEMkRDLaG9Yagd ywc+Vv3P6BwOQ18C7EG9WK7LoSWPlssHhqA+P9H6Oxmm040NdKBAJslJku4npbYf31A2+o U4jtUKgTt4IgseymoTNGsvPzY/a37nQ= X-MC-Unique: CS1jDRo9MmK9epQ0npgE8Q-1 From: Cleber Rosa To: qemu-devel@nongnu.org Subject: [PATCH 3/4] Acceptance Tests: introduce method to require a feature and option Date: Tue, 8 Jun 2021 10:09:37 -0400 Message-Id: <20210608140938.863580-4-crosa@redhat.com> In-Reply-To: <20210608140938.863580-1-crosa@redhat.com> References: <20210608140938.863580-1-crosa@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=crosa@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable 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+importer2=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=216.205.24.124; envelope-from=crosa@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -29 X-Spam_score: -3.0 X-Spam_bar: --- X-Spam_report: (-3.0 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.197, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Kevin Wolf , Fam Zheng , Thomas Huth , Eduardo Habkost , qemu-block@nongnu.org, Erik Skultety , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Cleber Rosa , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Wainer dos Santos Moschetta , Andrea Bolognani , Willian Rampazzo , John Snow , Willian Rampazzo , Stefan Hajnoczi , Max Reitz , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Beraldo Leal Errors-To: qemu-devel-bounces+importer2=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" In this context, and according to the qemu.utils.list_feature() utility function, a feature is something is available as a QEMU command line option that can take the "help" value. This builds on top of that utility function, and allows test writers to require, for instance, the "x-remote" (option) machine type (feature). This example is actually applied here to the reespective test, given that the option is conditionally built, and the test will ERROR without it. Signed-off-by: Cleber Rosa Acked-by: Willian Rampazzo Reviewed-by: Willian Rampazzo --- tests/acceptance/avocado_qemu/__init__.py | 29 ++++++++++++++++++++++- tests/acceptance/multiprocess.py | 1 + 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/tests/acceptance/avocado_qemu/__init__.py b/tests/acceptance/a= vocado_qemu/__init__.py index 93c4b9851f..432caff4e6 100644 --- a/tests/acceptance/avocado_qemu/__init__.py +++ b/tests/acceptance/avocado_qemu/__init__.py @@ -11,6 +11,7 @@ import logging import os import shutil +import subprocess import sys import uuid import tempfile @@ -45,7 +46,8 @@ from qemu.utils import ( get_info_usernet_hostfwd_port, kvm_available, - tcg_available, + list_feature, + tcg_available ) =20 def is_readable_executable_file(path): @@ -182,6 +184,31 @@ def _get_unique_tag_val(self, tag_name): return vals.pop() return None =20 + def require_feature(self, feature, option=3DNone): + """ + Requires a feature to be available for the test to continue + + It takes into account the currently set qemu binary, and only chec= ks + for by running a "qemu -$feature help" command. If the specific o= ption + is given, it checks if it's listed for the given feature. + + If the check fails, the test is canceled. + + :param feature: name of a QEMU feature, such as "accel" or "machin= e" + :type feature: str + :param option: the specific value for the feature. For instance, + if feature is "machine", option can be "q35". + type option: str + """ + try: + options_available =3D list_feature(self.qemu_bin, feature) + except subprocess.CalledProcessError: + self.cancel('Feature "%s" does not appear to be present.' % fe= ature) + if option is not None: + if option not in options_available: + self.cancel('Feature "%s" does not have "%s" as an option'= % + (feature, option)) + def require_accelerator(self, accelerator): """ Requires an accelerator to be available for the test to continue diff --git a/tests/acceptance/multiprocess.py b/tests/acceptance/multiproce= ss.py index 96627f022a..4d8a40a510 100644 --- a/tests/acceptance/multiprocess.py +++ b/tests/acceptance/multiprocess.py @@ -22,6 +22,7 @@ def do_test(self, kernel_url, initrd_url, kernel_command_= line, machine_type): """Main test method""" self.require_accelerator('kvm') + self.require_feature('machine', 'x-remote') =20 # Create socketpair to connect proxy and remote processes proxy_sock, remote_sock =3D socket.socketpair(socket.AF_UNIX, --=20 2.25.4 From nobody Sun May 5 00:30:19 2024 Delivered-To: importer2@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer2=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1623161794; cv=none; d=zohomail.com; s=zohoarc; b=fgMt/jT/VEkChLva45BMfMVtjjuxkl43nzeMvww5pfUKg6BNTvvboSqWK9Rmmf5wd2DfmP0DNAC1jVqLEnXou+bhHjWZTF4AIXUVzoVQNb/5a0kuQLDtV9Cx95+ie5SmFvIomFbcCApfhiZdkCPCAPeniwxiId5OfJQ1NtLh93o= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1623161794; h=Content-Type:Content-Transfer-Encoding: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=BdvZk1xQb7fMsZY72yvoIo9/NU9bCMKfUZ+0QNQ6sdI=; b=H6PlBkC54VX1sjbSuKj0exspWTyYVr+CblayQmEbCb8ESk6REPgjDzadN4PXZQIR1HgM755XDDJDMEFPxWOeCVcRXSmN3uzJzRVQcymUwtSITOBjVh28hAyLV4o+5mG+76wUCIZePchfHPll9dY90DeDX+0La2brXI9u53PODNo= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer2=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1623161794786950.6887025291886; Tue, 8 Jun 2021 07:16:34 -0700 (PDT) Received: from localhost ([::1]:39864 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lqcWv-0002Og-Tg for importer2@patchew.org; Tue, 08 Jun 2021 10:16:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53688) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lqcQh-0003M8-RQ for qemu-devel@nongnu.org; Tue, 08 Jun 2021 10:10:08 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:57098) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lqcQc-000250-Aq for qemu-devel@nongnu.org; Tue, 08 Jun 2021 10:10:07 -0400 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-564-WAQw98TRN2eL2dSyk42i5A-1; Tue, 08 Jun 2021 10:09:59 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 338A48042AA; Tue, 8 Jun 2021 14:09:58 +0000 (UTC) Received: from localhost.localdomain.com (ovpn-112-153.phx2.redhat.com [10.3.112.153]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C0B4E5D9DE; Tue, 8 Jun 2021 14:09:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1623161401; 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=BdvZk1xQb7fMsZY72yvoIo9/NU9bCMKfUZ+0QNQ6sdI=; b=ZKBVMv6PW4mkm7ouTkSPZUZYWYZwP3ibLs/9NIM2G59GbvVNCGjrJxCsDN7WZ/BBM41sX5 NKLAke7f3ix7WC5AWO7u/rIvqIeMcKcnFaZP7UJ6DH8ssjZymy/SrOlXaYyEM9cw9n2od4 gYIE8ZzUSJBSfcAC+RRaL3KGbJuqZWo= X-MC-Unique: WAQw98TRN2eL2dSyk42i5A-1 From: Cleber Rosa To: qemu-devel@nongnu.org Subject: [PATCH 4/4] Jobs based on custom runners: add CentOS Stream 8 Date: Tue, 8 Jun 2021 10:09:38 -0400 Message-Id: <20210608140938.863580-5-crosa@redhat.com> In-Reply-To: <20210608140938.863580-1-crosa@redhat.com> References: <20210608140938.863580-1-crosa@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=crosa@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable 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+importer2=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=crosa@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -29 X-Spam_score: -3.0 X-Spam_bar: --- X-Spam_report: (-3.0 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.197, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=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: Kevin Wolf , Fam Zheng , Thomas Huth , Eduardo Habkost , qemu-block@nongnu.org, Erik Skultety , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Cleber Rosa , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Wainer dos Santos Moschetta , Andrea Bolognani , Willian Rampazzo , John Snow , Willian Rampazzo , Stefan Hajnoczi , Max Reitz , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Beraldo Leal Errors-To: qemu-devel-bounces+importer2=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" This introduces three different parts of a job designed to run on a custom runner managed by Red Hat. The goals include: a) serve as a model for other organizations that want to onboard their own runners, with their specific platforms, build configuration and tests. b) bring awareness to the differences between upstream QEMU and the version available under CentOS Stream, which is "A preview of upcoming Red Hat Enterprise Linux minor and major releases.". c) becase of b), it should be easier to identify and reduce the gap between Red Hat's downstream and upstream QEMU. The components themselves to achieve this custom job are: 1) build environment configuration: documentation and a playbook for a base Enterprise Linux 8 system (also applicable to CentOS Stream), which other users can run on their system to get the environment suitable for building QEMU. 2) QEMU build configuration: how QEMU will be built to match, as closely as possible, the binaries built and packaged on CentOS stream 8. 3) job definition: GitLab CI jobs that will dispatch the build/test job to the machine specifically configured according to #1. Signed-off-by: Cleber Rosa Acked-by: Willian Rampazzo --- .gitlab-ci.d/custom-runners.yml | 29 ++++ scripts/ci/org.centos/stream/README | 2 + scripts/ci/org.centos/stream/configure | 190 +++++++++++++++++++++++++ scripts/ci/setup/build-environment.yml | 38 +++++ 4 files changed, 259 insertions(+) create mode 100644 scripts/ci/org.centos/stream/README create mode 100755 scripts/ci/org.centos/stream/configure diff --git a/.gitlab-ci.d/custom-runners.yml b/.gitlab-ci.d/custom-runners.= yml index 061d3cdfed..ee5143995e 100644 --- a/.gitlab-ci.d/custom-runners.yml +++ b/.gitlab-ci.d/custom-runners.yml @@ -220,3 +220,32 @@ ubuntu-20.04-aarch64-notcg: - ../configure --disable-libssh --disable-tcg - make --output-sync -j`nproc` - make --output-sync -j`nproc` check V=3D1 + +centos-stream-8-x86_64: + allow_failure: true + needs: [] + stage: build + tags: + - centos_stream_8 + - x86_64 + rules: + - if: '$CI_COMMIT_BRANCH =3D~ /^staging/' + artifacts: + name: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG" + when: on_failure + expire_in: 7 days + paths: + - build/tests/results/latest/results.xml + - build/tests/results/latest/test-results + reports: + junit: build/tests/results/latest/results.xml + script: + - mkdir build + - cd build + - ../scripts/ci/org.centos/stream/configure + - make --output-sync -j`nproc` + - make --output-sync -j`nproc` check V=3D1 + - make get-vm-images + # Only run tests that are either marked explicitly for KVM and x86_64 + # or tests that are supposed to be valid for all targets + - ./tests/venv/bin/avocado run --job-results-dir=3Dtests/results/ --filte= r-by-tags-include-empty --filter-by-tags-include-empty-key -t accel:kvm,arc= h:x86_64 -- tests/acceptance/ diff --git a/scripts/ci/org.centos/stream/README b/scripts/ci/org.centos/st= ream/README new file mode 100644 index 0000000000..f99bda99b8 --- /dev/null +++ b/scripts/ci/org.centos/stream/README @@ -0,0 +1,2 @@ +This directory contains scripts for generating a build of QEMU that +closely matches the CentOS Stream builds of the qemu-kvm package. diff --git a/scripts/ci/org.centos/stream/configure b/scripts/ci/org.centos= /stream/configure new file mode 100755 index 0000000000..1e7207faec --- /dev/null +++ b/scripts/ci/org.centos/stream/configure @@ -0,0 +1,190 @@ +#!/bin/sh -e +../configure \ +--prefix=3D"/usr" \ +--libdir=3D"/usr/lib64" \ +--datadir=3D"/usr/share" \ +--sysconfdir=3D"/etc" \ +--interp-prefix=3D/usr/qemu-%M \ +--localstatedir=3D"/var" \ +--docdir=3D"/usr/share/doc" \ +--libexecdir=3D"/usr/libexec" \ +--extra-ldflags=3D"-Wl,--build-id -Wl,-z,relro -Wl,-z,now" \ +--extra-cflags=3D"-O2 -g -pipe -Wall -Werror=3Dformat-security -Wp,-D_FORT= IFY_SOURCE=3D2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-str= ong -grecord-gcc-switches -specs=3D/usr/lib/rpm/redhat/redhat-hardened-cc1 = -specs=3D/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=3Dgeneric -fasy= nchronous-unwind-tables -fstack-clash-protection -fcf-protection" \ +--with-suffix=3D"qemu-kvm" \ +--firmwarepath=3D/usr/share/qemu-firmware \ +--meson=3D"/usr/bin/meson" \ +--target-list=3D"x86_64-softmmu" \ +--block-drv-rw-whitelist=3Dqcow2,raw,file,host_device,nbd,iscsi,rbd,blkdeb= ug,luks,null-co,nvme,copy-on-read,throttle,gluster \ +--audio-drv-list=3D \ +--block-drv-ro-whitelist=3Dvmdk,vhdx,vpc,https,ssh \ +--with-coroutine=3Ducontext \ +--with-git=3Dgit \ +--tls-priority=3D@QEMU,SYSTEM \ +--disable-attr \ +--disable-auth-pam \ +--disable-avx2 \ +--disable-avx512f \ +--disable-bochs \ +--disable-brlapi \ +--disable-bsd-user \ +--disable-bzip2 \ +--disable-cap-ng \ +--disable-capstone \ +--disable-cfi \ +--disable-cfi-debug \ +--disable-cloop \ +--disable-cocoa \ +--disable-coroutine-pool \ +--disable-crypto-afalg \ +--disable-curl \ +--disable-curses \ +--disable-debug-info \ +--disable-debug-mutex \ +--disable-debug-tcg \ +--disable-dmg \ +--disable-docs \ +--disable-fdt \ +--disable-fuse \ +--disable-fuse-lseek \ +--disable-gcrypt \ +--disable-gio \ +--disable-glusterfs \ +--disable-gnutls \ +--disable-gtk \ +--disable-guest-agent \ +--disable-guest-agent-msi \ +--disable-hax \ +--disable-hvf \ +--disable-iconv \ +--disable-jemalloc \ +--disable-kvm \ +--disable-libdaxctl \ +--disable-libiscsi \ +--disable-libnfs \ +--disable-libpmem \ +--disable-libssh \ +--disable-libudev \ +--disable-libusb \ +--disable-libxml2 \ +--disable-linux-aio \ +--disable-linux-io-uring \ +--disable-linux-user \ +--disable-live-block-migration \ +--disable-lto \ +--disable-lzfse \ +--disable-lzo \ +--disable-malloc-trim \ +--disable-membarrier \ +--disable-modules \ +--disable-module-upgrades \ +--disable-mpath \ +--disable-multiprocess \ +--disable-netmap \ +--disable-nettle \ +--disable-numa \ +--disable-opengl \ +--disable-parallels \ +--disable-pie \ +--disable-pvrdma \ +--disable-qcow1 \ +--disable-qed \ +--disable-qom-cast-debug \ +--disable-rbd \ +--disable-rdma \ +--disable-replication \ +--disable-rng-none \ +--disable-safe-stack \ +--disable-sanitizers \ +--disable-sdl \ +--disable-sdl-image \ +--disable-seccomp \ +--disable-smartcard \ +--disable-snappy \ +--disable-sparse \ +--disable-spice \ +--disable-strip \ +--disable-system \ +--disable-tcg \ +--disable-tcmalloc \ +--disable-tools \ +--disable-tpm \ +--disable-u2f \ +--disable-usb-redir \ +--disable-user \ +--disable-vde \ +--disable-vdi \ +--disable-vhost-crypto \ +--disable-vhost-kernel \ +--disable-vhost-net \ +--disable-vhost-scsi \ +--disable-vhost-user \ +--disable-vhost-user-blk-server \ +--disable-vhost-vdpa \ +--disable-vhost-vsock \ +--disable-virglrenderer \ +--disable-virtfs \ +--disable-virtiofsd \ +--disable-vnc \ +--disable-vnc-jpeg \ +--disable-vnc-png \ +--disable-vnc-sasl \ +--disable-vte \ +--disable-vvfat \ +--disable-werror \ +--disable-whpx \ +--disable-xen \ +--disable-xen-pci-passthrough \ +--disable-xfsctl \ +--disable-xkbcommon \ +--disable-zstd \ +--enable-attr \ +--enable-avx2 \ +--enable-cap-ng \ +--enable-capstone \ +--enable-coroutine-pool \ +--enable-curl \ +--enable-debug-info \ +--enable-docs \ +--enable-gcrypt \ +--enable-glusterfs \ +--enable-gnutls \ +--enable-guest-agent \ +--enable-iconv \ +--enable-kvm \ +--enable-libiscsi \ +--enable-libpmem \ +--enable-libssh \ +--enable-libusb \ +--enable-libudev \ +--enable-linux-aio \ +--enable-lzo \ +--enable-malloc-trim \ +--enable-modules \ +--enable-mpath \ +--enable-numa \ +--enable-opengl \ +--enable-pie \ +--enable-rbd \ +--enable-rdma \ +--enable-seccomp \ +--enable-snappy \ +--enable-smartcard \ +--enable-spice \ +--enable-system \ +--enable-tcg \ +--enable-tools \ +--enable-tpm \ +--enable-trace-backend=3Ddtrace \ +--enable-usb-redir \ +--enable-virtiofsd \ +--enable-vhost-kernel \ +--enable-vhost-net \ +--enable-vhost-user \ +--enable-vhost-user-blk-server \ +--enable-vhost-vdpa \ +--enable-vhost-vsock \ +--enable-vnc \ +--enable-vnc-png \ +--enable-vnc-sasl \ +--enable-werror \ +--enable-xkbcommon diff --git a/scripts/ci/setup/build-environment.yml b/scripts/ci/setup/buil= d-environment.yml index 664f2f0519..b1e01b1025 100644 --- a/scripts/ci/setup/build-environment.yml +++ b/scripts/ci/setup/build-environment.yml @@ -96,3 +96,41 @@ when: - ansible_facts['distribution'] =3D=3D 'Ubuntu' - ansible_facts['distribution_version'] =3D=3D '20.04' + + - name: Install basic packages to build QEMU on EL8 + dnf: + # This list of packages start with tests/docker/dockerfiles/centos= 8.docker + # but only include files that are common to all distro variants an= d present + # in the standard repos (no add-ons) + name: + - bzip2 + - bzip2-devel + - dbus-daemon + - diffutils + - gcc + - gcc-c++ + - genisoimage + - gettext + - git + - glib2-devel + - libaio-devel + - libepoxy-devel + - libgcrypt-devel + - lzo-devel + - make + - mesa-libEGL-devel + - nettle-devel + - nmap-ncat + - perl-Test-Harness + - pixman-devel + - python36 + - rdma-core-devel + - spice-glib-devel + - spice-server + - systemtap-sdt-devel + - tar + - zlib-devel + state: present + when: + - ansible_facts['distribution_file_variety'] =3D=3D 'RedHat' + - ansible_facts['distribution_version'] =3D=3D '8' --=20 2.25.4