From nobody Tue May 7 19:01:17 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=1616347336; cv=none; d=zohomail.com; s=zohoarc; b=TWYeVlqureH9ivXGEo8qK+Gl++a2tclsox6v1oM0JwqU1wdL9ykXOIuWwpD9tJRpzpMCuvxcCCCNSfZ6ZDFuvV9N91+mgS5+MyXEXA3S3ROPSUZn/CA86tnHqCJxSZn4JzOgGdn8A7G3Ail3RNUbYlKZUqx9n9cwPK2TFt1EXZ4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1616347336; 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=EO6Fw4yK5qsJ1EoHIreQTy0BukXrVQzeo/4y1pbu9YU=; b=HGHAiBC/qA9DsLu1b8kUQxbobOjR8BlqugHLjeTzYT5XnuEhG+K7oiklZZvHRdDSTMTI/RDrp4HoeZ4kDAhIOgWlKqnfQHs1CDvCxBZIktb+w1TC11jkvx3fhZST4UGKx4IgIePGjf/xmU7ZwETX28Q1wlZaMATbtOlz/3efj9c= 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 161634733683231.506027038829643; Sun, 21 Mar 2021 10:22:16 -0700 (PDT) Received: from localhost ([::1]:45810 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lO1mJ-0001xH-NR for importer@patchew.org; Sun, 21 Mar 2021 13:22:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56420) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lO1j2-0007NT-8d for qemu-devel@nongnu.org; Sun, 21 Mar 2021 13:18:52 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:52193) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1lO1is-0005Qt-Pl for qemu-devel@nongnu.org; Sun, 21 Mar 2021 13:18: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-469-ssBhl1GnPeyBymHc-vw0Vw-1; Sun, 21 Mar 2021 13:18:38 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id B11D5190A7A1; Sun, 21 Mar 2021 17:18:37 +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 D99B05D9CD; Sun, 21 Mar 2021 17:18:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1616347121; 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=EO6Fw4yK5qsJ1EoHIreQTy0BukXrVQzeo/4y1pbu9YU=; b=U3tqw7HbBa2jP97x5hAMIJAm4PVSXXNq7BhFa5HWl1QUkwOm9FjLeibZqqRfwLX39aiZDC zA/jl116lXahezQhXNt/Tdu+04+XHB0RYJtbESaTLW/hKW2zfRQYJf6IcGMZ0Jy1MZMcnF y4gTCBPwdS0CRCzj0nixJjW0uZxagOY= X-MC-Unique: ssBhl1GnPeyBymHc-vw0Vw-1 From: Thomas Huth To: qemu-devel@nongnu.org, Peter Maydell Subject: [PULL 1/5] docs/devel/testing.rst: Fix references to unit tests Date: Sun, 21 Mar 2021 18:18:29 +0100 Message-Id: <20210321171833.20736-2-thuth@redhat.com> In-Reply-To: <20210321171833.20736-1-thuth@redhat.com> References: <20210321171833.20736-1-thuth@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=thuth@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=216.205.24.124; envelope-from=thuth@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=-0.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-Type: text/plain; charset="utf-8" From: Wainer dos Santos Moschetta With the recent move of the unit tests to tests/unit directory some instructions under the "Unit tests" section became imprecise, which are fixed by this change. Fixes: da668aa15b99 ("tests: Move unit tests into a separate directory") Signed-off-by: Wainer dos Santos Moschetta Reviewed-by: Thomas Huth Reviewed-by: Willian Rampazzo Message-Id: <20210318174407.2299930-1-wainersm@redhat.com> Signed-off-by: Thomas Huth --- docs/devel/testing.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/devel/testing.rst b/docs/devel/testing.rst index 1434a50cc4..1da4c4e4c4 100644 --- a/docs/devel/testing.rst +++ b/docs/devel/testing.rst @@ -34,17 +34,17 @@ If you are writing new code in QEMU, consider adding a = unit test, especially for utility modules that are relatively stateless or have few dependencies= . To add a new unit test: =20 -1. Create a new source file. For example, ``tests/foo-test.c``. +1. Create a new source file. For example, ``tests/unit/foo-test.c``. =20 2. Write the test. Normally you would include the header file which exports the module API, then verify the interface behaves as expected from your test. The test code should be organized with the glib testing framework. Copying and modifying an existing test is usually a good idea. =20 -3. Add the test to ``tests/meson.build``. The unit tests are listed in a +3. Add the test to ``tests/unit/meson.build``. The unit tests are listed i= n a dictionary called ``tests``. The values are any additional sources and dependencies to be linked with the test. For a simple test whose source - is in ``tests/foo-test.c``, it is enough to add an entry like:: + is in ``tests/unit/foo-test.c``, it is enough to add an entry like:: =20 { ... --=20 2.27.0 From nobody Tue May 7 19:01:17 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=1616347291; cv=none; d=zohomail.com; s=zohoarc; b=iaJPQngDDcmyZ5EuTewFjyUZPYjfFlHail8f2GnFEu2n1/qdYx5HWbxM4e+d6J6mRvIWb+rft8pFIRCLW9G7EL6H2SVOlfsZwY3HO7gG/u6DxqYhN9vPHHvg/mHtg3oVAgg/z9PDWAZd37z79liisw8f96UIzwwEMBATazUYppA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1616347291; 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=02DGbrUqtjcx+KvCxlPP539DjQ82K7xeYKUDqDDUnwQ=; b=LbpNm8GqOiRt6MFDt0B3QPwfQ58+/8cbw6gSFlhJ6ld0OdTVYTI/zhTB4skBYL9xtl8W95E5kgaokIExGZ2w6xys03SJ1Onr15Bra9W+Z7taMzTWHbsJqmMpYsAO7gDIyj2mJm5s+yKaf35VLlzSAOrMTKoXtmP/O4jAMRZNx14= 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 16163472911997.145705546225372; Sun, 21 Mar 2021 10:21:31 -0700 (PDT) Received: from localhost ([::1]:43096 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lO1lZ-0000oG-Nu for importer@patchew.org; Sun, 21 Mar 2021 13:21:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56404) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lO1j0-0007NK-SS for qemu-devel@nongnu.org; Sun, 21 Mar 2021 13:18:52 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:29814) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1lO1it-0005Ra-LX for qemu-devel@nongnu.org; Sun, 21 Mar 2021 13:18: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-575-L7VOJT2MNpyeMny5xQV1Kg-1; Sun, 21 Mar 2021 13:18:40 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id E97CD108BD06; Sun, 21 Mar 2021 17:18: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 1C14C295D8; Sun, 21 Mar 2021 17:18:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1616347122; 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=02DGbrUqtjcx+KvCxlPP539DjQ82K7xeYKUDqDDUnwQ=; b=W3QBrI8RyDVOISSqiAcJa6u/qCyeyNfcLBkRtL+C0DpQApSCnT7OCORbfmgdx87YW0IcgS elJSQugap47NItVHKSYdlfuLsoUGyttqAtXdvbjwzpzzpe/M3x4VJTNcIcDzVRe6P77IRx QxZLdfexWX4zNPfdFVqQzz7vBPCYQGU= X-MC-Unique: L7VOJT2MNpyeMny5xQV1Kg-1 From: Thomas Huth To: qemu-devel@nongnu.org, Peter Maydell Subject: [PULL 2/5] tests/unit/test-block-iothread: fix maybe-uninitialized error on GCC 11 Date: Sun, 21 Mar 2021 18:18:30 +0100 Message-Id: <20210321171833.20736-3-thuth@redhat.com> In-Reply-To: <20210321171833.20736-1-thuth@redhat.com> References: <20210321171833.20736-1-thuth@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=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=216.205.24.124; envelope-from=thuth@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=-0.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) From: Emanuele Giuseppe Esposito When building qemu with GCC 11, test-block-iothread produces the following warning: ../tests/unit/test-block-iothread.c:148:11: error: =E2=80=98buf=E2=80=99 ma= y be used uninitialized [-Werror=3Dmaybe-uninitialized] This is caused by buf[512] left uninitialized and passed to bdrv_save_vmstate() that expects a const uint8_t *, so the compiler assumes it will be read and expects the parameter to be initialized. Signed-off-by: Emanuele Giuseppe Esposito Reviewed-by: Paolo Bonzini Message-Id: <20210319112218.49609-1-eesposit@redhat.com> Signed-off-by: Thomas Huth --- tests/unit/test-block-iothread.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/unit/test-block-iothread.c b/tests/unit/test-block-iothr= ead.c index 3f866a35c6..8cf172cb7a 100644 --- a/tests/unit/test-block-iothread.c +++ b/tests/unit/test-block-iothread.c @@ -89,7 +89,7 @@ static void test_sync_op_pread(BdrvChild *c) =20 static void test_sync_op_pwrite(BdrvChild *c) { - uint8_t buf[512]; + uint8_t buf[512] =3D { 0 }; int ret; =20 /* Success */ @@ -117,7 +117,7 @@ static void test_sync_op_blk_pread(BlockBackend *blk) =20 static void test_sync_op_blk_pwrite(BlockBackend *blk) { - uint8_t buf[512]; + uint8_t buf[512] =3D { 0 }; int ret; =20 /* Success */ @@ -141,7 +141,7 @@ static void test_sync_op_load_vmstate(BdrvChild *c) =20 static void test_sync_op_save_vmstate(BdrvChild *c) { - uint8_t buf[512]; + uint8_t buf[512] =3D { 0 }; int ret; =20 /* Error: Driver does not support snapshots */ --=20 2.27.0 From nobody Tue May 7 19:01:17 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=1616347497; cv=none; d=zohomail.com; s=zohoarc; b=ZDU7wZK96iJv7kXBzhU5/Cy2yxXiSt1DfSMMr0zaU95mIeyapK7Q8P6D6Fl04OiiL0ripxR7FX04s25dUMb2nS1L2BOf2f+1CE0eGxl36VkO1KaHwqdSWosy7Ihd5SRBCN3t0LSdtwOM/8dmmgpthA8kpd4N63r3aNpPm0279WE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1616347497; 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=iMxlVTJlwTWszth46Tb6T+koSZbQnej0xUVwac2Dysk=; b=OMIsriciZhKVBEFUK6ogej0abi54/3Q4Je6a4kJlNb72nuiyIrNPbGyEJ0q7To9yyQw/JSvoQxPRhk89XTLUpaQ+tGHFMfkEdZIwIgyKdIJijmrhKKuWp7UYY2+JucQF2U1ODcZdZpqF6Rp576N5u27LYarg20sWjc9+M++ACpM= 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 1616347497196319.50627923017487; Sun, 21 Mar 2021 10:24:57 -0700 (PDT) Received: from localhost ([::1]:49724 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lO1os-0003b9-76 for importer@patchew.org; Sun, 21 Mar 2021 13:24:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56444) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lO1j4-0007Ov-OD for qemu-devel@nongnu.org; Sun, 21 Mar 2021 13:18:54 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:36021) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1lO1iu-0005Rv-1a for qemu-devel@nongnu.org; Sun, 21 Mar 2021 13:18:54 -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-509-R7rEicHnPOWdqB6pWm76ug-1; Sun, 21 Mar 2021 13:18:41 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id EEE2F80006E; Sun, 21 Mar 2021 17:18:39 +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 438305D9CD; Sun, 21 Mar 2021 17:18:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1616347123; 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=iMxlVTJlwTWszth46Tb6T+koSZbQnej0xUVwac2Dysk=; b=CXqLeteq+QflVU+I/qYFL2Y1trrJbjdor9TxBajRtNt6RA0f0nxToHLZ8E04SAMHGlHJkM ywt0Bf8zOLwuQ/xx62X6UDdeV765JqTIBIAYJc+kn0LSKmbdYNueftlp/Iw+UcbTy4B/0u LPWrCvBZL3flFrdErlTFHoW7o5e0BZA= X-MC-Unique: R7rEicHnPOWdqB6pWm76ug-1 From: Thomas Huth To: qemu-devel@nongnu.org, Peter Maydell Subject: [PULL 3/5] configure: fix for SunOS based systems Date: Sun, 21 Mar 2021 18:18:31 +0100 Message-Id: <20210321171833.20736-4-thuth@redhat.com> In-Reply-To: <20210321171833.20736-1-thuth@redhat.com> References: <20210321171833.20736-1-thuth@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=thuth@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=216.205.24.124; envelope-from=thuth@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=-0.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-Type: text/plain; charset="utf-8" From: David CARLIER local directive make the configure fails on these systems. Signed-off-by: David Carlier Message-Id: Signed-off-by: Thomas Huth --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index 847bc4d095..61872096a8 100755 --- a/configure +++ b/configure @@ -111,7 +111,7 @@ error_exit() { do_compiler() { # Run the compiler, capturing its output to the log. First argument # is compiler binary to execute. - local compiler=3D"$1" + compiler=3D"$1" shift if test -n "$BASH_VERSION"; then eval ' echo >>config.log " --=20 2.27.0 From nobody Tue May 7 19:01:17 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=1616347292; cv=none; d=zohomail.com; s=zohoarc; b=DAgMgAv7lGr1N2tO38ZF4GFJ39YnmhjOqvAUW8EPisjPLL19jhdUAPVk/+xz2v7z11aUmbhykwe86X2f7nU7OFuBlfpRH/rqFAxPJgVdqFSRsQZVfWJoZLONyyAA4hq7RPlYsa/L78TnN2vRgvaQeSmGOmeZlArn914wTw+vOfs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1616347292; 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=FgR8P8LBujVI1zEdlxhu1f4ooV8WhIFRGs8Z2ivAdeM=; b=Qy7h0ORQJje68spPRIV9N6Dl6/k7Ppn+YtWrpDzVbIvjuU0SJ3B+e4W8A4O9mAIVOFHJxaTT1sav5BjFBGaDtROSeFJYMjrMeFTSQL0pgk7UltKyYvmuj4wjnSUiU2TVov90dTVLwAcwxe/WhSoWD4hHZdt47U/ahUmH56uS9hc= 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 1616347292584228.007376153128; Sun, 21 Mar 2021 10:21:32 -0700 (PDT) Received: from localhost ([::1]:43156 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lO1lb-0000pU-D2 for importer@patchew.org; Sun, 21 Mar 2021 13:21:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56456) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lO1j5-0007PS-32 for qemu-devel@nongnu.org; Sun, 21 Mar 2021 13:18:59 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:52022) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lO1ix-0005SO-6G for qemu-devel@nongnu.org; Sun, 21 Mar 2021 13:18:54 -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-258-sgoBH2qiNAK-7QPYyeYBOQ-1; Sun, 21 Mar 2021 13:18:42 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 1A6685700D; Sun, 21 Mar 2021 17:18: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 4FC2A5D9CD; Sun, 21 Mar 2021 17:18:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1616347124; 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=FgR8P8LBujVI1zEdlxhu1f4ooV8WhIFRGs8Z2ivAdeM=; b=EDakf4oBIP26EMUd2toX3lUo+hePSCuuEt73lrnuc0IHqx1fmsLxdiDk4Bl6ps6uvLUHK0 DbMCBr0yDC4PbJdkzUnsTc+cqj78hZaFXM2nkAyZRF0Wbs+z2PFqB2/sqnkSYTBNK9ivsX oxmGx5Rc7zxIcK0XXpo9dFSc4Lm0PZc= X-MC-Unique: sgoBH2qiNAK-7QPYyeYBOQ-1 From: Thomas Huth To: qemu-devel@nongnu.org, Peter Maydell Subject: [PULL 4/5] contrib: ivshmem client and server build fix for SunOS. Date: Sun, 21 Mar 2021 18:18:32 +0100 Message-Id: <20210321171833.20736-5-thuth@redhat.com> In-Reply-To: <20210321171833.20736-1-thuth@redhat.com> References: <20210321171833.20736-1-thuth@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=thuth@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=thuth@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=-0.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-Type: text/plain; charset="utf-8" From: David CARLIER sun is a macro on these systems, thus renaming the variables on the client and server. Signed-off-by: David Carlier Message-Id: Reviewed-by: Peter Maydell Signed-off-by: Thomas Huth --- contrib/ivshmem-client/ivshmem-client.c | 12 ++++++------ contrib/ivshmem-server/ivshmem-server.c | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/contrib/ivshmem-client/ivshmem-client.c b/contrib/ivshmem-clie= nt/ivshmem-client.c index b1274b236a..182c79d27c 100644 --- a/contrib/ivshmem-client/ivshmem-client.c +++ b/contrib/ivshmem-client/ivshmem-client.c @@ -178,7 +178,7 @@ ivshmem_client_init(IvshmemClient *client, const char *= unix_sock_path, int ivshmem_client_connect(IvshmemClient *client) { - struct sockaddr_un sun; + struct sockaddr_un s_un; int fd, ret; int64_t tmp; =20 @@ -192,16 +192,16 @@ ivshmem_client_connect(IvshmemClient *client) return -1; } =20 - sun.sun_family =3D AF_UNIX; - ret =3D snprintf(sun.sun_path, sizeof(sun.sun_path), "%s", + s_un.sun_family =3D AF_UNIX; + ret =3D snprintf(s_un.sun_path, sizeof(s_un.sun_path), "%s", client->unix_sock_path); - if (ret < 0 || ret >=3D sizeof(sun.sun_path)) { + if (ret < 0 || ret >=3D sizeof(s_un.sun_path)) { IVSHMEM_CLIENT_DEBUG(client, "could not copy unix socket path\n"); goto err_close; } =20 - if (connect(client->sock_fd, (struct sockaddr *)&sun, sizeof(sun)) < 0= ) { - IVSHMEM_CLIENT_DEBUG(client, "cannot connect to %s: %s\n", sun.sun= _path, + if (connect(client->sock_fd, (struct sockaddr *)&s_un, sizeof(s_un)) <= 0) { + IVSHMEM_CLIENT_DEBUG(client, "cannot connect to %s: %s\n", s_un.su= n_path, strerror(errno)); goto err_close; } diff --git a/contrib/ivshmem-server/ivshmem-server.c b/contrib/ivshmem-serv= er/ivshmem-server.c index 88daee812d..39a6ffdb5d 100644 --- a/contrib/ivshmem-server/ivshmem-server.c +++ b/contrib/ivshmem-server/ivshmem-server.c @@ -288,7 +288,7 @@ ivshmem_server_init(IvshmemServer *server, const char *= unix_sock_path, int ivshmem_server_start(IvshmemServer *server) { - struct sockaddr_un sun; + struct sockaddr_un s_un; int shm_fd, sock_fd, ret; =20 /* open shm file */ @@ -327,15 +327,15 @@ ivshmem_server_start(IvshmemServer *server) goto err_close_shm; } =20 - sun.sun_family =3D AF_UNIX; - ret =3D snprintf(sun.sun_path, sizeof(sun.sun_path), "%s", + s_un.sun_family =3D AF_UNIX; + ret =3D snprintf(s_un.sun_path, sizeof(s_un.sun_path), "%s", server->unix_sock_path); - if (ret < 0 || ret >=3D sizeof(sun.sun_path)) { + if (ret < 0 || ret >=3D sizeof(s_un.sun_path)) { IVSHMEM_SERVER_DEBUG(server, "could not copy unix socket path\n"); goto err_close_sock; } - if (bind(sock_fd, (struct sockaddr *)&sun, sizeof(sun)) < 0) { - IVSHMEM_SERVER_DEBUG(server, "cannot connect to %s: %s\n", sun.sun= _path, + if (bind(sock_fd, (struct sockaddr *)&s_un, sizeof(s_un)) < 0) { + IVSHMEM_SERVER_DEBUG(server, "cannot connect to %s: %s\n", s_un.su= n_path, strerror(errno)); goto err_close_sock; } --=20 2.27.0 From nobody Tue May 7 19:01:17 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=1616347534; cv=none; d=zohomail.com; s=zohoarc; b=K80K4o0d0n6nauOSpcO0QYb8Bq3APxZwxn2ID3x48I6vFM8+FhLoN/n00slN6z+kW2cir0ou2zxF5dCoSSjQzn0uufBv2qudDPciiwFlzohdu/80Uux7HQxC/ixNRj7mlJIrLd/iCXz1zk7HfsHCyt1HfbpSSjhdFAFsbzo5W5Q= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1616347534; 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=qH9Y6qjjeiKVP2v7yOq1evrnjl8KGdPB1T+dq7N0qtM=; b=j/9gKg6GQ6V3uQ3EXrSRIZLdnAJakqvFDmPODttowcsYxllxEUi7QsfaFIdxTw/T9ZdCx/448pkrV+pUUmCW4caSk25XwzdHkplqnuK/N4YF/NYbkIKkXocYZlcKNMFid9vNbFAlaGvpsb2wrKnyLQspvlxyriNAkD2VFhq6Gt8= 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 1616347534004451.67802570777246; Sun, 21 Mar 2021 10:25:34 -0700 (PDT) Received: from localhost ([::1]:51170 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lO1pU-0004GB-TC for importer@patchew.org; Sun, 21 Mar 2021 13:25:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56428) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lO1j3-0007O1-I8 for qemu-devel@nongnu.org; Sun, 21 Mar 2021 13:18:54 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:52453) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lO1ix-0005Sc-T2 for qemu-devel@nongnu.org; Sun, 21 Mar 2021 13:18: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-182-iZIeqNhDNFWKs_7e6OzaKg-1; Sun, 21 Mar 2021 13:18:43 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 54625801597; Sun, 21 Mar 2021 17:18:42 +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 6E85E5D9CD; Sun, 21 Mar 2021 17:18:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1616347126; 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=qH9Y6qjjeiKVP2v7yOq1evrnjl8KGdPB1T+dq7N0qtM=; b=YZGHHsM7fnnwbL6dV+bLX8rkj9B6qd0tV6LnFh0dUDKn8ux6xcWEcQepF+ZjFjuelR05c/ Kyv1Cup1ruM5YQfEQRhYmG5YJ0GEsVPDMMK/KVZRy0VC3MvxH95NIWLvguzTDTZ8TXd0uF asRfiwuZGMHl9FkuXQ/rJU6d7PQGEok= X-MC-Unique: iZIeqNhDNFWKs_7e6OzaKg-1 From: Thomas Huth To: qemu-devel@nongnu.org, Peter Maydell Subject: [PULL 5/5] FreeBSD: Upgrade to 12.2 release Date: Sun, 21 Mar 2021 18:18:33 +0100 Message-Id: <20210321171833.20736-6-thuth@redhat.com> In-Reply-To: <20210321171833.20736-1-thuth@redhat.com> References: <20210321171833.20736-1-thuth@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=thuth@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=thuth@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=-0.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-Type: text/plain; charset="utf-8" From: Warner Losh FreeBSD 12.1 has reached end of life. Use 12.2 instead so that FreeBSD's project's packages will work. Update which timezone to pick. Work around a= QEMU bug that incorrectly raises an exception on a CRC32 instruction with the FPU disabled. The qemu bug is described here: https://www.mail-archive.com/qemu-devel@nongnu.org/msg784158.html Signed-off-by: Warner Losh Message-Id: <20210307155654.993-2-imp@bsdimp.com> [thuth: Disable gnutls to work-around a problem with libtasn1] Signed-off-by: Thomas Huth --- tests/vm/freebsd | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/tests/vm/freebsd b/tests/vm/freebsd index 09f3ee6cb8..6e20e84322 100755 --- a/tests/vm/freebsd +++ b/tests/vm/freebsd @@ -20,12 +20,16 @@ import socket import subprocess import basevm =20 +FREEBSD_CONFIG =3D { + 'cpu' : "max,sse4.2=3Doff", +} + class FreeBSDVM(basevm.BaseVM): name =3D "freebsd" arch =3D "x86_64" =20 - link =3D "https://download.freebsd.org/ftp/releases/ISO-IMAGES/12.1/Fr= eeBSD-12.1-RELEASE-amd64-disc1.iso.xz" - csum =3D "7394c3f60a1e236e7bd3a05809cf43ae39a3b8e5d42d782004cf2f26b1cf= cd88" + link =3D "https://download.freebsd.org/ftp/releases/ISO-IMAGES/12.2/Fr= eeBSD-12.2-RELEASE-amd64-disc1.iso.xz" + csum =3D "a4530246cafbf1dd42a9bd3ea441ca9a78a6a0cd070278cbdf63f3a6f803= ecae" size =3D "20G" pkgs =3D [ # build tools @@ -61,6 +65,8 @@ class FreeBSDVM(basevm.BaseVM): "zstd", ] =20 + # TODO: Enable gnutls again once FreeBSD's libtasn1 got fixed + # See: https://gitlab.com/gnutls/libtasn1/-/merge_requests/71 BUILD_SCRIPT =3D """ set -e; rm -rf /home/qemu/qemu-test.* @@ -68,7 +74,7 @@ class FreeBSDVM(basevm.BaseVM): mkdir src build; cd src; tar -xf /dev/vtbd1; cd ../build - ../src/configure --python=3Dpython3.7 {configure_opts}; + ../src/configure --python=3Dpython3.7 --disable-gnutls {configure_= opts}; gmake --output-sync -j{jobs} {target} {verbose}; """ =20 @@ -125,7 +131,7 @@ class FreeBSDVM(basevm.BaseVM): self.console_wait_send("IPv6", "n") self.console_wait_send("Resolver", "\n") =20 - self.console_wait_send("Time Zone Selector", "a\n") + self.console_wait_send("Time Zone Selector", "0\n") self.console_wait_send("Confirmation", "y") self.console_wait_send("Time & Date", "\n") self.console_wait_send("Time & Date", "\n") @@ -206,4 +212,4 @@ class FreeBSDVM(basevm.BaseVM): self.print_step("All done") =20 if __name__ =3D=3D "__main__": - sys.exit(basevm.main(FreeBSDVM)) + sys.exit(basevm.main(FreeBSDVM, config=3DFREEBSD_CONFIG)) --=20 2.27.0