From nobody Sat May 18 08:35:48 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=1594637908; cv=none; d=zohomail.com; s=zohoarc; b=Baz8hBLkMpUmTMDgD18inE5z9XrpIRtQr92LgSPdHMmKU1RbjhaqsD9bRr2WMkt0p+azHSiFcvJyYo73sQMCu5ur693+TGzPfZIluvKuzOg5T8zb1zksDC+YJ57g8GHsz9l5Avi3NZIT5B1bA8yFjKiILuQawOn4tiEJTbvwyA4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1594637908; h=Content-Type:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To; bh=TuzOOuKs/wgmMAwGTMV3YrJZo7iGlMVOHunmKB/tpwY=; b=TJPrLMaNsbsjoK+nNgzLk/XRWmtAwKbBiBpAWZrsjDHcLf9shTlesO9asPzWyqriX9OQQX7kVQfCYC/5PSlx0DZVGOK2877bhTmvgZDA+yltNeR01DZ3DAbgTpWNCRmip57YmkGwVo5sDTvnneB6LytZuNw+BR+kPFswtJ3H3wI= 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) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1594637908749798.740583388813; Mon, 13 Jul 2020 03:58:28 -0700 (PDT) Received: from localhost ([::1]:44916 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1juwAE-00045K-3k for importer@patchew.org; Mon, 13 Jul 2020 06:58:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60882) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1juw7c-0008PW-0O for qemu-devel@nongnu.org; Mon, 13 Jul 2020 06:55:44 -0400 Received: from us-smtp-2.mimecast.com ([205.139.110.61]:39355 helo=us-smtp-delivery-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1juw7a-0003vm-Gq for qemu-devel@nongnu.org; Mon, 13 Jul 2020 06:55:43 -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-36-2Suht8DgMjy8HM6lV3PcVA-1; Mon, 13 Jul 2020 06:55:39 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id DD25D1080; Mon, 13 Jul 2020 10:55:38 +0000 (UTC) Received: from thuth.com (ovpn-112-125.ams2.redhat.com [10.36.112.125]) by smtp.corp.redhat.com (Postfix) with ESMTP id A04F327CCC; Mon, 13 Jul 2020 10:55:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1594637741; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:content-type:content-type:in-reply-to:in-reply-to: references:references; bh=TuzOOuKs/wgmMAwGTMV3YrJZo7iGlMVOHunmKB/tpwY=; b=R51DX6p7kob7UOxykjZH02G9uRS9JY0yze5V5RNP8AAGcNKti9v4OoYjocyxkN5vZxbWIP sq+7bzhYmW1iTD5G9dydkmImUCz1od0C0xVsdRUU6IvgRnezIN6qJDhktQUsK9yLpuOL7Q kq1fwbb1/31wBlI76DKSlJxdCp9hxC4= X-MC-Unique: 2Suht8DgMjy8HM6lV3PcVA-1 From: Thomas Huth To: peter.maydell@linaro.org, qemu-devel@nongnu.org Subject: [PULL 1/9] configure: fix malloc check Date: Mon, 13 Jul 2020 12:55:26 +0200 Message-Id: <20200713105534.10872-2-thuth@redhat.com> In-Reply-To: <20200713105534.10872-1-thuth@redhat.com> References: <20200713105534.10872-1-thuth@redhat.com> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=thuth@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com 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=205.139.110.61; envelope-from=thuth@redhat.com; helo=us-smtp-delivery-1.mimecast.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/13 01:36:29 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -40 X-Spam_score: -4.1 X-Spam_bar: ---- X-Spam_report: (-4.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-1, 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=-1, 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: Olaf Hering Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Olaf Hering Avoid random return value. Fixes commit f2dfe54c74f768a5bf78c9e5918918727f9d9459 Signed-off-by: Olaf Hering Message-Id: <20200707171326.16422-1-olaf@aepfle.de> Reviewed-by: Richard Henderson Signed-off-by: Thomas Huth --- configure | 1 + 1 file changed, 1 insertion(+) diff --git a/configure b/configure index 814ed81279..f59418f6de 100755 --- a/configure +++ b/configure @@ -6343,6 +6343,7 @@ int main(void) { if (tmp !=3D NULL) { return *(int *)(tmp + 2); } + return 1; } EOF if compile_prog "$CPU_CFLAGS -Werror -fsanitize=3Dundefined" ""; then --=20 2.18.1 From nobody Sat May 18 08:35:48 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=1594637827; cv=none; d=zohomail.com; s=zohoarc; b=jo5ZlpFc5DCTpJdh2NvnBSE5vU+qSE16xxun0ztr968YSEyAnD9N86Vh2h+GRqkBc4OVFfeLnp2Fe5t87beJankwdyLd9B1EDQAm2vq6fQQBdWkQ6ugS9TqW8OjtseuaaS5wCWHK9RbX8/udT7DgGZ9ddF3H9y3dh1AC2D5kfgk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1594637827; 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=1+JSHYb737LZqhaYjYC2+OkHdZ5z7XT1MwUYgTFntwI=; b=Jrqo8FCMi8Jqdkijv31kvsp9eU0NHkjd/3Lgm6Oo3Sejuc/mqlCp8Kd6u3OAEsKM4KIFBPct1tk1R+XxmEppWHW/9cKZ8U62uQ6ZxHDum3HEEpZb7Dy7Ss02a1ShvPZkovtrJkTxZbsrIcdxakOMUcVtXu1p3wkXm8HrdG6nDMM= 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) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1594637826999514.743167322314; Mon, 13 Jul 2020 03:57:06 -0700 (PDT) Received: from localhost ([::1]:38960 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1juw8v-0001ib-Ni for importer@patchew.org; Mon, 13 Jul 2020 06:57:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60900) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1juw7d-0008S1-SB for qemu-devel@nongnu.org; Mon, 13 Jul 2020 06:55:45 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:32304 helo=us-smtp-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1juw7c-0003w9-91 for qemu-devel@nongnu.org; Mon, 13 Jul 2020 06:55:45 -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-70-ddaxHFoBMsKkkFfYcDHHNQ-1; Mon, 13 Jul 2020 06:55:41 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 49B291902EA0; Mon, 13 Jul 2020 10:55:40 +0000 (UTC) Received: from thuth.com (ovpn-112-125.ams2.redhat.com [10.36.112.125]) by smtp.corp.redhat.com (Postfix) with ESMTP id 47CCE27CCC; Mon, 13 Jul 2020 10:55:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1594637743; 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=1+JSHYb737LZqhaYjYC2+OkHdZ5z7XT1MwUYgTFntwI=; b=X5jZiLBoZyIJt+eHhkTdGYHn5A4C9xdlSegejSyT8OQKHUjkh6fd/HWzqV9a2T0vvqhrRC Ahk/LueKSL4VIf/iHhFViSVDr9KgkpwF+ypp5kVsONr7Ma+cI2o2J1HE6L1LXqRE4sUbm3 cAWGCbd8m0uchNfzkZ/f/ba9WBx6+dY= X-MC-Unique: ddaxHFoBMsKkkFfYcDHHNQ-1 From: Thomas Huth To: peter.maydell@linaro.org, qemu-devel@nongnu.org Subject: [PULL 2/9] configure: do not clobber CFLAGS with --enable-fuzzing Date: Mon, 13 Jul 2020 12:55:27 +0200 Message-Id: <20200713105534.10872-3-thuth@redhat.com> In-Reply-To: <20200713105534.10872-1-thuth@redhat.com> References: <20200713105534.10872-1-thuth@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=thuth@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" 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+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=205.139.110.120; envelope-from=thuth@redhat.com; helo=us-smtp-1.mimecast.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/13 03:20:22 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -40 X-Spam_score: -4.1 X-Spam_bar: ---- X-Spam_report: (-4.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-1, 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=-1, 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: Alexander Bulekov Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @redhat.com) From: Alexander Bulekov When configuring with --enable-fuzzing, we overwrote the CFLAGS added by all the preceding checks. Instead of overwriting CFLAGS, append the ones we need. Fixes: adc28027ff ("fuzz: add configure flag --enable-fuzzing") Reported-by: Li Qiang Signed-off-by: Alexander Bulekov Message-Id: <20200708200104.21978-2-alxndr@bu.edu> Tested-by: Li Qiang Reviewed-by: Li Qiang Reviewed-by: Philippe Mathieu-Daud=C3=A9 Signed-off-by: Thomas Huth --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index f59418f6de..69a89113f7 100755 --- a/configure +++ b/configure @@ -7926,7 +7926,7 @@ if test "$fuzzing" =3D "yes" ; then if test "$have_fuzzer" =3D "yes"; then FUZZ_LDFLAGS=3D" -fsanitize=3Daddress,fuzzer" FUZZ_CFLAGS=3D" -fsanitize=3Daddress,fuzzer" - CFLAGS=3D" -fsanitize=3Daddress,fuzzer-no-link" + CFLAGS=3D"$CFLAGS -fsanitize=3Daddress,fuzzer-no-link" else error_exit "Your compiler doesn't support -fsanitize=3Daddress,fuzzer" exit 1 --=20 2.18.1 From nobody Sat May 18 08:35:48 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=1594637998; cv=none; d=zohomail.com; s=zohoarc; b=frReX2RMJHEMg5ksUA9P7AhQMSs3Kr/rfwwJD6aYwI+qqvGw+Q1Xqwch8g3Tg2UdXTOpvtc4PFiYBdG3oIktzsBieng515BuyF9PS0KOULapZ3eYXo9m1daeA71sGYiaz5XTgauML08r9wxRBNbhhPWDy7ziRTPRFv9H+IH2kxw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1594637998; 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=R5gA0vB2/CqJHy1CxkeMBfDmCvBmDy/ymYGtAqoM3sM=; b=kVB1TivSZcOKH82kkKUJ0eEx6eSEPWWuPQXrd21tewOPL9wfeRJQWNNWj3RWoDVIZR/6BZxqSuEw1tH/a1Q5gMkWJrGODRDfi+rNMVQkiLgJA1SXIJFvqkT5p7gk/dQfvDxdcgvgN5dH6ae3y5BrOyEyGyDw6SHuXTGxY4Vw/Eo= 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) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1594637998791684.9594302031235; Mon, 13 Jul 2020 03:59:58 -0700 (PDT) Received: from localhost ([::1]:51256 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1juwBh-0006dd-Ko for importer@patchew.org; Mon, 13 Jul 2020 06:59:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60932) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1juw7h-00006d-F9 for qemu-devel@nongnu.org; Mon, 13 Jul 2020 06:55:49 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:56167 helo=us-smtp-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1juw7f-0003ww-S0 for qemu-devel@nongnu.org; Mon, 13 Jul 2020 06:55:49 -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-291-RUVq48RdPNavcloJvwt3rQ-1; Mon, 13 Jul 2020 06:55:42 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id EF3D6107ACCA; Mon, 13 Jul 2020 10:55:41 +0000 (UTC) Received: from thuth.com (ovpn-112-125.ams2.redhat.com [10.36.112.125]) by smtp.corp.redhat.com (Postfix) with ESMTP id B1D8B27CCC; Mon, 13 Jul 2020 10:55:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1594637747; 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=R5gA0vB2/CqJHy1CxkeMBfDmCvBmDy/ymYGtAqoM3sM=; b=Yx85q3djTsVrSSSykb3mHxXTfPjxx57FFuiqoK02ibOWrcqaBIj6R4AaXmK70ovRWMpR3x kjTW3X6YHv/waQR6nBfFrkyd0pzSQj2Bk9Q6AsHRhaTTvtCDeA3MzgWztpDvCshhzZdzSs h0h/8w3AOE28glMZ7B0iSAz/uEbc9xA= X-MC-Unique: RUVq48RdPNavcloJvwt3rQ-1 From: Thomas Huth To: peter.maydell@linaro.org, qemu-devel@nongnu.org Subject: [PULL 3/9] fuzz: add missing header for rcu_enable_atfork Date: Mon, 13 Jul 2020 12:55:28 +0200 Message-Id: <20200713105534.10872-4-thuth@redhat.com> In-Reply-To: <20200713105534.10872-1-thuth@redhat.com> References: <20200713105534.10872-1-thuth@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" 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+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=207.211.31.120; envelope-from=thuth@redhat.com; helo=us-smtp-1.mimecast.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/13 02:19:41 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -40 X-Spam_score: -4.1 X-Spam_bar: ---- X-Spam_report: (-4.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-1, 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=-1, 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: Alexander Bulekov Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @redhat.com) From: Alexander Bulekov In 45222b9a90, I fixed a broken check for rcu_enable_atfork introduced in d6919e4cb6. I added a call to rcu_enable_atfork after the call to qemu_init in fuzz.c, but forgot to include the corresponding header, breaking --enable-fuzzing --enable-werror builds. Fixes: 45222b9a90 ("fuzz: fix broken qtest check at rcu_disable_atfork") Signed-off-by: Alexander Bulekov Message-Id: <20200708200104.21978-3-alxndr@bu.edu> Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Thomas Huth Signed-off-by: Thomas Huth --- tests/qtest/fuzz/fuzz.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/qtest/fuzz/fuzz.c b/tests/qtest/fuzz/fuzz.c index a36d9038e0..0b66e43409 100644 --- a/tests/qtest/fuzz/fuzz.c +++ b/tests/qtest/fuzz/fuzz.c @@ -19,6 +19,7 @@ #include "sysemu/runstate.h" #include "sysemu/sysemu.h" #include "qemu/main-loop.h" +#include "qemu/rcu.h" #include "tests/qtest/libqtest.h" #include "tests/qtest/libqos/qgraph.h" #include "fuzz.h" --=20 2.18.1 From nobody Sat May 18 08:35:48 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=1594637830; cv=none; d=zohomail.com; s=zohoarc; b=c8xW0+5nMK2sPRzR5HdgWGeZnKY+2TZaAkrKme8n6iYLQ4XUyqQPI1cn2GKKki/gis8MqviCUH0ifwfTOOuqhCOSU033Sw+qYnOkZyDMAAnIvRI+xQiEDE0LnGAsIafUpRfF804dOGrX+pREYvQetdxKDKGWX5yzOe021IAeMXk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1594637830; h=Content-Type:Content-Transfer-Encoding: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=bgSJHUk50WsVUywUJl51sQnhEuKpjZ1TmWz6VxDAHSI=; b=KMYJHBYzB1BXRPzAr1zyqsSs+y1uvbsr7Dk92exGEYRrauPLkRhugt6e4yAnRW6VkdBRoSjr2YQ7QcehIIiv6qJ18b48S5sGcrjb08Ss50Qtt3nE5R3zpmSsqzdj+YivVTin8TJc+3tV9etgihnTWHDMyiLn73RsWhm6lXrwU5Q= 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) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1594637830592353.9172426056102; Mon, 13 Jul 2020 03:57:10 -0700 (PDT) Received: from localhost ([::1]:39394 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1juw8z-0001tC-C2 for importer@patchew.org; Mon, 13 Jul 2020 06:57:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:32778) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1juw7k-0000BX-0J for qemu-devel@nongnu.org; Mon, 13 Jul 2020 06:55:52 -0400 Received: from us-smtp-2.mimecast.com ([205.139.110.61]:20752 helo=us-smtp-delivery-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1juw7i-0003xT-4c for qemu-devel@nongnu.org; Mon, 13 Jul 2020 06:55:51 -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-416-PE_VUdsOMIaQP3KlI1gtOw-1; Mon, 13 Jul 2020 06:55:44 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 32DCA100AA21; Mon, 13 Jul 2020 10:55:43 +0000 (UTC) Received: from thuth.com (ovpn-112-125.ams2.redhat.com [10.36.112.125]) by smtp.corp.redhat.com (Postfix) with ESMTP id 5994B27CCC; Mon, 13 Jul 2020 10:55:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1594637749; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=bgSJHUk50WsVUywUJl51sQnhEuKpjZ1TmWz6VxDAHSI=; b=L0teUb3gaOGdD96ukrmrdQwPryQhoGb1neQzSpiv/BAdCrniClYN4m88vhoWGIRgdI5dOm c/ASGxHR6bv+zbB1V6laH0tUW9UEQ0GPFogfbAStaPJtyG4JvIWNDr0q4FZCXEm0zYvPtN HQe4utAPFeZ97ZHER/2Z6HkDGbra6Uk= X-MC-Unique: PE_VUdsOMIaQP3KlI1gtOw-1 From: Thomas Huth To: peter.maydell@linaro.org, qemu-devel@nongnu.org Subject: [PULL 4/9] tests/qtest/fuzz: Add missing spaces in description Date: Mon, 13 Jul 2020 12:55:29 +0200 Message-Id: <20200713105534.10872-5-thuth@redhat.com> In-Reply-To: <20200713105534.10872-1-thuth@redhat.com> References: <20200713105534.10872-1-thuth@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" 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+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=205.139.110.61; envelope-from=thuth@redhat.com; helo=us-smtp-delivery-1.mimecast.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/13 01:36:29 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -40 X-Spam_score: -4.1 X-Spam_bar: ---- X-Spam_report: (-4.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-1, 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=-1, 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: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @redhat.com) There should be a space between "forking" and "for". Message-Id: <20200709083719.22221-1-thuth@redhat.com> Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Alexander Bulekov Signed-off-by: Thomas Huth --- tests/qtest/fuzz/virtio_scsi_fuzz.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/qtest/fuzz/virtio_scsi_fuzz.c b/tests/qtest/fuzz/virtio_= scsi_fuzz.c index 51dce491ab..3a9ea13736 100644 --- a/tests/qtest/fuzz/virtio_scsi_fuzz.c +++ b/tests/qtest/fuzz/virtio_scsi_fuzz.c @@ -191,7 +191,7 @@ static void register_virtio_scsi_fuzz_targets(void) { fuzz_add_qos_target(&(FuzzTarget){ .name =3D "virtio-scsi-fuzz", - .description =3D "Fuzz the virtio-scsi virtual queues, for= king" + .description =3D "Fuzz the virtio-scsi virtual queues, for= king " "for each fuzz run", .pre_vm_init =3D &counter_shm_init, .pre_fuzz =3D &virtio_scsi_pre_fuzz, @@ -202,7 +202,7 @@ static void register_virtio_scsi_fuzz_targets(void) =20 fuzz_add_qos_target(&(FuzzTarget){ .name =3D "virtio-scsi-flags-fuzz", - .description =3D "Fuzz the virtio-scsi virtual queues, for= king" + .description =3D "Fuzz the virtio-scsi virtual queues, for= king " "for each fuzz run (also fuzzes the virtio flags)", .pre_vm_init =3D &counter_shm_init, .pre_fuzz =3D &virtio_scsi_pre_fuzz, --=20 2.18.1 From nobody Sat May 18 08:35:48 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=1594637930; cv=none; d=zohomail.com; s=zohoarc; b=njh4OBWajjTmYkKGHlj5RaKrbt7fF6f8NOSSAshB1Oa6WfzveIzR6nR/gNWPebXh7EhiFX57vY7VvGScr4O+qUHHgiNU4xTbEv+tQ9pqeKVtuj4D7dP7lZGrp7EQOo8s5I/C25G7DMw0wUh1GSG2ACoj/Xpf+b+HWJIGQX+qMtA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1594637930; h=Content-Type:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To; bh=aO1keFBsKf3vcu+Q9JgNlkxiw0haKoT15HjvT/KfGAI=; b=aGWHWtkbT0GbANKd3U/yNM4mEgZ+PKoxG9OS3bF0Jo2MnhwpqS1asZV/P/2ZUpqKgA3Ye2Q4NsM1xGSc7PwMEQ5U8pdgRR5plUseRIPNWbebDYcAZ4XDR2QfdN0ggtE8bEUPv6LhIOMYGPLQV6KMY0OZ75lJLVfEfkZfT7Ra0XI= 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) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1594637930102752.4456986073919; Mon, 13 Jul 2020 03:58:50 -0700 (PDT) Received: from localhost ([::1]:46196 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1juwAa-0004bU-O7 for importer@patchew.org; Mon, 13 Jul 2020 06:58:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60968) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1juw7i-000096-QU for qemu-devel@nongnu.org; Mon, 13 Jul 2020 06:55:50 -0400 Received: from us-smtp-1.mimecast.com ([207.211.31.81]:28976 helo=us-smtp-delivery-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1juw7g-0003x1-Do for qemu-devel@nongnu.org; Mon, 13 Jul 2020 06:55:50 -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-107-lrVLRacWOoS72OBt8nQYTw-1; Mon, 13 Jul 2020 06:55:45 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 6B21A108B; Mon, 13 Jul 2020 10:55:44 +0000 (UTC) Received: from thuth.com (ovpn-112-125.ams2.redhat.com [10.36.112.125]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9139C27CCC; Mon, 13 Jul 2020 10:55:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1594637747; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:content-type:content-type:in-reply-to:in-reply-to: references:references; bh=aO1keFBsKf3vcu+Q9JgNlkxiw0haKoT15HjvT/KfGAI=; b=IJzFbSvG2wOHaxnHzuCv32L0o0Yw+P3i/126sjTYW6uR6covNqTvv2vQ1q7ZdgBvNEuTbB oej5LNjdfwBxzXRFxS6N3jUxHm4bm3gycofw88y31NsXaF3/WBl4SxC4iyqd3N6bomN31p e1EwYdLqLWUI8SaM8WdQWEk6dl+rd3w= X-MC-Unique: lrVLRacWOoS72OBt8nQYTw-1 From: Thomas Huth To: peter.maydell@linaro.org, qemu-devel@nongnu.org Subject: [PULL 5/9] docs/devel/fuzzing: Fix bugs in documentation Date: Mon, 13 Jul 2020 12:55:30 +0200 Message-Id: <20200713105534.10872-6-thuth@redhat.com> In-Reply-To: <20200713105534.10872-1-thuth@redhat.com> References: <20200713105534.10872-1-thuth@redhat.com> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=thuth@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com 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=207.211.31.81; envelope-from=thuth@redhat.com; helo=us-smtp-delivery-1.mimecast.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/13 02:19:41 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -30 X-Spam_score: -3.1 X-Spam_bar: --- X-Spam_report: (-3.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-1, 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_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, 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: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Fix typo - the option is called "--fuzz-target" and not "--fuzz_taget". Also use a different fuzzer in the example, since "virtio-net-fork-fuzz" does not seem to be a valid fuzzer target (anymore?). Signed-off-by: Thomas Huth Message-Id: <20200709084059.22539-1-thuth@redhat.com> --- docs/devel/fuzzing.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/devel/fuzzing.txt b/docs/devel/fuzzing.txt index 324d2cd92b..db5641de74 100644 --- a/docs/devel/fuzzing.txt +++ b/docs/devel/fuzzing.txt @@ -33,11 +33,11 @@ Fuzz targets are built similarly to system/softmmu: =20 This builds ./i386-softmmu/qemu-fuzz-i386 =20 -The first option to this command is: --fuzz_taget=3DFUZZ_NAME +The first option to this command is: --fuzz-target=3DFUZZ_NAME To list all of the available fuzzers run qemu-fuzz-i386 with no arguments. =20 -eg: - ./i386-softmmu/qemu-fuzz-i386 --fuzz-target=3Dvirtio-net-fork-fuzz +For example: + ./i386-softmmu/qemu-fuzz-i386 --fuzz-target=3Dvirtio-scsi-fuzz =20 Internally, libfuzzer parses all arguments that do not begin with "--". Information about these is available by passing -help=3D1 --=20 2.18.1 From nobody Sat May 18 08:35:48 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=1594637937; cv=none; d=zohomail.com; s=zohoarc; b=mDPBdY4XheK6DNPi5dC2acHL20fbYa//PXui5wPZ1ig+P6quDMKipxNZJy/Pt4gy+fLwZtm0LH1/2k5tfFw2jbvRZDWNkxS17TSAlRMTHNV1RxXdgPPkTwXGzkyr6JgoL+q5DywoQgyRqjUB1CGvyhdCmatGboC5WHoT1ulTi94= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1594637937; h=Content-Type:Content-Transfer-Encoding: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=Ft7uHnBsNTLzWbWykuBpe5dyEeEFUTReen4b+OVO4Fc=; b=ayY9ypaCZS28SLy3dVY50z+mweknbLhG/Q1LF86Gyq10m+tlwaVVd/7b80QeB3xDrvzZo+rYwnznnxwgSFAN9bC1Bav8/L2MCGwWN5WCIjkZEd+U9z2xM9jbiSm2ZwZ/7IXM+7Yh2L19IV+sWDYa//wcbNuO4UsspOOYEKedERM= 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) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1594637937483917.9294285228108; Mon, 13 Jul 2020 03:58:57 -0700 (PDT) Received: from localhost ([::1]:46538 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1juwAi-0004jj-9S for importer@patchew.org; Mon, 13 Jul 2020 06:58:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60994) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1juw7j-0000AC-B1 for qemu-devel@nongnu.org; Mon, 13 Jul 2020 06:55:51 -0400 Received: from us-smtp-1.mimecast.com ([207.211.31.81]:27197 helo=us-smtp-delivery-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1juw7h-0003xF-4a for qemu-devel@nongnu.org; Mon, 13 Jul 2020 06:55:51 -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-335-Q8QRJpNWOxapJUHbyBbNfA-1; Mon, 13 Jul 2020 06:55:46 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 8E1871080; Mon, 13 Jul 2020 10:55:45 +0000 (UTC) Received: from thuth.com (ovpn-112-125.ams2.redhat.com [10.36.112.125]) by smtp.corp.redhat.com (Postfix) with ESMTP id C95A62B6DE; Mon, 13 Jul 2020 10:55:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1594637748; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Ft7uHnBsNTLzWbWykuBpe5dyEeEFUTReen4b+OVO4Fc=; b=cdxwME94aXrCcpc3tSdr1sMUlVMKNc9o2lWlwqbXFiU1atV0kTxDqxcePxVMtyM+Xb4cB+ bNBZsl+ONPHI7QenmSJnN2JeJb/bxzCoXfJBrYUfDnyA3/ncUU4jjE6OyQoXxCRoWBNpZk 73SgqjzQfhDc4pE/xYZLKFHtcBu806M= X-MC-Unique: Q8QRJpNWOxapJUHbyBbNfA-1 From: Thomas Huth To: peter.maydell@linaro.org, qemu-devel@nongnu.org Subject: [PULL 6/9] Remove the CONFIG_PRAGMA_DIAGNOSTIC_AVAILABLE switch Date: Mon, 13 Jul 2020 12:55:31 +0200 Message-Id: <20200713105534.10872-7-thuth@redhat.com> In-Reply-To: <20200713105534.10872-1-thuth@redhat.com> References: <20200713105534.10872-1-thuth@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" 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+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=207.211.31.81; envelope-from=thuth@redhat.com; helo=us-smtp-delivery-1.mimecast.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/13 02:19:41 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -30 X-Spam_score: -3.1 X-Spam_bar: --- X-Spam_report: (-3.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-1, 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_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=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: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @redhat.com) GCC supports "#pragma GCC diagnostic" since version 4.6, and Clang seems to support it, too, since its early versions 3.x. That means that our minimum required compiler versions all support this pragma already and we can remove the test from configure and all the related #ifdefs in the code. Reviewed-by: Daniel P. Berrang=C3=A9 Message-Id: <20200710045515.25986-1-thuth@redhat.com> Reviewed-by: Stefan Hajnoczi Signed-off-by: Thomas Huth --- configure | 29 ----------------------------- include/ui/gtk.h | 4 ---- include/ui/qemu-pixman.h | 4 ---- scripts/decodetree.py | 12 ++++-------- ui/gtk.c | 4 ---- util/coroutine-ucontext.c | 4 ++-- 6 files changed, 6 insertions(+), 51 deletions(-) diff --git a/configure b/configure index 69a89113f7..9b6ab9d3ca 100755 --- a/configure +++ b/configure @@ -5728,31 +5728,6 @@ if compile_prog "" "" ; then linux_magic_h=3Dyes fi =20 -######################################## -# check whether we can disable warning option with a pragma (this is needed -# to silence warnings in the headers of some versions of external librarie= s). -# This test has to be compiled with -Werror as otherwise an unknown pragma= is -# only a warning. -# -# If we can't selectively disable warning in the code, disable -Werror so = that -# the build doesn't fail anyway. - -pragma_disable_unused_but_set=3Dno -cat > $TMPC << EOF -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wstrict-prototypes" -#pragma GCC diagnostic pop - -int main(void) { - return 0; -} -EOF -if compile_prog "-Werror" "" ; then - pragma_diagnostic_available=3Dyes -else - werror=3Dno -fi - ######################################## # check if we have valgrind/valgrind.h =20 @@ -7689,10 +7664,6 @@ if test "$linux_magic_h" =3D "yes" ; then echo "CONFIG_LINUX_MAGIC_H=3Dy" >> $config_host_mak fi =20 -if test "$pragma_diagnostic_available" =3D "yes" ; then - echo "CONFIG_PRAGMA_DIAGNOSTIC_AVAILABLE=3Dy" >> $config_host_mak -fi - if test "$valgrind_h" =3D "yes" ; then echo "CONFIG_VALGRIND_H=3Dy" >> $config_host_mak fi diff --git a/include/ui/gtk.h b/include/ui/gtk.h index d1b230848a..eaeb450f91 100644 --- a/include/ui/gtk.h +++ b/include/ui/gtk.h @@ -1,15 +1,11 @@ #ifndef UI_GTK_H #define UI_GTK_H =20 -#ifdef CONFIG_PRAGMA_DIAGNOSTIC_AVAILABLE /* Work around an -Wstrict-prototypes warning in GTK headers */ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wstrict-prototypes" -#endif #include -#ifdef CONFIG_PRAGMA_DIAGNOSTIC_AVAILABLE #pragma GCC diagnostic pop -#endif =20 #include =20 diff --git a/include/ui/qemu-pixman.h b/include/ui/qemu-pixman.h index 3b7cf70157..87737a6f16 100644 --- a/include/ui/qemu-pixman.h +++ b/include/ui/qemu-pixman.h @@ -7,14 +7,10 @@ #define QEMU_PIXMAN_H =20 /* pixman-0.16.0 headers have a redundant declaration */ -#ifdef CONFIG_PRAGMA_DIAGNOSTIC_AVAILABLE #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wredundant-decls" -#endif #include -#ifdef CONFIG_PRAGMA_DIAGNOSTIC_AVAILABLE #pragma GCC diagnostic pop -#endif =20 /* * pixman image formats are defined to be native endian, diff --git a/scripts/decodetree.py b/scripts/decodetree.py index 530d41ca62..694757b6c2 100755 --- a/scripts/decodetree.py +++ b/scripts/decodetree.py @@ -1327,12 +1327,10 @@ def main(): # but we can't tell which ones. Prevent issues from the compiler by # suppressing redundant declaration warnings. if anyextern: - output("#ifdef CONFIG_PRAGMA_DIAGNOSTIC_AVAILABLE\n", - "# pragma GCC diagnostic push\n", - "# pragma GCC diagnostic ignored \"-Wredundant-decls\"\n", - "# ifdef __clang__\n" + output("#pragma GCC diagnostic push\n", + "#pragma GCC diagnostic ignored \"-Wredundant-decls\"\n", + "#ifdef __clang__\n" "# pragma GCC diagnostic ignored \"-Wtypedef-redefinition\= "\n", - "# endif\n", "#endif\n\n") =20 out_pats =3D {} @@ -1347,9 +1345,7 @@ def main(): output('\n') =20 if anyextern: - output("#ifdef CONFIG_PRAGMA_DIAGNOSTIC_AVAILABLE\n", - "# pragma GCC diagnostic pop\n", - "#endif\n\n") + output("#pragma GCC diagnostic pop\n\n") =20 for n in sorted(formats.keys()): f =3D formats[n] diff --git a/ui/gtk.c b/ui/gtk.c index d4b49bd7da..b0cc08ad6d 100644 --- a/ui/gtk.c +++ b/ui/gtk.c @@ -1996,14 +1996,10 @@ static GSList *gd_vc_gfx_init(GtkDisplayState *s, V= irtualConsole *vc, * proper replacement (native opengl support) is only * available in 3.16+. Silence the warning if possible. */ -#ifdef CONFIG_PRAGMA_DIAGNOSTIC_AVAILABLE #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wdeprecated-declarations" -#endif gtk_widget_set_double_buffered(vc->gfx.drawing_area, FALSE); -#ifdef CONFIG_PRAGMA_DIAGNOSTIC_AVAILABLE #pragma GCC diagnostic pop -#endif vc->gfx.dcl.ops =3D &dcl_egl_ops; } } else diff --git a/util/coroutine-ucontext.c b/util/coroutine-ucontext.c index fff20aad80..904b375192 100644 --- a/util/coroutine-ucontext.c +++ b/util/coroutine-ucontext.c @@ -251,8 +251,8 @@ Coroutine *qemu_coroutine_new(void) } =20 #ifdef CONFIG_VALGRIND_H -#if defined(CONFIG_PRAGMA_DIAGNOSTIC_AVAILABLE) && !defined(__clang__) /* Work around an unused variable in the valgrind.h macro... */ +#if !defined(__clang__) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wunused-but-set-variable" #endif @@ -260,7 +260,7 @@ static inline void valgrind_stack_deregister(CoroutineU= Context *co) { VALGRIND_STACK_DEREGISTER(co->valgrind_stack_id); } -#if defined(CONFIG_PRAGMA_DIAGNOSTIC_AVAILABLE) && !defined(__clang__) +#if !defined(__clang__) #pragma GCC diagnostic pop #endif #endif --=20 2.18.1 From nobody Sat May 18 08:35:48 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=1594638191; cv=none; d=zohomail.com; s=zohoarc; b=IF+T6ggaL2iMV+xx+WtB4N/1ODU21Db4LNRFGvGBftvzxhu5bV+7tYu315qtKD2coFGxHsF+luEKghmrcdJapmQJy+shQmlxeipXmt9A2GITQxfuN1UndNhMlrJvMxjwsIk0PXnIeVg8MJpiX6epypzwPZKXJRWzJPpWOMRR2EQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1594638191; h=Content-Type:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To; bh=/7EduRkP+yVD/+i4K7RshcaxB25w1vJnUfxhro97LSM=; b=CJ29so/8mgVk8FINOvhsmRWZnHehhCrG/gbAEXkggWtocrH0EMhRKS3Y1AV+nhhw1DLvCr3pan1VEshVgDCA6YKLJ/uujvPEVtEfGwc/gpobPxIjQqDyB+VIY5KUqLSYiWF1GGwKAX/McL3lqhhEvVXPTvU7g8TRVLEP4lf6Qpc= 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) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1594638191959959.0662060695495; Mon, 13 Jul 2020 04:03:11 -0700 (PDT) Received: from localhost ([::1]:58524 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1juwEo-0001I0-Oi for importer@patchew.org; Mon, 13 Jul 2020 07:03:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:32802) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1juw7l-0000ED-Dd for qemu-devel@nongnu.org; Mon, 13 Jul 2020 06:55:53 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:40982 helo=us-smtp-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1juw7j-0003xl-MZ for qemu-devel@nongnu.org; Mon, 13 Jul 2020 06:55: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-354-VBo5UQlJNQ-K9WSBY0In5g-1; Mon, 13 Jul 2020 06:55:47 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id C116480183C; Mon, 13 Jul 2020 10:55:46 +0000 (UTC) Received: from thuth.com (ovpn-112-125.ams2.redhat.com [10.36.112.125]) by smtp.corp.redhat.com (Postfix) with ESMTP id E82B327CCC; Mon, 13 Jul 2020 10:55:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1594637750; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:content-type:content-type:in-reply-to:in-reply-to: references:references; bh=/7EduRkP+yVD/+i4K7RshcaxB25w1vJnUfxhro97LSM=; b=X7/YQavOtlcVJQJEC6WzkR5a8ewdnXXsbRerTWzMooYrMOeJcRzCS+bl09JlLki511iaOp Ih8ElON965OpHkcHpypobch/w2Tjl/qdaseXw+xcdtLn9+/FeBawx/ZSqkjS75CTgooYyg gT3pMug6z38xl7DvocItz1ZQyuFrOes= X-MC-Unique: VBo5UQlJNQ-K9WSBY0In5g-1 From: Thomas Huth To: peter.maydell@linaro.org, qemu-devel@nongnu.org Subject: [PULL 7/9] disas/sh4: Add missing fallthrough annotations Date: Mon, 13 Jul 2020 12:55:32 +0200 Message-Id: <20200713105534.10872-8-thuth@redhat.com> In-Reply-To: <20200713105534.10872-1-thuth@redhat.com> References: <20200713105534.10872-1-thuth@redhat.com> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com 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=205.139.110.120; envelope-from=thuth@redhat.com; helo=us-smtp-1.mimecast.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/13 03:20:22 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -40 X-Spam_score: -4.1 X-Spam_bar: ---- X-Spam_report: (-4.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-1, 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=-1, 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: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Add fallthrough annotations to be able to compile the code without warnings with -Wimplicit-fallthrough. Looking at the code, it seems like the fallthrough is indeed intended here, so the comments should be appropriate. Message-Id: <20200630055953.9309-1-thuth@redhat.com> Reviewed-by: Richard Henderson Signed-off-by: Thomas Huth --- disas/sh4.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/disas/sh4.c b/disas/sh4.c index 55ef865a36..dcdbdf26d8 100644 --- a/disas/sh4.c +++ b/disas/sh4.c @@ -1963,6 +1963,7 @@ print_insn_sh (bfd_vma memaddr, struct disassemble_in= fo *info) fprintf_fn (stream, "xd%d", rn & ~1); break; } + /* fallthrough */ case D_REG_N: fprintf_fn (stream, "dr%d", rn); break; @@ -1972,6 +1973,7 @@ print_insn_sh (bfd_vma memaddr, struct disassemble_in= fo *info) fprintf_fn (stream, "xd%d", rm & ~1); break; } + /* fallthrough */ case D_REG_M: fprintf_fn (stream, "dr%d", rm); break; --=20 2.18.1 From nobody Sat May 18 08:35:48 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=1594638165; cv=none; d=zohomail.com; s=zohoarc; b=Z1yt74AQRTQzZCWA3Ex9G2stxH9EBHMi01WtEYbPD9W+HyrSA1PHCoN8qIIlFnUMaMlKBv5ZW90dzSnxm5dZCQm2oMRPw5p2XFJZ7bnbwdkUW24CCAeKSMHVNQeP8k9tvMu56mZANvrxB60qKNC5jF+tFGcYzy1tx1NlmTGE420= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1594638165; h=Content-Type:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To; bh=RJwLpVq9Q1i8NQ8dg4KaI2orhagBONGJEIZj2Ad66Yo=; b=PQYqm6+eNpe1IA1u9+ZJdPeTbr9f9GCNFYizrvQJ9xPXR4SWT11ZaY77oEOWipaK2qHeOtKPASeGRdBzthZDFPjttohuDvRTh0CzYNMDAibv8M9ANzhmLCB3xGGCUuXQOiVRr6wVYys9dkn3fhCrwpIm4tSkpfTavIvvmhFu3E0= 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) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1594638165032418.00254266821526; Mon, 13 Jul 2020 04:02:45 -0700 (PDT) Received: from localhost ([::1]:57478 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1juwEN-0000qu-Gq for importer@patchew.org; Mon, 13 Jul 2020 07:02:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:32850) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1juw7o-0000Ln-JZ for qemu-devel@nongnu.org; Mon, 13 Jul 2020 06:55:56 -0400 Received: from us-smtp-1.mimecast.com ([207.211.31.81]:44302) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1juw7m-0003yR-El for qemu-devel@nongnu.org; Mon, 13 Jul 2020 06:55:56 -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-11-fDr091LWPZmZ8xiwi1O-bw-1; Mon, 13 Jul 2020 06:55:49 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 501061902EA1; Mon, 13 Jul 2020 10:55:48 +0000 (UTC) Received: from thuth.com (ovpn-112-125.ams2.redhat.com [10.36.112.125]) by smtp.corp.redhat.com (Postfix) with ESMTP id 32A5E27CCC; Mon, 13 Jul 2020 10:55:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1594637753; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:content-type:content-type:in-reply-to:in-reply-to: references:references; bh=RJwLpVq9Q1i8NQ8dg4KaI2orhagBONGJEIZj2Ad66Yo=; b=P7tDexqkyUDs9xoRZLzsn73M92jVTUSaQ34h45gP4emeQ/oFRKDLqBKIlj3j5ooyVFC4EN p3/IR9qGEylod9OmTvIjb6D/L98bebT8uvw6uTmFmUtA7jLcsDMD8Vj05DCprtxlD5YCUs Ojq03VO5UKM/4SL3nbGmEXSUTTi23p0= X-MC-Unique: fDr091LWPZmZ8xiwi1O-bw-1 From: Thomas Huth To: peter.maydell@linaro.org, qemu-devel@nongnu.org Subject: [PULL 8/9] GitLab Gating CI: introduce pipeline-status contrib script Date: Mon, 13 Jul 2020 12:55:33 +0200 Message-Id: <20200713105534.10872-9-thuth@redhat.com> In-Reply-To: <20200713105534.10872-1-thuth@redhat.com> References: <20200713105534.10872-1-thuth@redhat.com> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=thuth@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com 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=207.211.31.81; envelope-from=thuth@redhat.com; helo=us-smtp-1.mimecast.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/13 02:19:41 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -30 X-Spam_score: -3.1 X-Spam_bar: --- X-Spam_report: (-3.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-1, 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_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, 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: Cleber Rosa Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Cleber Rosa This script is intended to be used right after a push to a branch. By default, it will look for the pipeline associated with the commit that is the HEAD of the *local* staging branch. It can be used as a one time check, or with the `--wait` option to wait until the pipeline completes. If the pipeline is successful, then a merge of the staging branch into the master branch should be the next step. Signed-off-by: Cleber Rosa Message-Id: <20200709024657.2500558-2-crosa@redhat.com> [thuth: Added the changes suggested by Erik Skultety] Signed-off-by: Thomas Huth --- scripts/ci/gitlab-pipeline-status | 157 ++++++++++++++++++++++++++++++ 1 file changed, 157 insertions(+) create mode 100755 scripts/ci/gitlab-pipeline-status diff --git a/scripts/ci/gitlab-pipeline-status b/scripts/ci/gitlab-pipeline= -status new file mode 100755 index 0000000000..348a49b6a4 --- /dev/null +++ b/scripts/ci/gitlab-pipeline-status @@ -0,0 +1,157 @@ +#!/usr/bin/env python3 +# +# Copyright (c) 2019-2020 Red Hat, Inc. +# +# Author: +# Cleber Rosa +# +# This work is licensed under the terms of the GNU GPL, version 2 or +# later. See the COPYING file in the top-level directory. + +""" +Checks the GitLab pipeline status for a given commit ID +""" + +# pylint: disable=3DC0103 + +import argparse +import http.client +import json +import os +import subprocess +import time +import sys + + +def get_local_staging_branch_commit(): + """ + Returns the commit sha1 for the *local* branch named "staging" + """ + result =3D subprocess.run(['git', 'rev-parse', 'staging'], + stdin=3Dsubprocess.DEVNULL, + stdout=3Dsubprocess.PIPE, + stderr=3Dsubprocess.DEVNULL, + cwd=3Dos.path.dirname(__file__), + universal_newlines=3DTrue).stdout.strip() + if result =3D=3D 'staging': + raise ValueError("There's no local branch named 'staging'") + if len(result) !=3D 40: + raise ValueError("Branch staging HEAD doesn't look like a sha1") + return result + + +def get_pipeline_status(project_id, commit_sha1): + """ + Returns the JSON content of the pipeline status API response + """ + url =3D '/api/v4/projects/{}/pipelines?sha=3D{}'.format(project_id, + commit_sha1) + connection =3D http.client.HTTPSConnection('gitlab.com') + connection.request('GET', url=3Durl) + response =3D connection.getresponse() + if response.code !=3D http.HTTPStatus.OK: + raise ValueError("Failed to receive a successful response") + json_response =3D json.loads(response.read()) + + # As far as I can tell, there should be only one pipeline for the same + # project + commit. If this assumption is false, we can add further + # filters to the url, such as username, and order_by. + if not json_response: + raise ValueError("No pipeline found") + return json_response[0] + + +def wait_on_pipeline_success(timeout, interval, + project_id, commit_sha): + """ + Waits for the pipeline to finish within the given timeout + """ + start =3D time.time() + while True: + if time.time() >=3D (start + timeout): + print("Waiting on the pipeline timed out") + return False + + status =3D get_pipeline_status(project_id, commit_sha) + if status['status'] =3D=3D 'running': + time.sleep(interval) + print('running...') + continue + + if status['status'] =3D=3D 'success': + return True + + msg =3D "Pipeline failed, check: %s" % status['web_url'] + print(msg) + return False + + +def main(): + """ + Script entry point + """ + parser =3D argparse.ArgumentParser( + prog=3D'pipeline-status', + description=3D'check or wait on a pipeline status') + + parser.add_argument('-t', '--timeout', type=3Dint, default=3D7200, + help=3D('Amount of time (in seconds) to wait for t= he ' + 'pipeline to complete. Defaults to ' + '%(default)s')) + parser.add_argument('-i', '--interval', type=3Dint, default=3D60, + help=3D('Amount of time (in seconds) to wait betwe= en ' + 'checks of the pipeline status. Defaults ' + 'to %(default)s')) + parser.add_argument('-w', '--wait', action=3D'store_true', default=3DF= alse, + help=3D('Wether to wait, instead of checking only = once ' + 'the status of a pipeline')) + parser.add_argument('-p', '--project-id', type=3Dint, default=3D111676= 99, + help=3D('The GitLab project ID. Defaults to the pr= oject ' + 'for https://gitlab.com/qemu-project/qemu, t= hat ' + 'is, "%(default)s"')) + try: + default_commit =3D get_local_staging_branch_commit() + commit_required =3D False + except ValueError: + default_commit =3D '' + commit_required =3D True + parser.add_argument('-c', '--commit', required=3Dcommit_required, + default=3Ddefault_commit, + help=3D('Look for a pipeline associated with the g= iven ' + 'commit. If one is not explicitly given, th= e ' + 'commit associated with the local branch nam= ed ' + '"staging" is used. Default: %(default)s')) + parser.add_argument('--verbose', action=3D'store_true', default=3DFals= e, + help=3D('A minimal verbosity level that prints the= ' + 'overall result of the check/wait')) + + args =3D parser.parse_args() + + try: + if args.wait: + success =3D wait_on_pipeline_success( + args.timeout, + args.interval, + args.project_id, + args.commit) + else: + status =3D get_pipeline_status(args.project_id, + args.commit) + success =3D status['status'] =3D=3D 'success' + except Exception as error: # pylint: disable=3DW0703 + success =3D False + if args.verbose: + print("ERROR: %s" % error.args[0]) + + if success: + if args.verbose: + print('success') + sys.exit(0) + else: + if args.verbose: + print('failure') + sys.exit(1) + + +if __name__ =3D=3D '__main__': + main() --=20 2.18.1 From nobody Sat May 18 08:35:48 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=1594638251; cv=none; d=zohomail.com; s=zohoarc; b=cNTe5yMjJMykpnI6RcQ2/94xwzAhmHWfqEl0obZl240uGUo0aKSeYW8Tn/txMyVTpNc7BJojkFTgJPHfnKIdvHWP7PK0YClNqfASbmFC+W5+Hm/7zfvFa8/YAs9wvodiGKQs+iRNZdQK/h2CN1vYWxS1QV7OaHrcaoEFmd1QOVE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1594638251; h=Content-Type:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To; bh=mtAKyKj4rxqoT8KX0v2Jvrpk9qyXMNvt3ihC3ynTpM8=; b=mC/FYiGxqrw4C271AFCZuGevgShGG6JHGk48yFO0H9cegG873Hl9rRWZohnafJVpuJsOCcleC5qo3qILlf/0YIy5ADOBiG4SQ/p38Kw6JOSbC7Duf6AkzAm9QS2bUGEB88idsb62PB/JDWLQQxPoiziKctEigXTI2EV/o1aQI3c= 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) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1594638251229610.3598182422677; Mon, 13 Jul 2020 04:04:11 -0700 (PDT) Received: from localhost ([::1]:33512 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1juwFl-0002bF-VM for importer@patchew.org; Mon, 13 Jul 2020 07:04:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:32880) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1juw7t-0000Xo-Mj for qemu-devel@nongnu.org; Mon, 13 Jul 2020 06:56:01 -0400 Received: from us-smtp-1.mimecast.com ([207.211.31.81]:39724 helo=us-smtp-delivery-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1juw7r-0003yy-Rb for qemu-devel@nongnu.org; Mon, 13 Jul 2020 06:56:01 -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-49-YD5R1vjUPduW04if1fS4UA-1; Mon, 13 Jul 2020 06:55:52 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 875B41083E80; Mon, 13 Jul 2020 10:55:49 +0000 (UTC) Received: from thuth.com (ovpn-112-125.ams2.redhat.com [10.36.112.125]) by smtp.corp.redhat.com (Postfix) with ESMTP id AEA8827CCC; Mon, 13 Jul 2020 10:55:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1594637759; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:content-type:content-type:in-reply-to:in-reply-to: references:references; bh=mtAKyKj4rxqoT8KX0v2Jvrpk9qyXMNvt3ihC3ynTpM8=; b=WLTSPX9pBdUFVIpmKC1meDweChcBj9PQkTHBqO4RdSPbakOHyWcdy0OWgAEWay5ELH8qQC pCK8hHre0TchEeR+2Smxnm2Vvwwse74xO9yuFF4tZjmNo/kI+VuDlW56llnBxdOah76qZt /mMFnSSUXiiMuyw/8T1atEOZqwLqyUw= X-MC-Unique: YD5R1vjUPduW04if1fS4UA-1 From: Thomas Huth To: peter.maydell@linaro.org, qemu-devel@nongnu.org Subject: [PULL 9/9] docs/system/s390x: Improve the 3270 documentation Date: Mon, 13 Jul 2020 12:55:34 +0200 Message-Id: <20200713105534.10872-10-thuth@redhat.com> In-Reply-To: <20200713105534.10872-1-thuth@redhat.com> References: <20200713105534.10872-1-thuth@redhat.com> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=thuth@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com 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=207.211.31.81; envelope-from=thuth@redhat.com; helo=us-smtp-delivery-1.mimecast.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/13 02:19:41 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -30 X-Spam_score: -3.1 X-Spam_bar: --- X-Spam_report: (-3.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-1, 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_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, 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: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" There is some additional information about the 3270 support in our Wiki at https://wiki.qemu.org/Features/3270 - so let's include this information into the main documentation now to have one single source of information (the Wiki page could later be removed). While at it, I also shortened the lines of the first example a little bit. Otherwise they showed up with a horizontal scrollbar in my Firefox browser. Message-Id: <20200713075112.442-1-thuth@redhat.com> Reviewed-by: Cornelia Huck Signed-off-by: Thomas Huth --- docs/system/s390x/3270.rst | 43 ++++++++++++++++++++++++++++++++------ 1 file changed, 37 insertions(+), 6 deletions(-) diff --git a/docs/system/s390x/3270.rst b/docs/system/s390x/3270.rst index 1774cdcadf..0554a70a9f 100644 --- a/docs/system/s390x/3270.rst +++ b/docs/system/s390x/3270.rst @@ -1,9 +1,15 @@ 3270 devices =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =20 -QEMU supports connecting an external 3270 terminal emulator (such as -``x3270``) to make a single 3270 device available to a guest. Note that th= is -supports basic features only. +The 3270 is the classic 'green-screen' console of the mainframes (see the +`IBM 3270 Wikipedia article `__). + +The 3270 data stream is not implemented within QEMU; the device only provi= des +TN3270 (a telnet extension; see `RFC 854 `__ +and `RFC 1576 `__) and leaves the hea= vy +lifting to an external 3270 terminal emulator (such as ``x3270``) to make a +single 3270 device available to a guest. Note that this supports basic +features only. =20 To provide a 3270 device to a guest, create a ``x-terminal3270`` linked to a ``tn3270`` chardev. The guest will see a 3270 channel device. In order @@ -12,10 +18,14 @@ to actually be able to use it, attach the ``x3270`` emu= lator to the chardev. Example configuration --------------------- =20 +* Make sure that 3270 support is enabled in the guest's Linux kernel. You = need + ``CONFIG_TN3270`` and at least one of ``CONFIG_TN3270_TTY`` (for additio= nal + ttys) or ``CONFIG_TN3270_CONSOLE`` (for a 3270 console). + * Add a ``tn3270`` chardev and a ``x-terminal3270`` to the QEMU command li= ne:: =20 - -chardev socket,id=3Dchar_0,host=3D0.0.0.0,port=3D2300,nowait,server,t= n3270 - -device x-terminal3270,chardev=3Dchar_0,devno=3Dfe.0.000a,id=3Dtermina= l_0 + -chardev socket,id=3Dch0,host=3D0.0.0.0,port=3D2300,nowait,server,tn3270 + -device x-terminal3270,chardev=3Dch0,devno=3Dfe.0.000a,id=3Dterminal0 =20 * Start the guest. In the guest, use ``chccwdev -e 0.0.000a`` to enable the device. @@ -29,4 +39,25 @@ Example configuration =20 systemctl start serial-getty@3270-tty1.service =20 -This should get you an addtional tty for logging into the guest. + This should get you an additional tty for logging into the guest. + +* If you want to use the 3270 device as the Linux kernel console instead of + an additional tty, you can also append ``conmode=3D3270 condev=3D000a`` = to + the guest's kernel command line. The kernel then should use the 3270 as + console after the next boot. + +Restrictions +------------ + +3270 support is very basic. In particular: + +* Only one 3270 device is supported. + +* It has only been tested with Linux guests and the x3270 emulator. + +* TLS/SSL is not supported. + +* Resizing on reattach is not supported. + +* Multiple commands in one inbound buffer (for example, when the reset key + is pressed while the network is slow) are not supported. --=20 2.18.1