From nobody Fri Nov 14 18:16:54 2025 Delivered-To: importer@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+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1589468834; cv=none; d=zohomail.com; s=zohoarc; b=lJKUuqEDZYpaSx1TaxH2ek2I0q0ohirXhBiCOrbEZ6DqLwQPWCR6c5M/6Ku9h5ePLJr28fNFv65JVPoNPijqOORpe2MBXrZwtIYLi0/lX2Pdhw+2GS7fmHKs14zCL2DY2BVaPT2GplRETxrcXe+7DWjEuu42v7+8kuFTWsCmSQE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1589468834; 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=0fZcSJPuDm3rgQwqx1pq50sJQ8CKF/TiPFjSTzaQEVo=; b=QfdujMSoAvcKQaZofcFLp8V9Edyw8tnCTHrh1KQXTllGiD4YIerJuAIA9LXxs/5ldgKM0E01mKAxzfnK7+GkR9ip5jNQDUJVVh174WTZmDcBwxfynBtIFZWmUmzZ5nEkfo3o4hAHLz7AgjapSybbm5thbxLierREDfgm0suAKP4= 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+importer=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 1589468834960815.8266389040477; Thu, 14 May 2020 08:07:14 -0700 (PDT) Received: from localhost ([::1]:53728 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jZFS5-00051x-Vr for importer@patchew.org; Thu, 14 May 2020 11:07:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41594) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jZEwf-0003Kl-6V for qemu-devel@nongnu.org; Thu, 14 May 2020 10:34:45 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:29277 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 1jZEwe-0000sB-BA for qemu-devel@nongnu.org; Thu, 14 May 2020 10:34:44 -0400 Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-83-S9x9ucT0P4uXYOZjaKer1g-1; Thu, 14 May 2020 10:34:41 -0400 Received: by mail-wr1-f70.google.com with SMTP id 90so1656706wrg.23 for ; Thu, 14 May 2020 07:34:40 -0700 (PDT) Received: from x1w.redhat.com (17.red-88-21-202.staticip.rima-tde.net. [88.21.202.17]) by smtp.gmail.com with ESMTPSA id q18sm6219068wmk.28.2020.05.14.07.34.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 May 2020 07:34:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1589466882; 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=0fZcSJPuDm3rgQwqx1pq50sJQ8CKF/TiPFjSTzaQEVo=; b=KVOcHED6ZQg/Zv6GzaQpAR6YV4OxiGkN/lLlU+rE30xB/MyDnTGcQH6OeZrxvjGFcpFcgI CarvCf1I1gqZIveYXrPKg5JMuKflkzD5O2Nfi0mAwi4PltCCdHMTQHzziRsTHRJCs+ZIo4 SL6QCY9YXQ4Ih6SXHUWaWqU4XJMm+4I= X-MC-Unique: S9x9ucT0P4uXYOZjaKer1g-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=0fZcSJPuDm3rgQwqx1pq50sJQ8CKF/TiPFjSTzaQEVo=; b=eh2QxJsk6BynMgvJNeZJ4K+WdxR983xcGF2hFodkgdbXsBCvWnhTpcZoD6P7fRd04t Kbz/uYL51ZBsEsE84cfzT+8FnE5Ej5lD3hwoZzlB20ApZA1ti64dbptoIinRQ3crLAF2 fOzpnOA0Jg7fPnwX9D6n6LYpGF3tPJAuEgzQ0xP2lvDJhbneVODx1glzjnEQaDXDBa5P MNMD1+1vgyTvvItB0irb9D+DS7zT0kS9UhuONdqnlfyHiHtvHZZyOSyjM8D57RBS7wh0 Kct1cu8FxY1gcqvAGsovQbDmVdflf2dlNTQP6HKG6XTBDSysJ0X+ZMUReYedzzuxlZtV RGXw== X-Gm-Message-State: AGi0PuZlV9oUaclfnb9ze/4+fJ3yuWQax1BHgNTWCOdEk9XncZW33oeh GTCf2oWmWSbrPg5uwT+cNBSlEE4PBniuCFvktD7b1wL3s4Pg/iIUA9CkQSZ+MKlOvcFAu21nb8R GcOTFp85muSI7AsA= X-Received: by 2002:a1c:bbc5:: with SMTP id l188mr28304607wmf.163.1589466879630; Thu, 14 May 2020 07:34:39 -0700 (PDT) X-Google-Smtp-Source: APiQypK13PQWHWc8MbuQyiea9a4gfdZCEWxdWQmg3oPs/8377GIDTWyRIkPo5A9KzhduV8A3YkXXcQ== X-Received: by 2002:a1c:bbc5:: with SMTP id l188mr28304596wmf.163.1589466879479; Thu, 14 May 2020 07:34:39 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH 1/6] tests/fuzz/Makefile: Do not link code using unavailable devices Date: Thu, 14 May 2020 16:34:28 +0200 Message-Id: <20200514143433.18569-2-philmd@redhat.com> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20200514143433.18569-1-philmd@redhat.com> References: <20200514143433.18569-1-philmd@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8"; 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=philmd@redhat.com; helo=us-smtp-1.mimecast.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/13 22:25:46 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=0.001, 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=-0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN 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: Laurent Vivier , Thomas Huth , Alexander Bulekov , Bandan Das , Stefan Hajnoczi , Paolo Bonzini , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Some devices availability depends on CONFIG options. Use these options to only link tests when requested device is available. Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- tests/qtest/fuzz/Makefile.include | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/qtest/fuzz/Makefile.include b/tests/qtest/fuzz/Makefile.= include index cde3e9636c..f259d866c9 100644 --- a/tests/qtest/fuzz/Makefile.include +++ b/tests/qtest/fuzz/Makefile.include @@ -7,9 +7,9 @@ fuzz-obj-y +=3D tests/qtest/fuzz/fork_fuzz.o fuzz-obj-y +=3D tests/qtest/fuzz/qos_fuzz.o =20 # Targets -fuzz-obj-y +=3D tests/qtest/fuzz/i440fx_fuzz.o -fuzz-obj-y +=3D tests/qtest/fuzz/virtio_net_fuzz.o -fuzz-obj-y +=3D tests/qtest/fuzz/virtio_scsi_fuzz.o +fuzz-obj-$(CONFIG_PCI_I440FX) +=3D tests/qtest/fuzz/i440fx_fuzz.o +fuzz-obj-$(CONFIG_VIRTIO_NET) +=3D tests/qtest/fuzz/virtio_net_fuzz.o +fuzz-obj-$(CONFIG_SCSI) +=3D tests/qtest/fuzz/virtio_scsi_fuzz.o =20 FUZZ_CFLAGS +=3D -I$(SRC_PATH)/tests -I$(SRC_PATH)/tests/qtest =20 --=20 2.21.3 From nobody Fri Nov 14 18:16:54 2025 Delivered-To: importer@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+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1589468322; cv=none; d=zohomail.com; s=zohoarc; b=gL73F8QyPVrbNxSj0832tr0dZ3BGfYLrZwkDeqqd7oGJ7L7hvHRXp29cSNMWt6ukqoL/RHKKYSsfXQauO4HGwrQoWexjiG8tjBqnKri1ilJlJPtZFmIL04aOkhYtqGoznZGv5hCuwMLqRP9WG5dt1VFTZEesp2gAQVkciq5nkAc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1589468322; 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=7wMp/XuOBwT8pOPQVaxGqTdCRCcjqyuE5pzfypPMZ2U=; b=Z8C/1zNjiIdxu3gdcAXriVKNc0NQtdi6lKvINDGAdaC9lBFtUg/VslAUZjVMvzkiSXnSo7NlEV2YcqvzbZkDtyoiFQnIrJRoXVI+mC23cLBvD7fZwYoCHbqMbDSoJ8z5N8YNCqRm27H2ombcJLVjTKPviPQg+K0QC3MetqO6XGs= 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+importer=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 1589468322664859.8780347592676; Thu, 14 May 2020 07:58:42 -0700 (PDT) Received: from localhost ([::1]:46794 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jZFIs-0004mr-Tf for importer@patchew.org; Thu, 14 May 2020 10:57:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41598) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jZEwi-0003TH-Vq for qemu-devel@nongnu.org; Thu, 14 May 2020 10:34:49 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:50986 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 1jZEwh-0000tF-QC for qemu-devel@nongnu.org; Thu, 14 May 2020 10:34:48 -0400 Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-506-7Yrlo0N2Mr2-1KpsFrzAgQ-1; Thu, 14 May 2020 10:34:45 -0400 Received: by mail-wr1-f69.google.com with SMTP id g10so1670132wrr.10 for ; Thu, 14 May 2020 07:34:45 -0700 (PDT) Received: from x1w.redhat.com (17.red-88-21-202.staticip.rima-tde.net. [88.21.202.17]) by smtp.gmail.com with ESMTPSA id h1sm40860124wme.42.2020.05.14.07.34.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 May 2020 07:34:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1589466887; 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=7wMp/XuOBwT8pOPQVaxGqTdCRCcjqyuE5pzfypPMZ2U=; b=bs6cLFRkfj7Bune6ns/LgYLcaQbWav1UkdD5sWnX9x8NqKKOVpW6k++BBOucG7iENIVlSz h4FIPNUKyUw0CxPQBBRe8jWv3bKyV1TtkhZRF3uS4lxNnZfwgbNBxhRZKe2QU2IXeMIk4G 2NLqz6xRUTgF3HUo2YdQI5Sky44xr6E= X-MC-Unique: 7Yrlo0N2Mr2-1KpsFrzAgQ-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=7wMp/XuOBwT8pOPQVaxGqTdCRCcjqyuE5pzfypPMZ2U=; b=A2lNT4TyKebbm68Dese7vAr0QCLzi2uuJ3WTcPueco8O0/Pp0iv7rbt1PCI4Fr3GI3 FAgRjxf2EbUnJKVET6e2EV5/c5UGdNYjt7i7s5ZbokaDDqoeo1c/nzxeCO/Zsuj28IN0 o9AZZJ+0/Z4krDiH9x3qjZPwu3WUQ/mBMrJd6ObKb4v/5dyYEa1qtNg1npF23siq0gHf fxImr6XAAKwDnfTtqHwRpp2F1+4r0PwB9D3Q007F9oIYzP/qSb8SPcypfQURfKNLuN/9 cgo8EUhKok0nwY2b6D/muAX9k2zUQ4db54QXKYS0J9J4W2ZBl/w0ilRLMeLQgFeOHV5a fu2g== X-Gm-Message-State: AOAM531e+D0vqNiJh9PuLMo8Q+GevI8CkpX9D4NSFIc9JwgAMESH3wMq RXU01CHSFPyO/MDGNvi1EI90GGVtGLFJV+mHRv2t2AzYoDxKS8ZXJEjFvA6oKcvriEVO7HCHz+J CiLmhPqvb/0NqlVM= X-Received: by 2002:a5d:614b:: with SMTP id y11mr6175874wrt.77.1589466884269; Thu, 14 May 2020 07:34:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx0HLo6T+C3GXvIMYkzIEsH9/8M7eocEEV031RX83rgxNeAAkwQTaYu0mnxQVUxzzcpWtmqMg== X-Received: by 2002:a5d:614b:: with SMTP id y11mr6175852wrt.77.1589466884075; Thu, 14 May 2020 07:34:44 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH 2/6] Makefile: List fuzz targets in 'make help' Date: Thu, 14 May 2020 16:34:29 +0200 Message-Id: <20200514143433.18569-3-philmd@redhat.com> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20200514143433.18569-1-philmd@redhat.com> References: <20200514143433.18569-1-philmd@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8"; 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=philmd@redhat.com; helo=us-smtp-1.mimecast.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/13 22:25:42 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=0.001, 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=-0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN 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: Laurent Vivier , Thomas Huth , Alexander Bulekov , Bandan Das , Stefan Hajnoczi , Paolo Bonzini , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) List softmmu fuzz targets in 'make help' output: $ make help ... Architecture specific targets: aarch64-softmmu/all - Build for aarch64-softmmu aarch64-softmmu/fuzz - Build fuzzer for aarch64-softmmu alpha-softmmu/all - Build for alpha-softmmu alpha-softmmu/fuzz - Build fuzzer for alpha-softmmu arm-softmmu/all - Build for arm-softmmu arm-softmmu/fuzz - Build fuzzer for arm-softmmu ... Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 34275f57c9..40e4f7677b 100644 --- a/Makefile +++ b/Makefile @@ -1252,7 +1252,11 @@ endif @$(if $(TARGET_DIRS), \ echo 'Architecture specific targets:'; \ $(foreach t, $(TARGET_DIRS), \ - $(call print-help-run,$(t)/all,Build for $(t));) \ + $(call print-help-run,$(t)/all,Build for $(t)); \ + $(if $(CONFIG_FUZZ), \ + $(if $(findstring softmmu,$(t)), \ + $(call print-help-run,$(t)/fuzz,Build fuzzer for $(t)); \ + ))) \ echo '') @$(if $(TOOLS), \ echo 'Tools targets:'; \ --=20 2.21.3 From nobody Fri Nov 14 18:16:54 2025 Delivered-To: importer@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+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1589468303; cv=none; d=zohomail.com; s=zohoarc; b=kxLwwHvmZC3iKv6rFvhO5/F7D31B8VIXP8gewgRqpKI8lPEkduPjt/HLoXa/30L+Rf1nKrXtgfS7kNOPmANlC3S5Bfd/M5r3P8eD9R+rqKoMZA/uQPsGpUSvexNQ4cPM3pxWkhiJZz0O2VLA7Q6NcH+Uz2UBUA3SDQxrDfNT9N8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1589468303; 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=XQICVOUmn0GmgHY69lut7hQVpNY+iYPUxS659CEWKSg=; b=EOp3EbibvcI45j58yd7Sycq8k3dzaHai7A3vUCOL6hW9G4mGSE9j8/GELtuqkpExw9mme8G8fhYLpFljFvHOvrdT/font9vXtwjgT2aoAFeMHYycAksEWubUmjhqBlO5YOTCckQAFRzKhWBOW2P+12Egc76MCu97gDI5/uojWtc= 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+importer=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 1589468303416437.9305648728863; Thu, 14 May 2020 07:58:23 -0700 (PDT) Received: from localhost ([::1]:49804 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jZFJW-0006Es-3l for importer@patchew.org; Thu, 14 May 2020 10:58:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41610) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jZEwo-0003ei-H6 for qemu-devel@nongnu.org; Thu, 14 May 2020 10:34:54 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:44462 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 1jZEwn-0000vs-Cv for qemu-devel@nongnu.org; Thu, 14 May 2020 10:34:54 -0400 Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-278-IRv18QBPNimhnSzOCEuvig-1; Thu, 14 May 2020 10:34:50 -0400 Received: by mail-wm1-f72.google.com with SMTP id x11so3910930wmc.9 for ; Thu, 14 May 2020 07:34:50 -0700 (PDT) Received: from x1w.redhat.com (17.red-88-21-202.staticip.rima-tde.net. [88.21.202.17]) by smtp.gmail.com with ESMTPSA id u10sm17279760wmc.31.2020.05.14.07.34.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 May 2020 07:34:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1589466892; 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=XQICVOUmn0GmgHY69lut7hQVpNY+iYPUxS659CEWKSg=; b=eYFEOY+cfzSu4GPq/1te9cqDguci/MRKlqplynf9UY2j/uY7WG8pI7zt1QxGo8w2wzdpg4 GEDPlmjAe1sqojIZzNiT+BWD/6r8hDuALx6vQcqeCTRjRbgH5vVvSX+RfqG1cSkV9QyR9i 4TK2MXqBPCTqKBNCcxEJT3SSkVENSiI= X-MC-Unique: IRv18QBPNimhnSzOCEuvig-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=XQICVOUmn0GmgHY69lut7hQVpNY+iYPUxS659CEWKSg=; b=CDKAVvRXsV9niaj/ld2ZsYyiYCYV611jBluxgn67qWhjJMJfXKs+9UFILkwD3FuthH HAm1D7DzYpynTX+4VnP9y7clZpxjr9kaS3P1whI5RAh3OczvTsVPzrdA5KvzZJNGobIw UpMXOmAHP2Re2WCyxeGnRBQ8blLe42ORxw6O+VDAOlAIuUReRT2TOm8ObFIxWPM4qOiq KhP9xQrrY8i6cEXPO9QJ2yeYsVJCQp4f6Unv0z7fiCuePnVbsrIX1YNcRtpfNRyygDcE vZpY3tr/IAQ9B6soDnXvelzQ7gg3MfYVA6zcVlwWKuuEBE/1hMjsDBQJ4wM7TMMkiWkh wW8Q== X-Gm-Message-State: AOAM531wObtQxRVwTocNG1yFxZrmFjwib2p1h8R4diqSdAKzmH6RjpGe 8MH2Fra33tYNST5Of37yU5HE5YpWRI2O/bQvNP9UWGjWOz3UIq6sCqaJz36w4d0rqlKlYU8F6lS dCTAvDWh2wVEmOtg= X-Received: by 2002:adf:face:: with SMTP id a14mr5701245wrs.397.1589466889177; Thu, 14 May 2020 07:34:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzIviuCGVPPeKwNGTvWdOys/g/tHCSHkAAH2BJ5U5uwIYtCpJ90NkD6twCV15ZejiWE3CQXFg== X-Received: by 2002:adf:face:: with SMTP id a14mr5701225wrs.397.1589466888977; Thu, 14 May 2020 07:34:48 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH 3/6] tests/fuzz: Add missing space in test description Date: Thu, 14 May 2020 16:34:30 +0200 Message-Id: <20200514143433.18569-4-philmd@redhat.com> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20200514143433.18569-1-philmd@redhat.com> References: <20200514143433.18569-1-philmd@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8"; 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=philmd@redhat.com; helo=us-smtp-1.mimecast.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/13 22:25:42 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=0.001, 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=-0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN 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: Laurent Vivier , Thomas Huth , Alexander Bulekov , Bandan Das , Stefan Hajnoczi , Paolo Bonzini , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- Note: The descriptions are not very accurate (copy/paste?) --- tests/qtest/fuzz/i440fx_fuzz.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/qtest/fuzz/i440fx_fuzz.c b/tests/qtest/fuzz/i440fx_fuzz.c index ab5f112584..96fed9ff12 100644 --- a/tests/qtest/fuzz/i440fx_fuzz.c +++ b/tests/qtest/fuzz/i440fx_fuzz.c @@ -159,7 +159,7 @@ static void register_pci_fuzz_targets(void) /* Uses simple qtest commands and reboots to reset state */ fuzz_add_target(&(FuzzTarget){ .name =3D "i440fx-qtest-reboot-fuzz", - .description =3D "Fuzz the i440fx using raw qtest commands= and" + .description =3D "Fuzz the i440fx using raw qtest commands= and " "rebooting after each run", .get_init_cmdline =3D i440fx_argv, .fuzz =3D i440fx_fuzz_qtest}); @@ -167,7 +167,7 @@ static void register_pci_fuzz_targets(void) /* Uses libqos and forks to prevent state leakage */ fuzz_add_qos_target(&(FuzzTarget){ .name =3D "i440fx-qos-fork-fuzz", - .description =3D "Fuzz the i440fx using raw qtest commands= and" + .description =3D "Fuzz the i440fx using raw qtest commands= and " "rebooting after each run", .pre_vm_init =3D &fork_init, .fuzz =3D i440fx_fuzz_qos_fork,}, @@ -182,7 +182,7 @@ static void register_pci_fuzz_targets(void) */ fuzz_add_qos_target(&(FuzzTarget){ .name =3D "i440fx-qos-noreset-fuzz", - .description =3D "Fuzz the i440fx using raw qtest commands= and" + .description =3D "Fuzz the i440fx using raw qtest commands= and " "rebooting after each run", .fuzz =3D i440fx_fuzz_qos,}, "i440FX-pcihost", --=20 2.21.3 From nobody Fri Nov 14 18:16:54 2025 Delivered-To: importer@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+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1589468535; cv=none; d=zohomail.com; s=zohoarc; b=cJ4pkcUPAtNaS/bKcStQcsgS7mX6zapH7ZGN3/sYp7a32NqcfNIvwvNU9AXVrNumDSf6pxVI/vFSvDivBDkoPKDt89XX5pxKCRgqFSd0Q6RHXq1M87RRCc4TtXk8LLiSXGJz6REuPdYePH/lGAjIVZcSWCU5K8LQ+t9Scumv+Gw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1589468535; 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=lZ1u6qNZotSgU2037p6zpII9seREemya6EtGwZgs+40=; b=LwVCHeC2NX2MLIuN1nZvwAYt4gwzav+vQBQbKJ2EUfjr+FdgTBRSnzcJZtgVVZTKSzRF5y7lJI8HL0zHI+iW44AtLmaZSleYzX36WMN5cndzOKpbJiha8gqAQkJZ+f263LuEGDT3osar9aHmksXdwD1+hS5+o43obV3cKXaavlk= 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+importer=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 1589468535476759.7064914200821; Thu, 14 May 2020 08:02:15 -0700 (PDT) Received: from localhost ([::1]:34150 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jZFNG-0003iD-2q for importer@patchew.org; Thu, 14 May 2020 11:02:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41618) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jZEws-0003jB-4C for qemu-devel@nongnu.org; Thu, 14 May 2020 10:34:58 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:32354 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 1jZEwr-0000yR-8W for qemu-devel@nongnu.org; Thu, 14 May 2020 10:34:57 -0400 Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-362-L44-yClhM2ODLziVKGjt1A-1; Thu, 14 May 2020 10:34:55 -0400 Received: by mail-wm1-f72.google.com with SMTP id q5so13575547wmc.9 for ; Thu, 14 May 2020 07:34:54 -0700 (PDT) Received: from x1w.redhat.com (17.red-88-21-202.staticip.rima-tde.net. [88.21.202.17]) by smtp.gmail.com with ESMTPSA id s14sm38387741wmh.18.2020.05.14.07.34.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 May 2020 07:34:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1589466896; 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=lZ1u6qNZotSgU2037p6zpII9seREemya6EtGwZgs+40=; b=bh90yliIuMyuWCFH3bMIFpvrbYr+lEBYqUJdd9zNt5MUskEB4YxZF/9wk72fx7GvpmyHmI ixWGKSezsU73dcWa+jgfGTRXdE+thPqxLTiAaju+VsQa1mXfZen9NizpbpLx/X5KofyAM9 rrusECA4cysfb6HfuxusOlMY/Xfi3TI= X-MC-Unique: L44-yClhM2ODLziVKGjt1A-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=lZ1u6qNZotSgU2037p6zpII9seREemya6EtGwZgs+40=; b=Sd8RueTkmd+W2uHFWsXDFA2K7pQmucPDUELBNtSK6Tpb0khoNab8OCuvk9rvjZ4BEU cNTmwbvVA6Kz5o/62avA+fZwkNhBjCsMrS9X9/ob42G6Bnsp8YoQM9zkLXZIrFFu5Xhw twgoDoePjBNgY+lit2kP9z03hXK46OIKFeR14x2rPPRCe1WTFJilnMRfd+m6HZXKxcPe kA0BWvi+D7uoVVJ+S4tQ+RX1U7VeO80ataym0whmZUwFSk9GnwUs+kLBJYSZR3mft0NX JKPcZUIgtSv3hSevS2rE2QDqErDbwiZHALsFC5iU1nWf6zeWDvks/ujiF0dbCeArXmHb yJIw== X-Gm-Message-State: AOAM530gX/pwFuxxwnDhf8WJaRaovfE8ufAH3t7CvAEKOkY2ryXIZrgy 72Ppvou1QDEYp9FD2Qpobqv3c+4nOhlF9D6ocGjXnJHyKsiybyK9cUzvyYwBra2TUUq1NyOWZzC 5bhN+DcBllljNTdU= X-Received: by 2002:a5d:5105:: with SMTP id s5mr5887749wrt.202.1589466893760; Thu, 14 May 2020 07:34:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwYhEwP2vSKQSTCH6UQ0+PvQcHOfYvpcR5pJ8b2UKz9ijVcmwRgA+DFo8SxlApETN+s1XUYkg== X-Received: by 2002:a5d:5105:: with SMTP id s5mr5887740wrt.202.1589466893614; Thu, 14 May 2020 07:34:53 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH 4/6] tests/fuzz: Remove unuseful/unused typedefs Date: Thu, 14 May 2020 16:34:31 +0200 Message-Id: <20200514143433.18569-5-philmd@redhat.com> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20200514143433.18569-1-philmd@redhat.com> References: <20200514143433.18569-1-philmd@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8"; 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=philmd@redhat.com; helo=us-smtp-1.mimecast.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/13 22:25:42 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=0.001, 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=-0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN 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: Laurent Vivier , Thomas Huth , Alexander Bulekov , Bandan Das , Stefan Hajnoczi , Paolo Bonzini , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) These typedefs are not used. Use a simple structure, remote the typedefs. Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- tests/qtest/fuzz/i440fx_fuzz.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/tests/qtest/fuzz/i440fx_fuzz.c b/tests/qtest/fuzz/i440fx_fuzz.c index 96fed9ff12..c197b026db 100644 --- a/tests/qtest/fuzz/i440fx_fuzz.c +++ b/tests/qtest/fuzz/i440fx_fuzz.c @@ -45,12 +45,11 @@ static void i440fx_fuzz_qtest(QTestState *s, * loop over the Data, breaking it up into actions. each action has an * opcode, address offset and value */ - typedef struct QTestFuzzAction { + struct { uint8_t opcode; uint8_t addr; uint32_t value; - } QTestFuzzAction; - QTestFuzzAction a; + } a; =20 while (Size >=3D sizeof(a)) { /* make a copy of the action so we can normalize the values in-pla= ce */ @@ -91,19 +90,18 @@ static void i440fx_fuzz_qos(QTestState *s, * Same as i440fx_fuzz_qtest, but using QOS. devfn is incorporated int= o the * value written over Port IO */ - typedef struct QOSFuzzAction { + struct { uint8_t opcode; uint8_t offset; int devfn; uint32_t value; - } QOSFuzzAction; + } a; =20 static QPCIBus *bus; if (!bus) { bus =3D qpci_new_pc(s, fuzz_qos_alloc); } =20 - QOSFuzzAction a; while (Size >=3D sizeof(a)) { memcpy(&a, Data, sizeof(a)); switch (a.opcode % ACTION_MAX) { --=20 2.21.3 From nobody Fri Nov 14 18:16:54 2025 Delivered-To: importer@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+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1589468375; cv=none; d=zohomail.com; s=zohoarc; b=nQOhc9ztRY18VKNZPdOrbg7B+LTqd3qRODwUxNhXi2nDWnNb4cXO5e6ckxoYQWZJLEt1Qs2dh1akOb09z6gW9612O0LDs+7Lat78Gq2OSheG6e4prh71qCfxFzScIUV4ArdcaEpPMGXPTzSPZQUrkZkx1Wq7I2DWaeSvv5MZrW4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1589468375; 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=dKBg489UvBQaihTp0WQ97c7cEJhAfL3iNmIIgh7rIBI=; b=IANWfKAsawDTq4eE00X3UjrY4venDeXKgf3EN5qxp30OBoRvl9hs6+GDxy467UJRIj/PlQMuhsSLmFzzHUL6cdc9dhJOl3tmAqZmiRuFaYdNwMb2C/muZZzscRXBHCE1y1bO9gr3uy+ZwyznkOotR0+pxSyjYfjFZsbs/T9OfwA= 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+importer=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 1589468375333304.8230780595079; Thu, 14 May 2020 07:59:35 -0700 (PDT) Received: from localhost ([::1]:55498 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jZFKg-0000Iw-Gz for importer@patchew.org; Thu, 14 May 2020 10:59:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41644) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jZEx0-0003sG-KJ for qemu-devel@nongnu.org; Thu, 14 May 2020 10:35:07 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:46520 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 1jZEww-00010I-48 for qemu-devel@nongnu.org; Thu, 14 May 2020 10:35:02 -0400 Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-59-Y7myE9dnPlWAFM0MbpGuog-1; Thu, 14 May 2020 10:34:59 -0400 Received: by mail-wr1-f71.google.com with SMTP id w9so1682629wrr.3 for ; Thu, 14 May 2020 07:34:59 -0700 (PDT) Received: from x1w.redhat.com (17.red-88-21-202.staticip.rima-tde.net. [88.21.202.17]) by smtp.gmail.com with ESMTPSA id s8sm4329464wrg.34.2020.05.14.07.34.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 May 2020 07:34:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1589466901; 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=dKBg489UvBQaihTp0WQ97c7cEJhAfL3iNmIIgh7rIBI=; b=DxjpFmBE88Z4jue2nhjCxliGmEn1p8MonFxINONyJJtLAiI1/6E4MYhn9oUqMsYXA0BDqt gasLGqtqfwDVWGTi0R4UzVzjbIxutFjL/ggSAUt/Pcw9r0/M2Lu1RLA8YjYIy1R2Ql8FuR 7D8ZnrpMm4HYJATD9LV881dzk6fXe7A= X-MC-Unique: Y7myE9dnPlWAFM0MbpGuog-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=dKBg489UvBQaihTp0WQ97c7cEJhAfL3iNmIIgh7rIBI=; b=M6mhi2HsQsqpuIkhE9oX/e5bbane5/fHDzoexacsFPeq+unnIgVbfUUOki5xRaEb5a pJl1ZSCK/0wP93MO8jBG1YgU7Ny3n/AlMZak6fW6r6zbW94Ck9k7MvMbbpUHSMTwmyps 1ZTcpSuPnEujP1zEQ7Z9zaUE5zhejcD0jHYB648oMCDJWEIjQyVttaIc9yXKKYIhGwwQ T+RKxOsjJmkN+Hr6v0n6kvH+wKrQH3znW20kw4SxIDjyq0gKPNUa2JImhjP6TWHjx5kx 6XO//b6+YLglWPyvc0+5a2KbDzctxSjvs47A+zNz1H6wfPLr38yxQvnYJp7TsPbzlIFo rgZg== X-Gm-Message-State: AOAM531yG8H5h1dnLgClKJoPNRLHKd8lbqu4l0k2HszfOl2eKXeRSKzO OH02EKdUcRSkl+s0SX/6fbh+k7gBC1gn75VaqNyAcSq1Ac+AaSsrF8qZT80X9r2Na/rptDe5B7x s35tAnITsCn20/is= X-Received: by 2002:adf:fac5:: with SMTP id a5mr6191433wrs.210.1589466898398; Thu, 14 May 2020 07:34:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzf4mP97oGpyO8sYY7ImQ/EDLo5CIbK8M5c6ZcsL1f4Kc7V5VEfyWI02QONOGNA9XmcI3jrfw== X-Received: by 2002:adf:fac5:: with SMTP id a5mr6191419wrs.210.1589466898241; Thu, 14 May 2020 07:34:58 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH 5/6] tests/fuzz: Extract pciconfig_fuzz_qos() method Date: Thu, 14 May 2020 16:34:32 +0200 Message-Id: <20200514143433.18569-6-philmd@redhat.com> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20200514143433.18569-1-philmd@redhat.com> References: <20200514143433.18569-1-philmd@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8"; 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=philmd@redhat.com; helo=us-smtp-1.mimecast.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/13 22:25:46 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=0.001, 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=-0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN 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: Laurent Vivier , Thomas Huth , Alexander Bulekov , Bandan Das , Stefan Hajnoczi , Paolo Bonzini , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Extract the generic pciconfig_fuzz_qos() method from i440fx_fuzz_qos(). This will help to write tests not specific to the i440FX controller. Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- tests/qtest/fuzz/i440fx_fuzz.c | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/tests/qtest/fuzz/i440fx_fuzz.c b/tests/qtest/fuzz/i440fx_fuzz.c index c197b026db..558fa17c93 100644 --- a/tests/qtest/fuzz/i440fx_fuzz.c +++ b/tests/qtest/fuzz/i440fx_fuzz.c @@ -84,7 +84,7 @@ static void i440fx_fuzz_qtest(QTestState *s, flush_events(s); } =20 -static void i440fx_fuzz_qos(QTestState *s, +static void pciconfig_fuzz_qos(QTestState *s, QPCIBus *bus, const unsigned char *Data, size_t Size) { /* * Same as i440fx_fuzz_qtest, but using QOS. devfn is incorporated int= o the @@ -97,11 +97,6 @@ static void i440fx_fuzz_qos(QTestState *s, uint32_t value; } a; =20 - static QPCIBus *bus; - if (!bus) { - bus =3D qpci_new_pc(s, fuzz_qos_alloc); - } - while (Size >=3D sizeof(a)) { memcpy(&a, Data, sizeof(a)); switch (a.opcode % ACTION_MAX) { @@ -130,6 +125,19 @@ static void i440fx_fuzz_qos(QTestState *s, flush_events(s); } =20 +static void i440fx_fuzz_qos(QTestState *s, + const unsigned char *Data, + size_t Size) +{ + static QPCIBus *bus; + + if (!bus) { + bus =3D qpci_new_pc(s, fuzz_qos_alloc); + } + + pciconfig_fuzz_qos(s, bus, Data, Size); +} + static void i440fx_fuzz_qos_fork(QTestState *s, const unsigned char *Data, size_t Size) { if (fork() =3D=3D 0) { --=20 2.21.3 From nobody Fri Nov 14 18:16:54 2025 Delivered-To: importer@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+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1589468961; cv=none; d=zohomail.com; s=zohoarc; b=nvpuje8iG7VCkyu3f+ximPSyJTogQTGnX/3U22I1TdCJU0egJrTd8yFg5BIbGGWmgTtwL4kdFYy5hjApSR4nneuO7a7gExc8QvbzWJaEmVAtaZYFBF/lK6PaY5Epw6q+ppzbwzfzGSQIiiVCytN0hay9XnpuiAdpgC0ivub5Zks= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1589468961; 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=Q3QIbJXM9pRHScH3rDPsZVXm/otU1/pByMMT1prfehI=; b=gEIxgS6aZ2uJGmn/V31qxE5LNCjkoQVKs7q8gnBQ13ZO+BMTEE4cA1Wj/8RQUlOXZSXZ96BNkz6fFhTd5rrHcDV+GDyrvNE9BPnH0cX608mKI5hWY3cuQNyDXaFcTZEJJ/fJLmDbtHtpIEWn5y4EeqKjR+728SslXS5mlciDHig= 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+importer=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 1589468961334392.94909019693443; Thu, 14 May 2020 08:09:21 -0700 (PDT) Received: from localhost ([::1]:33578 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jZFU8-0008JK-9c for importer@patchew.org; Thu, 14 May 2020 11:09:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41650) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jZEx1-0003tU-VP for qemu-devel@nongnu.org; Thu, 14 May 2020 10:35:08 -0400 Received: from us-smtp-1.mimecast.com ([207.211.31.81]:24490 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 1jZEx1-00013U-1x for qemu-devel@nongnu.org; Thu, 14 May 2020 10:35:07 -0400 Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-509-6LXpoPmPPH2jSa8KQ72AlQ-1; Thu, 14 May 2020 10:35:04 -0400 Received: by mail-wm1-f70.google.com with SMTP id a67so7443586wme.6 for ; Thu, 14 May 2020 07:35:04 -0700 (PDT) Received: from x1w.redhat.com (17.red-88-21-202.staticip.rima-tde.net. [88.21.202.17]) by smtp.gmail.com with ESMTPSA id t4sm4882445wri.54.2020.05.14.07.35.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 May 2020 07:35:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1589466906; 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=Q3QIbJXM9pRHScH3rDPsZVXm/otU1/pByMMT1prfehI=; b=KHNy4d5yT7L7cr7QYULeo2hfZuWf358vU0NJCY8Ih+SOMIhP/c7xxT6DddH062B+w2KqMN uc/k2RYDv2QNp3t/S3KCJIxzgt+dtqbGwwEFnCUjYM+Fp7i4O3f2WymNMHcLCvQXsphKP4 MtapFwmFbGWy4e8pgDTjCXeYJPQSHC8= X-MC-Unique: 6LXpoPmPPH2jSa8KQ72AlQ-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Q3QIbJXM9pRHScH3rDPsZVXm/otU1/pByMMT1prfehI=; b=Lvd5O7Sl5Sqs2QVycHRsYrtEnzwk8475E1JZPF+nU7DFwvA7UMZthHdFx3Xxg+nUrU +V21z9eJKIFtZ7wlwki4fxlGt9CwDTFFn2PLF64dhXaWuDVMWF93vBy7aTA9wb8Bp/AW Sj7GAY41yxM+9/VUZdh0Utlqaw/Q46vkP4ollQRC8UNEdlVwJRdIqm3H+JrEtfo3HADz GRf+7OmlTJfAngC21hkav8BYANJI9jm4DH9Q1jAckng1ESjhzPxO6FP+qj5S9WFojdo8 Qb4NTPmbhGwXflIvuoGkRtt+A2smTBx2aAwOn9zwpLBT255bjc/3wNTouU2XEaLmNJS3 hZYA== X-Gm-Message-State: AGi0PubiR8SQvsUuzUCsjeKW8CHnKLjX+W++B7ZgVqkwVea8Bgsh9/aH /Qn40czKcnrYDMNhl3H3EwInS4bQCp2j5JtNDHFOq+meHJHNLMQxubyEBhulJm4eumjqqe/Vxt8 b7lvGHxIDENzrLUo= X-Received: by 2002:a1c:7513:: with SMTP id o19mr46198977wmc.9.1589466903178; Thu, 14 May 2020 07:35:03 -0700 (PDT) X-Google-Smtp-Source: APiQypIONK3Ds0IOOywOiutQSJ69nJA31MfqA8Tmk9/E8YaCrFKUG562DUxyD3H+uKCZezZNxa2ckA== X-Received: by 2002:a1c:7513:: with SMTP id o19mr46198955wmc.9.1589466902941; Thu, 14 May 2020 07:35:02 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH 6/6] tests/fuzz: Extract ioport_fuzz_qtest() method Date: Thu, 14 May 2020 16:34:33 +0200 Message-Id: <20200514143433.18569-7-philmd@redhat.com> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20200514143433.18569-1-philmd@redhat.com> References: <20200514143433.18569-1-philmd@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8"; 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=philmd@redhat.com; helo=us-smtp-delivery-1.mimecast.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/13 22:25:46 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=0.001, 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=-0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN 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: Laurent Vivier , Thomas Huth , Alexander Bulekov , Bandan Das , Stefan Hajnoczi , Paolo Bonzini , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Extract generic ioport_fuzz_qtest() method from i440fx_fuzz_qtest(). This will help to write tests not specific to the i440FX controller. Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- tests/qtest/fuzz/i440fx_fuzz.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/tests/qtest/fuzz/i440fx_fuzz.c b/tests/qtest/fuzz/i440fx_fuzz.c index 558fa17c93..bcd6769b4c 100644 --- a/tests/qtest/fuzz/i440fx_fuzz.c +++ b/tests/qtest/fuzz/i440fx_fuzz.c @@ -39,7 +39,7 @@ enum action_id { ACTION_MAX }; =20 -static void i440fx_fuzz_qtest(QTestState *s, +static void ioport_fuzz_qtest(QTestState *s, const unsigned char *Data, size_t Size) { /* * loop over the Data, breaking it up into actions. each action has an @@ -84,10 +84,17 @@ static void i440fx_fuzz_qtest(QTestState *s, flush_events(s); } =20 +static void i440fx_fuzz_qtest(QTestState *s, + const unsigned char *Data, + size_t Size) +{ + ioport_fuzz_qtest(s, Data, Size); +} + static void pciconfig_fuzz_qos(QTestState *s, QPCIBus *bus, const unsigned char *Data, size_t Size) { /* - * Same as i440fx_fuzz_qtest, but using QOS. devfn is incorporated int= o the + * Same as ioport_fuzz_qtest, but using QOS. devfn is incorporated int= o the * value written over Port IO */ struct { --=20 2.21.3