From nobody Mon Nov 23 05:00:07 2026 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=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1791390898; cv=none; d=zohomail.com; s=zohoarc; b=ZaAs68N9IepI4kf5NPI6sw33RdLYV2/VmXIc5hDFpS3C2yKNPUnaUmZBGRQ/mI5VHkRtWXu084famo5aV7AiBHnQb8Z2tTPcw8ASdDFNkPIHILkA6UVE2Hyk+X9Z/ls8pHE4+j870IMWTQGr3zs/tNE0dlCvzeOzWoRDTzueTx4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1791390898; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=2XW+MRNLXXL2SMptMVlcFiaTCmriMyYA6BjIkOEQuok=; b=cn4KSwKalohUaGHw5oCSiSg05tI08U8iimRr3iSoZwp2roQ8kvmSugGgfeWMzR6DKJTlR4jcpnFqMgZx85TR3FhpRT1BOFRGqPOA0VkQb0CodCExBvQN76tOxYgW4JkRlxX5m07kjaJ8oxZ2PR3A0jISiOMpiHMKvzqQfisE+N8= 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=quarantine dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1791390898835378.3330097788363; Wed, 7 Oct 2026 09:34:58 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xEUb0-0002s0-Nq; Wed, 07 Oct 2026 12:34:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xEUax-0002rZ-Pg for qemu-devel@nongnu.org; Wed, 07 Oct 2026 12:34:19 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xEUaw-0006Hp-IS for qemu-devel@nongnu.org; Wed, 07 Oct 2026 12:34:19 -0400 Received: from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-378-AzmE0FRpPVS3VIG9_5_joA-1; Wed, 07 Oct 2026 12:34:16 -0400 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 433CF1809C87; Wed, 7 Oct 2026 16:34:15 +0000 (UTC) Received: from merkur.redhat.com (unknown [10.44.32.219]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id B113A1956087; Wed, 7 Oct 2026 16:34:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1791390857; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=2XW+MRNLXXL2SMptMVlcFiaTCmriMyYA6BjIkOEQuok=; b=G4wjAvgrPdMHENAFtlR3CGkld36WgZQ03+/1cxST8eIRIuV5lsBQzkQu6PzQA0yEUTdC9E wEStjht+o0dM8I0v7pHsELPbdEyoHT5m56wSmEWq2XdPmtTQ/jLHy25ifEtHsquX+1pdU4 FdARKJJMOuq02MqHsYGA/EmHNs/yc9g= X-MC-Unique: AzmE0FRpPVS3VIG9_5_joA-1 X-Mimecast-MFC-AGG-ID: AzmE0FRpPVS3VIG9_5_joA_1791390855 From: Kevin Wolf To: qemu-block@nongnu.org Cc: kwolf@redhat.com, richard.henderson@linaro.org, qemu-devel@nongnu.org Subject: [PULL 01/21] block-common: fix BDRV_WANT_PRECISE duplicating BDRV_WANT_OFFSET_VALID Date: Wed, 7 Oct 2026 18:32:42 +0200 Message-ID: <20261007163302.332250-2-kwolf@redhat.com> In-Reply-To: <20261007163302.332250-1-kwolf@redhat.com> References: <20261007163302.332250-1-kwolf@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 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=lists1p.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=kwolf@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -22 X-Spam_score: -2.3 X-Spam_bar: -- X-Spam_report: (-2.3 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.24, 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.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-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.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1791390902418158500 Content-Type: text/plain; charset="utf-8" From: "Denis V. Lunev" Should OR in BDRV_WANT_ALLOCATED instead. Actually there is not problem within the code right now as the value is used as enum rather than flags but that is for now. Let us stay on the safe side. Fixes: c33159dec790 ("block: Expand block status mode from bool to flags") Signed-off-by: Denis V. Lunev CC: Eric Blake CC: Stefan Hajnoczi Message-ID: <20260724161158.445561-1-den@openvz.org> Signed-off-by: Kevin Wolf --- include/block/block-common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/block/block-common.h b/include/block/block-common.h index 895ea175413..3932ff86156 100644 --- a/include/block/block-common.h +++ b/include/block/block-common.h @@ -351,7 +351,7 @@ typedef enum { #define BDRV_WANT_OFFSET_VALID BDRV_BLOCK_OFFSET_VALID #define BDRV_WANT_ALLOCATED BDRV_BLOCK_ALLOCATED #define BDRV_WANT_PRECISE (BDRV_WANT_ZERO | BDRV_WANT_OFFSET_VALID |= \ - BDRV_WANT_OFFSET_VALID) + BDRV_WANT_ALLOCATED) =20 typedef QTAILQ_HEAD(BlockReopenQueue, BlockReopenQueueEntry) BlockReopenQu= eue; =20 --=20 2.56.0 From nobody Mon Nov 23 05:00:07 2026 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=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1791390971; cv=none; d=zohomail.com; s=zohoarc; b=R9Fb4cBx8YWk64DGu3WBsxNMabFZMyKlnD9A2A/XVG0N2fS3oOPUNE+csldcb6/ZlN6Db7DgiZpaogs7GI7EIYv2qaj2tcXJPxoEvRbgNsxvv6afUhN0/FKjWSR4ZHiWhqerI0URZfjMSb64hcmlkct9T2LkDfpFZBo9BMNswL8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1791390971; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=eshJtHgyJKJk5tRLayiO00kWIQWkNbAYPjt973sQ3uw=; b=c7dU/BLuK0PSQwmkOLA59zk5AgbmsWZVlq1qp1kqQknf3vzHKyUhM8RrNzuFFvfBglZz3TqZMutx7YrffP4JvMaJN8maJNy9zpTO3oBvcANMSQTHAcYhw1BNMLONC5JmNQCQJibie1EftYy73zc4orOwMBXI7XWGd41HkgNsdN0= 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=quarantine dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1791390971131521.1883610207536; Wed, 7 Oct 2026 09:36:11 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xEUbH-0002w1-2Z; Wed, 07 Oct 2026 12:34:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xEUb4-0002sP-7A for qemu-devel@nongnu.org; Wed, 07 Oct 2026 12:34:27 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xEUb2-0006IP-1l for qemu-devel@nongnu.org; Wed, 07 Oct 2026 12:34:25 -0400 Received: from mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-199-rVpxEUl-O9GsuDmeFhzGAA-1; Wed, 07 Oct 2026 12:34:18 -0400 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 2FCC6196F765; Wed, 7 Oct 2026 16:34:17 +0000 (UTC) Received: from merkur.redhat.com (unknown [10.44.32.219]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id A954D1956087; Wed, 7 Oct 2026 16:34:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1791390862; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=eshJtHgyJKJk5tRLayiO00kWIQWkNbAYPjt973sQ3uw=; b=dll3WyH5AEE7MF7F3WpmNUyaUEOw0YLJMRVSLTlQCvwm6ermB453cVLFtJBCvg8MWRZxhL sDKYy1s7sp0uaPfYjfMqYsX2JRtOxCb6fPjN6IMt0TBC41N44oCSF/BYQhNy7OPCBhyf4O dRtP9lZgk0Fp8tq3o3BM0qIEmEOC/6o= X-MC-Unique: rVpxEUl-O9GsuDmeFhzGAA-1 X-Mimecast-MFC-AGG-ID: rVpxEUl-O9GsuDmeFhzGAA_1791390857 From: Kevin Wolf To: qemu-block@nongnu.org Cc: kwolf@redhat.com, richard.henderson@linaro.org, qemu-devel@nongnu.org Subject: [PULL 02/21] block/throttle-groups: fix crash when enabling I/O limits on a busy disk Date: Wed, 7 Oct 2026 18:32:43 +0200 Message-ID: <20261007163302.332250-3-kwolf@redhat.com> In-Reply-To: <20261007163302.332250-1-kwolf@redhat.com> References: <20261007163302.332250-1-kwolf@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 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=lists1p.gnu.org; Received-SPF: pass client-ip=170.10.129.124; envelope-from=kwolf@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: 10 X-Spam_score: 1.0 X-Spam_bar: + X-Spam_report: (1.0 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.24, 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, RCVD_IN_SBL_CSS=3.335, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1791390972674158500 Content-Type: text/plain; charset="utf-8" From: "Denis V. Lunev" throttle_group_register_tgm() stores tgm->throttle_state before it takes tg->lock, so the I/O path can see a member whose group still has NULL tokens[] and an empty member list. A request in an iothread then reaches throttle_group_co_io_limits_intercept(), wins tg->lock ahead of the registering thread, and next_throttle_token() passes the NULL token to throttle_group_next_tgm(), which dereferences it: throttle_group_next_tgm (tgm=3D0x0) at block/throttle-groups.c:185 next_throttle_token (tgm=3D..., direction=3DTHROTTLE_READ) throttle_group_co_io_limits_intercept (tgm=3D..., bytes=3D8192, ...) blk_co_do_preadv_part (blk=3D..., offset=3D..., bytes=3D8192, ...) blk_aio_read_entry (opaque=3D...) coroutine_trampoline (i0=3D..., i1=3D...) blk_io_limits_enable() does not drain the BlockBackend, unlike its disable counterpart, so nothing keeps requests away while the group is built. A guest probing a disk that libvirt has just attached, at the moment the QoS settings for it are applied, is enough to hit this. Publish tgm->throttle_state with a release store once the member is linked into the group and its timers exist, and read it with an acquire load on the two unlocked I/O paths. A request that sees the new pointer then also sees a fully built group. Cc: Kevin Wolf Cc: Hanna Reitz Cc: Alberto Garcia Signed-off-by: Denis V. Lunev Message-ID: <20260908145554.3215221-2-den@openvz.org> Reviewed-by: Kevin Wolf Acked-by: Alberto Garcia Signed-off-by: Kevin Wolf --- block/block-backend.c | 12 ++++++------ block/throttle-groups.c | 4 +++- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/block/block-backend.c b/block/block-backend.c index 37ba7e9fc40..5e59bac1a3c 100644 --- a/block/block-backend.c +++ b/block/block-backend.c @@ -1338,6 +1338,7 @@ blk_co_do_preadv_part(BlockBackend *blk, int64_t offs= et, int64_t bytes, QEMUIOVector *qiov, size_t qiov_offset, BdrvRequestFlags flags) { + ThrottleGroupMember *tgm =3D &blk->public.throttle_group_member; int ret; BlockDriverState *bs; IO_CODE(); @@ -1357,9 +1358,8 @@ blk_co_do_preadv_part(BlockBackend *blk, int64_t offs= et, int64_t bytes, bdrv_inc_in_flight(bs); =20 /* throttling disk I/O */ - if (blk->public.throttle_group_member.throttle_state) { - throttle_group_co_io_limits_intercept(&blk->public.throttle_group_= member, - bytes, THROTTLE_READ); + if (qatomic_load_acquire(&tgm->throttle_state)) { + throttle_group_co_io_limits_intercept(tgm, bytes, THROTTLE_READ); } =20 ret =3D bdrv_co_preadv_part(blk->root, offset, bytes, qiov, qiov_offse= t, @@ -1413,6 +1413,7 @@ blk_co_do_pwritev_part(BlockBackend *blk, int64_t off= set, int64_t bytes, QEMUIOVector *qiov, size_t qiov_offset, BdrvRequestFlags flags) { + ThrottleGroupMember *tgm =3D &blk->public.throttle_group_member; int ret; BlockDriverState *bs; IO_CODE(); @@ -1431,9 +1432,8 @@ blk_co_do_pwritev_part(BlockBackend *blk, int64_t off= set, int64_t bytes, =20 bdrv_inc_in_flight(bs); /* throttling disk I/O */ - if (blk->public.throttle_group_member.throttle_state) { - throttle_group_co_io_limits_intercept(&blk->public.throttle_group_= member, - bytes, THROTTLE_WRITE); + if (qatomic_load_acquire(&tgm->throttle_state)) { + throttle_group_co_io_limits_intercept(tgm, bytes, THROTTLE_WRITE); } =20 if (!blk->enable_write_cache) { diff --git a/block/throttle-groups.c b/block/throttle-groups.c index 2dfd9d62aac..37814b84fe0 100644 --- a/block/throttle-groups.c +++ b/block/throttle-groups.c @@ -581,7 +581,6 @@ void throttle_group_register_tgm(ThrottleGroupMember *t= gm, ThrottleState *ts =3D throttle_group_incref(groupname); ThrottleGroup *tg =3D container_of(ts, ThrottleGroup, ts); =20 - tgm->throttle_state =3D ts; tgm->aio_context =3D ctx; qatomic_set(&tgm->restart_pending, 0); =20 @@ -602,6 +601,9 @@ void throttle_group_register_tgm(ThrottleGroupMember *t= gm, read_timer_cb, write_timer_cb, tgm); + + /* The I/O path reads this without tg->lock, so publish it last */ + qatomic_store_release(&tgm->throttle_state, ts); } =20 /* Unregister a ThrottleGroupMember from its group, removing it from the l= ist, --=20 2.56.0 From nobody Mon Nov 23 05:00:07 2026 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=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1791390913; cv=none; d=zohomail.com; s=zohoarc; b=N3oMJpUpsq7ouXGI/oSGLwU78rL1qoh12W7kS661dX1VogJWNsR4QSSaxzJ9uPmJM/cMypkO9pmkNo1hidfFnxKOV9f4p46yd1s1v9tbRXvRuZfzUbNf733PlKiXHODTILcDK3KYZQL5Y9NfEF4tYGsRTaAn3LgrrXTiodwXtEM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1791390913; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=ehYZfi6ewcevy0iV2JWMOEC3cYURQVi8rsF6omdyiVA=; b=hBimPf4OnQEi4unHbUcdAWE1oluyPI3w/ozAGjhnudI2zsZK8bBUwNj2iUqGH0kvDRwkGn/M9m5gAubYnZQYS0wd5P4Fj4D3nuGBZbpBWITrHR5ZTSHVOHZNf2sFY/4/F9+AiHyKAxJcYA3VIAPZlpNFS7kbRrx6RPh0EhHIGhs= 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=quarantine dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1791390913354388.32430982855726; Wed, 7 Oct 2026 09:35:13 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xEUbF-0002vi-RE; Wed, 07 Oct 2026 12:34:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xEUb5-0002sa-3v for qemu-devel@nongnu.org; Wed, 07 Oct 2026 12:34:27 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xEUb2-0006Ik-5d for qemu-devel@nongnu.org; Wed, 07 Oct 2026 12:34:26 -0400 Received: from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-680-KLYCbSnSM1SbCBZdl_eOjw-1; Wed, 07 Oct 2026 12:34:20 -0400 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id F36F91809C87; Wed, 7 Oct 2026 16:34:18 +0000 (UTC) Received: from merkur.redhat.com (unknown [10.44.32.219]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 908741956087; Wed, 7 Oct 2026 16:34:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1791390863; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ehYZfi6ewcevy0iV2JWMOEC3cYURQVi8rsF6omdyiVA=; b=SoEG10Yc+5CL1z9kmwnI7VXbBdQGxx9BYcGeKQxjbPqKZrIVY7vGpicViuJcqWHwb+FGdx TcMpEv8NZjND8+wzXaRqxKlSGn3QtLdvMPlw/g7sM05Np7zE1MOGta/KlUuZGJEqUvmTqq X7hBebviRN6Z56dWwPEdBKpp1QoUvE8= X-MC-Unique: KLYCbSnSM1SbCBZdl_eOjw-1 X-Mimecast-MFC-AGG-ID: KLYCbSnSM1SbCBZdl_eOjw_1791390859 From: Kevin Wolf To: qemu-block@nongnu.org Cc: kwolf@redhat.com, richard.henderson@linaro.org, qemu-devel@nongnu.org Subject: [PULL 03/21] block: fix bdrv_next() skipping monitor-owned nodes Date: Wed, 7 Oct 2026 18:32:44 +0200 Message-ID: <20261007163302.332250-4-kwolf@redhat.com> In-Reply-To: <20261007163302.332250-1-kwolf@redhat.com> References: <20261007163302.332250-1-kwolf@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 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=lists1p.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=kwolf@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -22 X-Spam_score: -2.3 X-Spam_bar: -- X-Spam_report: (-2.3 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.24, 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.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-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.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1791390916092158500 Content-Type: text/plain; charset="utf-8" From: "Denis V. Lunev" it->bs is the cursor into monitor_bdrv_states for the second phase of bdrv_next(), so it has to be NULL when that phase starts. Commit f6d38c9f6d made the first phase store the node it returns there, to unreference the right one when the graph changes underneath. The cursor is now left pointing at the last BlockBackend root, so the second phase resumes from there instead of from the head of the list and never returns a node added before it. A skipped node drops out of the vm_stop and migration handover paths: not flushed, not inactivated, not snapshotted. bdrv_inactivate_all() still reports success, so the node keeps its image lock and the migration target cannot open the image. Only detached nodes are hit in practice, as these callers also recurse into children. Reset the cursor when the second phase starts. old_bs is taken at the top of the function, so f6d38c9f6d keeps working. Cc: qemu-stable@nongnu.org Fixes: f6d38c9f6d ("block-backend: fix edge case in bdrv_next() where BDS a= ssociated to BB changes") Signed-off-by: Denis V. Lunev Cc: Fiona Ebner Cc: Kevin Wolf Message-ID: <20260828222005.2888213-1-den@openvz.org> Reviewed-by: Fiona Ebner Tested-by: Fiona Ebner Reviewed-by: Kevin Wolf Signed-off-by: Kevin Wolf --- block/block-backend.c | 1 + tests/qemu-iotests/tests/inactive-node-nbd | 16 ++++++++++++++++ tests/qemu-iotests/tests/inactive-node-nbd.out | 8 ++++++++ 3 files changed, 25 insertions(+) diff --git a/block/block-backend.c b/block/block-backend.c index 5e59bac1a3c..ab837fac921 100644 --- a/block/block-backend.c +++ b/block/block-backend.c @@ -625,6 +625,7 @@ BlockDriverState *bdrv_next(BdrvNextIterator *it) return bs; } it->phase =3D BDRV_NEXT_MONITOR_OWNED; + it->bs =3D NULL; } =20 /* Then return the monitor-owned BDSes without a BB attached. Ignore a= ll diff --git a/tests/qemu-iotests/tests/inactive-node-nbd b/tests/qemu-iotest= s/tests/inactive-node-nbd index 24242265b16..bb6ee5c75ab 100755 --- a/tests/qemu-iotests/tests/inactive-node-nbd +++ b/tests/qemu-iotests/tests/inactive-node-nbd @@ -48,6 +48,7 @@ def node_is_active(_vm, node_name): =20 with iotests.FilePath('disk.img') as path, \ iotests.FilePath('ro.img') as ro_path, \ + iotests.FilePath('detached.img') as detached_path, \ iotests.FilePath('snap.qcow2') as snap_path, \ iotests.FilePath('snap2.qcow2') as snap2_path, \ iotests.FilePath('target.img') as target_path, \ @@ -60,6 +61,7 @@ with iotests.FilePath('disk.img') as path, \ iotests.qemu_img_create('-f', iotests.imgfmt, path, img_size) iotests.qemu_img_create('-f', iotests.imgfmt, target_path, img_size) iotests.qemu_img_create('-f', iotests.imgfmt, ro_path, img_size) + iotests.qemu_img_create('-f', iotests.imgfmt, detached_path, img_size) =20 iotests.qemu_img_create('-f', 'qcow2', '-b', path, '-F', iotests.imgfm= t, snap_path) @@ -70,6 +72,9 @@ with iotests.FilePath('disk.img') as path, \ vm.add_blockdev(f'file,node-name=3Ddisk-file,filename=3D{path}') vm.add_blockdev(f'{iotests.imgfmt},file=3Ddisk-file,node-name=3Ddisk-f= mt,' 'active=3Doff') + vm.add_blockdev(f'file,node-name=3Ddetached-file,filename=3D{detached_= path}') + vm.add_blockdev(f'{iotests.imgfmt},file=3Ddetached-file,' + 'node-name=3Ddetached-fmt') vm.add_blockdev(f'file,node-name=3Dtarget-file,filename=3D{target_path= }') vm.add_blockdev(f'{iotests.imgfmt},file=3Dtarget-file,node-name=3Dtarg= et-fmt') vm.add_blockdev(f'file,node-name=3Dro-file,filename=3D{ro_path},read-o= nly=3Don') @@ -311,6 +316,17 @@ with iotests.FilePath('disk.img') as path, \ iotests.log('snap2-fmt active: %s' % node_is_active(vm, 'snap2-fmt')) iotests.log('target-fmt active: %s' % node_is_active(vm, 'target-fmt')) =20 + iotests.log('\n=3D=3D=3D Inactivating all nodes at once =3D=3D=3D') + + # detached-fmt has no parent and no BlockBackend, so nothing can reach= it + # by recursion. It is only inactivated if bdrv_next() actually returns= it. + vm.qmp_log('stop') + vm.qmp_log('blockdev-set-active', active=3DFalse) + + iotests.log('detached-fmt active: %s' % node_is_active(vm, 'detached-f= mt')) + iotests.log('detached-file active: %s' + % node_is_active(vm, 'detached-file')) + iotests.log('\nShutting down...') vm.shutdown() log =3D vm.get_log() diff --git a/tests/qemu-iotests/tests/inactive-node-nbd.out b/tests/qemu-io= tests/tests/inactive-node-nbd.out index 96af7608ded..5ff0063ec46 100644 --- a/tests/qemu-iotests/tests/inactive-node-nbd.out +++ b/tests/qemu-iotests/tests/inactive-node-nbd.out @@ -243,5 +243,13 @@ snap-fmt active: True snap2-fmt active: True target-fmt active: True =20 +=3D=3D=3D Inactivating all nodes at once =3D=3D=3D +{"execute": "stop", "arguments": {}} +{"return": {}} +{"execute": "blockdev-set-active", "arguments": {"active": false}} +{"return": {}} +detached-fmt active: False +detached-file active: False + Shutting down... =20 --=20 2.56.0 From nobody Mon Nov 23 05:00:07 2026 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=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1791390972; cv=none; d=zohomail.com; s=zohoarc; b=jjAaYIba6uzrYb8rXzq04Ne4OuSsBe5Tt1QHuQSOtAqjMu3Es1f/AOQiCSnsVd00/zd4lvFbbBR3/GlQ5Zrq+gbUbG+ZwGdt5uh2CrRkc0BCcbwjN2rfAac9Wjjo/IBbHtsFc8ihakCNLQtax4PuL94fqBhGAjdxONGyTkqhlbU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1791390972; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=Z5TmTWYaEAxO8RddK29Y/zCrtQvO2NeS+XCaG4IMK/4=; b=GMlyEyGyynsKKia0koJzylRDVbacKSmBnDRwE45o5lzvEYbQj+Ao8rnQJaz1I+h+2NP/Fn4cQbrUo9WbZ1+R42y51u4wP9rzNoCMaCS5QpkhH7bZHBkm7u7tJJkhcTPEDv6MKaV9bpE5Twp7pnhHez1zwi3gTNn55UinkWdUKLw= 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=quarantine dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1791390972813291.4372445388899; Wed, 7 Oct 2026 09:36:12 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xEUbQ-0002yw-1z; Wed, 07 Oct 2026 12:34:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xEUb5-0002sZ-0p for qemu-devel@nongnu.org; Wed, 07 Oct 2026 12:34:27 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xEUb2-0006Ih-5g for qemu-devel@nongnu.org; Wed, 07 Oct 2026 12:34:26 -0400 Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-377-9lj-0pZGOiu2Ud4EEo1l5A-1; Wed, 07 Oct 2026 12:34:21 -0400 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id C66C01933B48; Wed, 7 Oct 2026 16:34:20 +0000 (UTC) Received: from merkur.redhat.com (unknown [10.44.32.219]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 64B7E1956087; Wed, 7 Oct 2026 16:34:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1791390863; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Z5TmTWYaEAxO8RddK29Y/zCrtQvO2NeS+XCaG4IMK/4=; b=BCzlrRU0KfZQaB1jkdmP32jckXA2uho6BKtetdsoFBp8/uVWDiXdejS0RIMlnoTq12pYeM w0wHzk3RNJ6InOo5QXJnVf1Y5V9nnZ02pJXVFnUeBiyXu0GynvBgApseFgaOeW8ZBu6dpH cfJaUhnlui2r6jQbVaU74mQ5OKH9ZZc= X-MC-Unique: 9lj-0pZGOiu2Ud4EEo1l5A-1 X-Mimecast-MFC-AGG-ID: 9lj-0pZGOiu2Ud4EEo1l5A_1791390860 From: Kevin Wolf To: qemu-block@nongnu.org Cc: kwolf@redhat.com, richard.henderson@linaro.org, qemu-devel@nongnu.org Subject: [PULL 04/21] block: allocate aligned write buffer for 'truncate -m full' Date: Wed, 7 Oct 2026 18:32:45 +0200 Message-ID: <20261007163302.332250-5-kwolf@redhat.com> In-Reply-To: <20261007163302.332250-1-kwolf@redhat.com> References: <20261007163302.332250-1-kwolf@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 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=lists1p.gnu.org; Received-SPF: pass client-ip=170.10.129.124; envelope-from=kwolf@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: 10 X-Spam_score: 1.0 X-Spam_bar: + X-Spam_report: (1.0 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.24, 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, RCVD_IN_SBL_CSS=3.335, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1791390974192158500 Content-Type: text/plain; charset="utf-8" From: Andrey Drobyshev In case we're truncating an image opened with O_DIRECT, we might get -EINVAL on write with unaligned buffer. In particular, when running iotests/298 with '-nocache' we get: qemu-io: Failed to resize underlying file: Could not write zeros for preallocation: Invalid argument Let's just allocate the buffer using qemu_blockalign0() instead. Signed-off-by: Andrey Drobyshev Reviewed-by: Denis V. Lunev Reviewed-by: Vladimir Sementsov-Ogievskiy Message-ID: <20260923162224.34946-1-andrey.drobyshev@virtuozzo.com> Reviewed-by: Kevin Wolf Signed-off-by: Kevin Wolf --- block/file-posix.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/block/file-posix.c b/block/file-posix.c index 9aad156aad4..39d6a34456c 100644 --- a/block/file-posix.c +++ b/block/file-posix.c @@ -2366,7 +2366,7 @@ static int handle_aiocb_truncate(void *opaque) RawPosixAIOData *aiocb =3D opaque; int result =3D 0; int64_t current_length =3D 0; - char *buf =3D NULL; + QEMU_AUTO_VFREE char *buf =3D NULL; struct stat st; int fd =3D aiocb->aio_fildes; int64_t offset =3D aiocb->aio_offset; @@ -2433,7 +2433,7 @@ static int handle_aiocb_truncate(void *opaque) goto out; } =20 - buf =3D g_malloc0(65536); + buf =3D qemu_blockalign0(aiocb->bs, 65536); =20 seek_result =3D lseek(fd, current_length, SEEK_SET); if (seek_result < 0) { @@ -2492,7 +2492,6 @@ out: } } =20 - g_free(buf); return result; } =20 --=20 2.56.0 From nobody Mon Nov 23 05:00:07 2026 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=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1791390964; cv=none; d=zohomail.com; s=zohoarc; b=g4AKTVBNohySe1jeFwwX2u3r2IYGYoG2q3oS5QiUnis7LdFppwMyMeUfCCj28AShT3c+DiMX61p8kXjiWXkVm2rdbsf3Jtnjwl5rACarDtOqdygsTSbGgXdaJyWx9KdibuvpGmHAdGK1HiCdB8GxNzCoaWnda7iZedWNGz6C9n0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1791390964; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=V5h0prqwXWxiGIul/IlgDwJeY57yRSzdewxBqG3X8HU=; b=i9wu2e3TwkBHjHU55iteA8WvIM6B1UYNO+yOjIk3noujXw9zz6RiAIcLXBmcAchoAa7QEq8MFLzIgzuY0BoYHk4ozr5wPomMgvg5Zs0BHKCs/oadHdmcehFHiAhXI4O5BnQ787PA7YqmuM+ZjzpUpV0bGan4VU26dB9RHQ+eMis= 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=quarantine dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1791390964125247.66174998404392; Wed, 7 Oct 2026 09:36:04 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xEUbQ-0002zH-9f; Wed, 07 Oct 2026 12:34:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xEUb8-0002tZ-1n for qemu-devel@nongnu.org; Wed, 07 Oct 2026 12:34:30 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xEUb6-0006Ji-Mz for qemu-devel@nongnu.org; Wed, 07 Oct 2026 12:34:29 -0400 Received: from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-342-ONi75Z0QOIKjDAfh5I6Mgg-1; Wed, 07 Oct 2026 12:34:23 -0400 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 89B9F185FE58; Wed, 7 Oct 2026 16:34:22 +0000 (UTC) Received: from merkur.redhat.com (unknown [10.44.32.219]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 38CE71956087; Wed, 7 Oct 2026 16:34:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1791390868; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=V5h0prqwXWxiGIul/IlgDwJeY57yRSzdewxBqG3X8HU=; b=gitaIf1/Me/wH0zxw+OLPhF0qWh2q8akywMPjphmkymO5XLNKX13Mob7mnvz6rK3JGFSYb ZxfMOqwnOAH1u4Q0p/6sqlVrf/cvaV+LDgQiSF+reNOywS+8fbgRvlTDqO2F4CObWn7LZn j0ajkT53VLywZiHKR8OFRE+7aiV7Pzc= X-MC-Unique: ONi75Z0QOIKjDAfh5I6Mgg-1 X-Mimecast-MFC-AGG-ID: ONi75Z0QOIKjDAfh5I6Mgg_1791390862 From: Kevin Wolf To: qemu-block@nongnu.org Cc: kwolf@redhat.com, richard.henderson@linaro.org, qemu-devel@nongnu.org Subject: [PULL 05/21] scripts/qemugdb: coroutine: Fix selected frame leak on error path Date: Wed, 7 Oct 2026 18:32:46 +0200 Message-ID: <20261007163302.332250-6-kwolf@redhat.com> In-Reply-To: <20261007163302.332250-1-kwolf@redhat.com> References: <20261007163302.332250-1-kwolf@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 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=lists1p.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=kwolf@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -22 X-Spam_score: -2.3 X-Spam_bar: -- X-Spam_report: (-2.3 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.24, 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.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1791390966270158500 Content-Type: text/plain; charset="utf-8" From: Andrey Drobyshev Currently, whenever gdb.execute() fails and throws an exception, previously selected frame gets leaked. I.e.: (gdb) frame N (gdb) qemu bt # throws exception (gdb) frame # shows 0, not N As a fix, wrap gdb.execute() commands in try/finally, so that selected frame gets restored no matter what. Fixes: 4cbf8efc5b89 ("scripts/gdb: fix 'qemu coroutine' when users selects = a non topmost stack frame") Signed-off-by: Andrey Drobyshev Message-ID: <20260804151743.937694-2-andrey.drobyshev@virtuozzo.com> Tested-by: Fabiano Rosas Reviewed-by: Kevin Wolf Signed-off-by: Kevin Wolf --- scripts/qemugdb/coroutine.py | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/scripts/qemugdb/coroutine.py b/scripts/qemugdb/coroutine.py index 29f57ae84ed..d1e6722d14d 100644 --- a/scripts/qemugdb/coroutine.py +++ b/scripts/qemugdb/coroutine.py @@ -265,18 +265,21 @@ def dump_backtrace_live(regs): selected_frame =3D gdb.selected_frame() gdb.newest_frame().select() =20 - for i in regs: - old[i] =3D gdb.parse_and_eval('(uint64_t)$%s' % i) - - for i in regs: - gdb.execute('set $%s =3D %s' % (i, regs[i])) - - gdb.execute('bt') + try: + for i in regs: + old[i] =3D gdb.parse_and_eval('(uint64_t)$%s' % i) =20 - for i in regs: - gdb.execute('set $%s =3D %s' % (i, old[i])) + for i in regs: + gdb.execute('set $%s =3D %s' % (i, regs[i])) =20 - selected_frame.select() + gdb.execute('bt') + finally: + try: + for i in old: + gdb.execute('set $%s =3D %s' % (i, old[i])) + finally: + # restore previously selected frame in any case + selected_frame.select() =20 def bt_jmpbuf(jmpbuf, detailed=3DFalse): '''Backtrace a jmpbuf''' --=20 2.56.0 From nobody Mon Nov 23 05:00:07 2026 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=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1791390955; cv=none; d=zohomail.com; s=zohoarc; b=eihpv4AjsJtUtLsCU0kSbiPefYXPrFTpQMnmkU3a7mk8KegWKEnI3lPYsiOQ/W4ClBkCcdVDdezTs1hHGoyYp1cxFK01yiEwnDKoEKjqnQFUwpcXePLfaL8aLYeANHSkOjf31csS9JGbm/JdJoJ6NZfDj417QOzkkgBADOngbfY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1791390955; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=1DlUSpkhjcJX2TcPaMqdYgGVc3UqWXGV4qqVDKdbspo=; b=im9NU4x/1PUV8x4+SGl9UPsfTaHy+otQG8K4UzGVLbB8jCLaudXkTgTIwAFZ27FSIb+4rm260PWKnExcLc5Avir8eXXqtTqLotfJxuPI6nPk+Gk2eI2CGhJ+yHeD2zGxlf5qJ7E8LEc3GHIoF5k6GzjVji89vReW4W4BihLePso= 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=quarantine dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1791390954995826.0729222380457; Wed, 7 Oct 2026 09:35:54 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xEUbc-00032M-Ve; Wed, 07 Oct 2026 12:35:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xEUbA-0002ue-1O for qemu-devel@nongnu.org; Wed, 07 Oct 2026 12:34:32 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xEUb7-0006Jv-9W for qemu-devel@nongnu.org; Wed, 07 Oct 2026 12:34:31 -0400 Received: from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-498-8IW7xmVJPzaoiybQXajq9w-1; Wed, 07 Oct 2026 12:34:25 -0400 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 4A61A1800594; Wed, 7 Oct 2026 16:34:24 +0000 (UTC) Received: from merkur.redhat.com (unknown [10.44.32.219]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id EE3451956087; Wed, 7 Oct 2026 16:34:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1791390868; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=1DlUSpkhjcJX2TcPaMqdYgGVc3UqWXGV4qqVDKdbspo=; b=ZXFBKL9xGCm97RwSnL3igk9ytJI3OPe1NBV5z+eCSZSVQ46M5e5MFV4PCB7UtHIT29UL6/ m8bciRXnL42bDsh6p2rOKpN01c6Rx4g4LjWgT5HObofIv6gbIUzDTCEjIJTE/MZOIAmRPX zdLxVPj0o3hMWJBZrkXsU51sdeW90bI= X-MC-Unique: 8IW7xmVJPzaoiybQXajq9w-1 X-Mimecast-MFC-AGG-ID: 8IW7xmVJPzaoiybQXajq9w_1791390864 From: Kevin Wolf To: qemu-block@nongnu.org Cc: kwolf@redhat.com, richard.henderson@linaro.org, qemu-devel@nongnu.org Subject: [PULL 06/21] scripts/qemugdb: coroutine: Get rid of fallback pattern when dumping backtrace Date: Wed, 7 Oct 2026 18:32:47 +0200 Message-ID: <20261007163302.332250-7-kwolf@redhat.com> In-Reply-To: <20261007163302.332250-1-kwolf@redhat.com> References: <20261007163302.332250-1-kwolf@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 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=lists1p.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=kwolf@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -22 X-Spam_score: -2.3 X-Spam_bar: -- X-Spam_report: (-2.3 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.24, 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.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1791390956371158500 Content-Type: text/plain; charset="utf-8" From: Andrey Drobyshev Currently upon invocation of 'qemu bt' / 'qemu coroutine' we try live process backtrace dump first, and if it fails - fallback to coredump. That causes us needless work and catching an exception. In my previous commit 42f3c143c3a0 ("scripts/qemugdb: coroutine: Add option for obtaining detailed trace in coredump") class Coredump was introduced, and each invocation already calls init_coredump(). Let's just pass the result of this call further as a bool param and make a decision based upon it. Apply the same pattern to obtaining coroutine pointer. Note that we deliberately lose a safety net here: the bare except used to swallow any failure of the live dump, not just the absence of a live process, and silently fall back to the raw unwind. Such a failure is now reported to the user instead. Signed-off-by: Andrey Drobyshev Message-ID: <20260804151743.937694-3-andrey.drobyshev@virtuozzo.com> Tested-by: Fabiano Rosas Reviewed-by: Kevin Wolf Signed-off-by: Kevin Wolf --- scripts/qemugdb/coroutine.py | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/scripts/qemugdb/coroutine.py b/scripts/qemugdb/coroutine.py index d1e6722d14d..d3f31bab9fe 100644 --- a/scripts/qemugdb/coroutine.py +++ b/scripts/qemugdb/coroutine.py @@ -281,20 +281,19 @@ def dump_backtrace_live(regs): # restore previously selected frame in any case selected_frame.select() =20 -def bt_jmpbuf(jmpbuf, detailed=3DFalse): +def bt_jmpbuf(jmpbuf, is_coredump, detailed=3DFalse): '''Backtrace a jmpbuf''' regs =3D get_jmpbuf_regs(jmpbuf) - try: + if not is_coredump: # This reuses gdb's "bt" command, which can be slightly prettier # but only works with live sessions. dump_backtrace_live(regs) - except: - if detailed: - # Obtain detailed trace by patching regs in copied coredump - dump_backtrace_patched(regs) - else: - # If above doesn't work, fallback to poor man's unwind - dump_backtrace(regs) + elif detailed: + # Obtain detailed trace by patching regs in copied coredump + dump_backtrace_patched(regs) + else: + # Obtain a non-detailed trace by poor man's unwind + dump_backtrace(regs) =20 def co_cast(co): return co.cast(gdb.lookup_type('CoroutineUContext').pointer()) @@ -353,7 +352,7 @@ def invoke(self, arg, from_tty): =20 try: bt_jmpbuf(coroutine_to_jmpbuf(gdb.parse_and_eval(argv[0])), - detailed=3Ddetailed) + is_coredump, detailed=3Ddetailed) finally: coredump.restore_regs() =20 @@ -390,10 +389,10 @@ def invoke(self, arg, from_tty): =20 gdb.execute("bt") =20 - try: + if not is_coredump: # This only works with a live session co_ptr =3D gdb.parse_and_eval("qemu_coroutine_self()") - except: + else: # Fallback to use hard-coded ucontext vars if it's coredump co_ptr =3D gdb.parse_and_eval("co_tls_current") =20 @@ -407,7 +406,8 @@ def invoke(self, arg, from_tty): if co_ptr =3D=3D 0: break gdb.write("\nCoroutine at " + str(co_ptr) + ":\n") - bt_jmpbuf(coroutine_to_jmpbuf(co_ptr), detailed=3Ddetailed) + bt_jmpbuf(coroutine_to_jmpbuf(co_ptr), is_coredump, + detailed=3Ddetailed) finally: coredump.restore_regs() =20 --=20 2.56.0 From nobody Mon Nov 23 05:00:07 2026 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=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1791390975; cv=none; d=zohomail.com; s=zohoarc; b=QMTL1baQr8h75cUKKyLvj1caN/iTy/RTkpxd8ivbj5c8kWoXF8A15AIa2udQzkG7ElN63qYuuuDZgIqvr4d8wIyHoisFFJN6uAiwVIpuoAcIiLl4VUkjvWCjUvHDhBUeRR9HKuDRwNnUMtu2dFsXhAGEwm6nobU4hWlnTSw7Erk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1791390975; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=bDagjWHFv1Hudak/ht59zB86AR0RncODY5Sy4xUJ7WM=; b=L7B8Vj1tJJy9BeShcT8TNsg4X0Unj/x8YqGM9xbCEeDtf9xGYMkXu6lT3+DCN8jnmiLA26uedrX1PflYuxaKSFDgFDhJJ/Iw/327MkxDuZrkssaxq5RNH3s79NefnOO1SjBUIRIrdC4AwHPKX/2V6IlyMy8qpCmfjv2fNdNg7K4= 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=quarantine dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 179139097558899.22424245508205; Wed, 7 Oct 2026 09:36:15 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xEUbc-00032N-Vw; Wed, 07 Oct 2026 12:35:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xEUb8-0002th-KK for qemu-devel@nongnu.org; Wed, 07 Oct 2026 12:34:31 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xEUb7-0006Jt-57 for qemu-devel@nongnu.org; Wed, 07 Oct 2026 12:34:30 -0400 Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-275-oaDUfzh0MoScYHUQpPz7LA-1; Wed, 07 Oct 2026 12:34:27 -0400 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 0C1D51955BCB; Wed, 7 Oct 2026 16:34:26 +0000 (UTC) Received: from merkur.redhat.com (unknown [10.44.32.219]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id B01461956087; Wed, 7 Oct 2026 16:34:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1791390868; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=bDagjWHFv1Hudak/ht59zB86AR0RncODY5Sy4xUJ7WM=; b=Qxuo7kcg/PffK/dPvR1DyF58kv+fgK/zm5VN+6mXbA7KGu3RtCuV7DA2PRQcVHX5IKEvfN AtEEL+b5eZGJNOLJouR6T5W0WgSlzlWk4Re0gofOFmaI+wvQOqQAPt26TMS08h04yDsCvD SiKlv+mmIO0wP2JAquufnBih//cBO9k= X-MC-Unique: oaDUfzh0MoScYHUQpPz7LA-1 X-Mimecast-MFC-AGG-ID: oaDUfzh0MoScYHUQpPz7LA_1791390866 From: Kevin Wolf To: qemu-block@nongnu.org Cc: kwolf@redhat.com, richard.henderson@linaro.org, qemu-devel@nongnu.org Subject: [PULL 07/21] scripts/qemugdb: coroutine: Only attempt to restore regs in coredump Date: Wed, 7 Oct 2026 18:32:48 +0200 Message-ID: <20261007163302.332250-8-kwolf@redhat.com> In-Reply-To: <20261007163302.332250-1-kwolf@redhat.com> References: <20261007163302.332250-1-kwolf@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 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=lists1p.gnu.org; Received-SPF: pass client-ip=170.10.129.124; envelope-from=kwolf@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: 10 X-Spam_score: 1.0 X-Spam_bar: + X-Spam_report: (1.0 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.24, 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, RCVD_IN_SBL_CSS=3.335, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1791390976194158500 Content-Type: text/plain; charset="utf-8" From: Andrey Drobyshev When calling 'qemu bt' / 'qemu coroutine' in a live process, we get: AttributeError: 'NoneType' object has no attribute 'restore_regs' That's because for both commands finally: blocks attempt to restore patched regs unconditionally. Fix this by guarding regs restoration by 'if is_coredump'. Fixes: 42f3c143c3a0 ("scripts/qemugdb: coroutine: Add option for obtaining = detailed trace in coredump") Signed-off-by: Andrey Drobyshev Message-ID: <20260804151743.937694-4-andrey.drobyshev@virtuozzo.com> Tested-by: Fabiano Rosas Reviewed-by: Kevin Wolf Signed-off-by: Kevin Wolf --- scripts/qemugdb/coroutine.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/qemugdb/coroutine.py b/scripts/qemugdb/coroutine.py index d3f31bab9fe..649579378db 100644 --- a/scripts/qemugdb/coroutine.py +++ b/scripts/qemugdb/coroutine.py @@ -354,7 +354,8 @@ def invoke(self, arg, from_tty): bt_jmpbuf(coroutine_to_jmpbuf(gdb.parse_and_eval(argv[0])), is_coredump, detailed=3Ddetailed) finally: - coredump.restore_regs() + if is_coredump: + coredump.restore_regs() =20 class CoroutineBt(gdb.Command): __doc__ =3D textwrap.dedent("""\ @@ -409,7 +410,8 @@ def invoke(self, arg, from_tty): bt_jmpbuf(coroutine_to_jmpbuf(co_ptr), is_coredump, detailed=3Ddetailed) finally: - coredump.restore_regs() + if is_coredump: + coredump.restore_regs() =20 class CoroutineSPFunction(gdb.Function): def __init__(self): --=20 2.56.0 From nobody Mon Nov 23 05:00:07 2026 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=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1791391007; cv=none; d=zohomail.com; s=zohoarc; b=IdNGMFfsPsP4EYagxfhFtMnIUCAOzFBsDgJeMSFj9l0P7VU2MMwUzMXM3HMscEoasxIm6aaSgPQcNSrfwdCuwWdv2lYsSk1cubxuvhNSCgz8iP4QM8x9C9ICqq6PDsGS3Wi3lbx4EWxhP1Nnpzi3R1OWg0PJy73s70BBwcOPwzA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1791391007; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=IUteue5Un51UDIxofue71q//2Bedj8A8FBOCUP1ApvY=; b=D7lC1Igi86pCosW6e4ALDerZoejEzI4TFJ0QmyZxCAlrS2uoEU4zrJTD169RORgQPkFhHZvCN37UHlVayXMNK9PWUW4z2CrXtdMbYfYQ9qlA/odBAnhGtl969Mp2GsB4nFbXG6/p25c4x0/wOufW9rcFOl7rYsyQH3YMsq41g7c= 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=quarantine dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1791391007891127.48489074687791; Wed, 7 Oct 2026 09:36:47 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xEUbm-0003Dy-Vr; Wed, 07 Oct 2026 12:35:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xEUbC-0002ut-BF for qemu-devel@nongnu.org; Wed, 07 Oct 2026 12:34:35 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xEUbA-0006Kc-MF for qemu-devel@nongnu.org; Wed, 07 Oct 2026 12:34:34 -0400 Received: from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-434-6Bpx_TiCMpmxquIVvvr4AQ-1; Wed, 07 Oct 2026 12:34:28 -0400 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id C15B01800867; Wed, 7 Oct 2026 16:34:27 +0000 (UTC) Received: from merkur.redhat.com (unknown [10.44.32.219]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 718F91956087; Wed, 7 Oct 2026 16:34:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1791390872; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=IUteue5Un51UDIxofue71q//2Bedj8A8FBOCUP1ApvY=; b=OH0dqsqF/oZUN4CfWy5PW52s+XSwtq1G7sYoFKb/WHR92O2pmJ7WD4/27ku3J9zsEwYq+A hoE4zWa4mCIupJYoGpYBPFOLuIHf6xS7ict1lW7pDrw+8D9iRmUgSK2yueQ6G81KQLKbir 46U3bAVH49ROCxr6HSLab2Y7kvZPQVw= X-MC-Unique: 6Bpx_TiCMpmxquIVvvr4AQ-1 X-Mimecast-MFC-AGG-ID: 6Bpx_TiCMpmxquIVvvr4AQ_1791390867 From: Kevin Wolf To: qemu-block@nongnu.org Cc: kwolf@redhat.com, richard.henderson@linaro.org, qemu-devel@nongnu.org Subject: [PULL 08/21] scripts/qemugdb: coroutine: Don't unwind past the outermost frame Date: Wed, 7 Oct 2026 18:32:49 +0200 Message-ID: <20261007163302.332250-9-kwolf@redhat.com> In-Reply-To: <20261007163302.332250-1-kwolf@redhat.com> References: <20261007163302.332250-1-kwolf@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 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=lists1p.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=kwolf@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -22 X-Spam_score: -2.3 X-Spam_bar: -- X-Spam_report: (-2.3 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.24, 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.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1791391008435158500 Content-Type: text/plain; charset="utf-8" From: Andrey Drobyshev dump_backtrace() walks the frame pointer chain until rbp is NULL. However, when glibc is built with no frame pointers, rbp is never NULL during unwind. Instead, we see garbage in the outermost frame. This results into: #17 0x5610b6e9f2d9 in main<+1720> () at ../qemu-io.c:674 #18 0x7f26cc10230e in __libc_start_call_main<+125> () at ../sysdeps/nptl/libc_start_call_main.h:58 Traceback (most recent call last): File "/.../scripts/qemugdb/coroutine.py", line 409, in invoke bt_jmpbuf(coroutine_to_jmpbuf(co_ptr), is_coredump, File "/.../scripts/qemugdb/coroutine.py", line 296, in bt_jmpbuf dump_backtrace(regs) File "/.../scripts/qemugdb/coroutine.py", line 247, in dump_backtrace while rbp: ^^^ gdb.MemoryError: Cannot access memory at address 0x4 Error occurred in Python: Cannot access memory at address 0x4 As a fix, stop on the first link that can't be read. Since gdb.parse_and_eval() returns a lazy value, force the actual memory read by wrapping it in int() and immediately catching potential gdb.MemoryError. Fixes: 772f86839f77 ("scripts/qemu-gdb: Support coroutine dumps in coredump= s") Signed-off-by: Andrey Drobyshev Message-ID: <20260804151743.937694-5-andrey.drobyshev@virtuozzo.com> Tested-by: Fabiano Rosas Reviewed-by: Kevin Wolf Signed-off-by: Kevin Wolf --- scripts/qemugdb/coroutine.py | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/scripts/qemugdb/coroutine.py b/scripts/qemugdb/coroutine.py index 649579378db..da395a1a13e 100644 --- a/scripts/qemugdb/coroutine.py +++ b/scripts/qemugdb/coroutine.py @@ -235,13 +235,24 @@ def dump_backtrace_patched(regs): out =3D run_with_pty(cmd).split('----split----')[1] gdb.write(out) =20 +def read_word(addr): + ''' + Read a 64-bit word, None if that memory isn't accessible. + ''' + try: + # gdb.parse_and_eval() returns lazy values. Force memory access + # by wrapping in int() + return int(gdb.parse_and_eval(f"*(uint64_t *){hex(addr)}")) + except gdb.MemoryError: + return None + def dump_backtrace(regs): ''' Backtrace dump with raw registers, mimic GDB command 'bt'. ''' # Here only rbp and rip that matter.. - rbp =3D regs['rbp'] - rip =3D regs['rip'] + rbp =3D int(regs['rbp']) + rip =3D int(regs['rip']) i =3D 0 =20 while rbp: @@ -250,8 +261,14 @@ def dump_backtrace(regs): # instruction instead of the CALL. Here -1 would work for any # sized CALL instruction. print(f"#{i} {hex(rip)} in {symbol_lookup(rip if i =3D=3D 0 else = rip-1)}") - rip =3D gdb.parse_and_eval(f"*(uint64_t *)(uint64_t)({hex(rbp)} + = 8)") - rbp =3D gdb.parse_and_eval(f"*(uint64_t *)(uint64_t)({hex(rbp)})") + + # The 'rbp !=3D NULL' condition is insufficient: the outermost gli= bc + # frames might leave garbage in rbp if built without frame pointer= s. + # Break the loop on the frame that leads nowhere. + rip, rbp =3D read_word(rbp + 8), read_word(rbp) + if rip is None or rbp is None: + break + i +=3D 1 =20 def dump_backtrace_live(regs): --=20 2.56.0 From nobody Mon Nov 23 05:00:07 2026 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=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1791390994; cv=none; d=zohomail.com; s=zohoarc; b=nPNsy/V8ODKgn0VdV58TYKOZkyUahueJ0zCJy9J3G3SldsKxfzSyK9tmKFL5z9rX1m61LFxdRP/V7v35xpKMqXRzTrHKT7EiqYmtgIFI6nYUPcUlxF/6U53AJCAArlPnXAA0z+N5KGF51iRw/CCVa2XQzfhK9ImhAh21seDScek= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1791390994; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=F5r3uYNUveHIZig2KQjPRXbepG24d9dhnvim5UCJQY0=; b=IZ+ZhCaD/fhURox54XtpW3uSOXxd2qY87qcKApMswewz0KzRHW3oo+JDMuTG9hDPIqZrqlV9HiJpVX+jV5iVWp+eedFdlR31LtlcfRKQfpd4ilBBdZxZzPBhSx0sxx7g49oP9z/eVLMCwvrnpwv9/Y/zyuFIGsBg/6yYp/HKemM= 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=quarantine dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1791390994423733.8792576410883; Wed, 7 Oct 2026 09:36:34 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xEUbN-0002yK-Rc; Wed, 07 Oct 2026 12:34:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xEUbE-0002vj-DD for qemu-devel@nongnu.org; Wed, 07 Oct 2026 12:34:36 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xEUbC-0006L2-OF for qemu-devel@nongnu.org; Wed, 07 Oct 2026 12:34:36 -0400 Received: from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-472-hwUvI5S1NEuCT4TronKLdw-1; Wed, 07 Oct 2026 12:34:30 -0400 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 94EDB1956043; Wed, 7 Oct 2026 16:34:29 +0000 (UTC) Received: from merkur.redhat.com (unknown [10.44.32.219]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 31FD81956087; Wed, 7 Oct 2026 16:34:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1791390874; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=F5r3uYNUveHIZig2KQjPRXbepG24d9dhnvim5UCJQY0=; b=AaKA9n86Y0jt6BSv5WSpb1tpRAUCUb7u3VhbKityo++vjD8iyYkuJJdt0cx7i1n5GNHLZD dKwTNd5qL+L4Wv6sxp1eFKKK41thZaJ5TrMyQcEEWkr6W2MsJGCku91wldOeJSWcort4hh oklsweD6TYlhPO+Ss7fAMtn4EO3tErQ= X-MC-Unique: hwUvI5S1NEuCT4TronKLdw-1 X-Mimecast-MFC-AGG-ID: hwUvI5S1NEuCT4TronKLdw_1791390869 From: Kevin Wolf To: qemu-block@nongnu.org Cc: kwolf@redhat.com, richard.henderson@linaro.org, qemu-devel@nongnu.org Subject: [PULL 09/21] scripts/qemugdb: coroutine: Fix patching pt_regs in the coredump Date: Wed, 7 Oct 2026 18:32:50 +0200 Message-ID: <20261007163302.332250-10-kwolf@redhat.com> In-Reply-To: <20261007163302.332250-1-kwolf@redhat.com> References: <20261007163302.332250-1-kwolf@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 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=lists1p.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=kwolf@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: 10 X-Spam_score: 1.0 X-Spam_bar: + X-Spam_report: (1.0 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.24, 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.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_SBL_CSS=3.335, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1791390996343158500 Content-Type: text/plain; charset="utf-8" From: Andrey Drobyshev patch_regs() and restore_regs() open the coredump with 'ab', i.e. with O_APPEND. This repositions the file offset to the end of the file before every write. The seek() to pt_regs therefore has no effect: instead of patching the saved registers, we just append the binary blob with patched regs at the end of the file. Nothing fails, and the gdb subprocess still prints a plausible backtrace. However it's a backtrace of the crashed thread rather than of the requested coroutine. The .ptregs blob kept for recovery is dead for the same reason as there's never anything to restore. Open the file with 'r+b' so that the writes actually land where seek() points. Fixes: 42f3c143c3a0 ("scripts/qemugdb: coroutine: Add option for obtaining = detailed trace in coredump") Signed-off-by: Andrey Drobyshev Message-ID: <20260804151743.937694-6-andrey.drobyshev@virtuozzo.com> Tested-by: Fabiano Rosas Reviewed-by: Kevin Wolf Signed-off-by: Kevin Wolf --- scripts/qemugdb/coroutine.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/qemugdb/coroutine.py b/scripts/qemugdb/coroutine.py index da395a1a13e..4803914dde0 100644 --- a/scripts/qemugdb/coroutine.py +++ b/scripts/qemugdb/coroutine.py @@ -90,7 +90,7 @@ def patch_regs(self, regs): int_regs =3D {k: int(v) for k, v in regs.items()} patched_ptregs.update(int_regs) =20 - with open(self.coredump, 'ab') as f: + with open(self.coredump, 'r+b') as f: gdb.write(f'assume pt_regs at 0x{self._ptregs_offset:x}\n') f.seek(self._ptregs_offset, 0) gdb.write('writing regs:\n') @@ -106,7 +106,7 @@ def restore_regs(self): return =20 gdb.write(f'\nrestoring original regs in core file {self.coredump}= \n') - with open(self.coredump, 'ab') as f: + with open(self.coredump, 'r+b') as f: gdb.write(f'assume pt_regs at 0x{self._ptregs_offset:x}\n') f.seek(self._ptregs_offset, 0) f.write(struct.pack(f"=3D{len(PT_REGS)}q", --=20 2.56.0 From nobody Mon Nov 23 05:00:07 2026 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=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1791390997; cv=none; d=zohomail.com; s=zohoarc; b=OveHWH8Rigbn24LwiTaNxEGksmD+spW+woHMcrkvf8HHKmUBkmwCiYg6xExT61RLtrBsgav7jSa5OiBduFxJMXFlUrj1cLxNooT3ZJD3PWdG9QICl2BGM9xoa8IRdjstrCxxhHvVmEybcWi06GxDRsqgymwGPLotuyGN0io4SzA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1791390997; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=knz4UwNqK0rnekPFnOdS9qjQtiobf7YrVWDh0LhQfIU=; b=VWwbSNipRYIPXXDqdPzkML8ldaQfUKqUxERvglIKY/HGL6RYPYC93r7T9/q5WC1OfvG65UNB8eZIFJrjQFjQ62ebMwNVj9iKDwsKtpoUzKQCxArZ5YU7mzecSaw3F53ke+bE+lyFsnSlBVJT2RDVDfA05EfHfWwI4zQg/sNBkYA= 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=quarantine dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1791390997209524.764112783578; Wed, 7 Oct 2026 09:36:37 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xEUbe-000347-DD; Wed, 07 Oct 2026 12:35:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xEUbD-0002vA-TY for qemu-devel@nongnu.org; Wed, 07 Oct 2026 12:34:36 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xEUbC-0006Kr-Du for qemu-devel@nongnu.org; Wed, 07 Oct 2026 12:34:35 -0400 Received: from mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-504-nltsNlZTPOy9OnAVg0aJdg-1; Wed, 07 Oct 2026 12:34:32 -0400 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 547F71935DF5; Wed, 7 Oct 2026 16:34:31 +0000 (UTC) Received: from merkur.redhat.com (unknown [10.44.32.219]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 058AC1956087; Wed, 7 Oct 2026 16:34:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1791390873; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=knz4UwNqK0rnekPFnOdS9qjQtiobf7YrVWDh0LhQfIU=; b=KMCSJk0/1vL38VsifrteBlVlj8i20YoHzCELSecY6LPyCIXSLEScwloS67AevsCZKI+Vgq e5xFlk7IcvKDusXWB4wLkNVAyXLnwAwAqJXBN3Nj8u09eBTKI4S5I5Bdlk4/AGnjvh7VIY o+K4wsP+EuvUy0/5nw10C55jWP7vBGA= X-MC-Unique: nltsNlZTPOy9OnAVg0aJdg-1 X-Mimecast-MFC-AGG-ID: nltsNlZTPOy9OnAVg0aJdg_1791390871 From: Kevin Wolf To: qemu-block@nongnu.org Cc: kwolf@redhat.com, richard.henderson@linaro.org, qemu-devel@nongnu.org Subject: [PULL 10/21] scripts/qemugdb: coroutine: Fix '--detailed' description Date: Wed, 7 Oct 2026 18:32:51 +0200 Message-ID: <20261007163302.332250-11-kwolf@redhat.com> In-Reply-To: <20261007163302.332250-1-kwolf@redhat.com> References: <20261007163302.332250-1-kwolf@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 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=lists1p.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=kwolf@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: 10 X-Spam_score: 1.0 X-Spam_bar: + X-Spam_report: (1.0 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.24, 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.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_SBL_CSS=3.335, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1791390998367158500 Content-Type: text/plain; charset="utf-8" From: Andrey Drobyshev Both commands claim the coredump is copied before its registers get patched, but patch_regs() writes to the coredump itself. Describe what actually happens, so that nobody expects their coredump to be left alone. Fix a typo in "runing" while at it. Fixes: 42f3c143c3a0 ("scripts/qemugdb: coroutine: Add option for obtaining = detailed trace in coredump") Signed-off-by: Andrey Drobyshev Message-ID: <20260804151743.937694-7-andrey.drobyshev@virtuozzo.com> Tested-by: Fabiano Rosas Reviewed-by: Kevin Wolf Signed-off-by: Kevin Wolf --- scripts/qemugdb/coroutine.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/scripts/qemugdb/coroutine.py b/scripts/qemugdb/coroutine.py index 4803914dde0..9148264de3c 100644 --- a/scripts/qemugdb/coroutine.py +++ b/scripts/qemugdb/coroutine.py @@ -306,7 +306,7 @@ def bt_jmpbuf(jmpbuf, is_coredump, detailed=3DFalse): # but only works with live sessions. dump_backtrace_live(regs) elif detailed: - # Obtain detailed trace by patching regs in copied coredump + # Obtain detailed trace by patching regs in the coredump in place dump_backtrace_patched(regs) else: # Obtain a non-detailed trace by poor man's unwind @@ -342,9 +342,9 @@ class CoroutineCommand(gdb.Command): Usage: qemu coroutine COROPTR [--detailed] Show backtrace for a coroutine specified by COROPTR =20 - --detailed obtain detailed trace by copying coredump, patc= hing - regs in it, and runing gdb subprocess to get - backtrace from the patched coredump + --detailed obtain detailed trace by patching regs in the + coredump in place, and running gdb subprocess to + get backtrace from the patched coredump """) =20 def __init__(self): @@ -380,9 +380,9 @@ class CoroutineBt(gdb.Command): =20 Usage: qemu bt [--detailed] =20 - --detailed obtain detailed trace by copying coredump, patc= hing - regs in it, and runing gdb subprocess to get - backtrace from the patched coredump + --detailed obtain detailed trace by patching regs in the + coredump in place, and running gdb subprocess to + get backtrace from the patched coredump """) =20 def __init__(self): --=20 2.56.0 From nobody Mon Nov 23 05:00:07 2026 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=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1791391017; cv=none; d=zohomail.com; s=zohoarc; b=CJnKXqjcodr4k8hQX3SoDpuxBt0xtSLp0wt+IFW4x0bvES59yTEhP+/evzjguL5wKM/6N2hA7FFWRdbklO5wy1Vo+KiuUsTpSD+OtuySjBYMCQ1agK3SLR4IbyNSm1OXL4jQ9VnNUThsFloipJBarg4cJyoTkbEjeEaKhdJOstQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1791391017; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=7Fp8cpt4NUe2PL4upuvYP3uT/Q+ZAbBl5lUwHNtHTMY=; b=m9KSQze1ViEj3tzWKTuuK5b4kZUrungaynNbjQtIvG8zq4G8UOLYKx0WmzY/xR0wNRB5+qsxZeyCKIwvVbzs+ORxh7Ea65NGdCeVnOfDqsRBNp6h0uCgM/h7s41red8PtnicUUWvRiNgzAt3WVl1ZUBTn7k+qq/rkj0UFofkOQU= 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=quarantine dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1791391017072911.794027535205; Wed, 7 Oct 2026 09:36:57 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xEUcE-0003hS-RY; Wed, 07 Oct 2026 12:35:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xEUbI-0002xA-Da for qemu-devel@nongnu.org; Wed, 07 Oct 2026 12:34:40 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xEUbG-0006Lk-G8 for qemu-devel@nongnu.org; Wed, 07 Oct 2026 12:34:40 -0400 Received: from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-578-4ASzn1oTMtOGs0HsWUkQPw-1; Wed, 07 Oct 2026 12:34:34 -0400 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 4871019540C9; Wed, 7 Oct 2026 16:34:33 +0000 (UTC) Received: from merkur.redhat.com (unknown [10.44.32.219]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id BAFEC1956087; Wed, 7 Oct 2026 16:34:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1791390877; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=7Fp8cpt4NUe2PL4upuvYP3uT/Q+ZAbBl5lUwHNtHTMY=; b=XwutRlu3F6iCHDSWNWyWoxZWB/UWyxW8BqYPwcH5NQCqRzEHAk0IJJNvAlZ3t/g4owzHM8 dae1WHxBqtHgVjeqinq+KCSXeABKKJaLIT8jCK0/kQM0lzzKlSPp64HU2nlVd0aQEEo/xy uSM1Y/oBI08dmC7ukWJ82lYaK01oagU= X-MC-Unique: 4ASzn1oTMtOGs0HsWUkQPw-1 X-Mimecast-MFC-AGG-ID: 4ASzn1oTMtOGs0HsWUkQPw_1791390873 From: Kevin Wolf To: qemu-block@nongnu.org Cc: kwolf@redhat.com, richard.henderson@linaro.org, qemu-devel@nongnu.org Subject: [PULL 11/21] scripts/qemugdb: coroutine: Handle target absence gracefully Date: Wed, 7 Oct 2026 18:32:52 +0200 Message-ID: <20261007163302.332250-12-kwolf@redhat.com> In-Reply-To: <20261007163302.332250-1-kwolf@redhat.com> References: <20261007163302.332250-1-kwolf@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 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=lists1p.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=kwolf@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: 10 X-Spam_score: 1.0 X-Spam_bar: + X-Spam_report: (1.0 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.24, 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.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_SBL_CSS=3.335, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1791391018512158500 Content-Type: text/plain; charset="utf-8" From: Andrey Drobyshev init_coredump() picks the core dump and the executable out of fixed lines of 'info files' output. With no target loaded that output is empty, and 'qemu bt' dies with: IndexError: list index out of range Search the whole output for the core dump file instead, and take the executable from gdb.current_progspace(), which doesn't need parsing at all. Neither can raise if the pattern isn't there, so an unexpected output format now just means "not a coredump" rather than a traceback. That alone only moves the problem to gdb.execute("bt"), whose gdb.error escapes invoke() and still gets reported as a python traceback. At the same time plain 'bt' just prints 'No stack.'. Let's mimick this behaviour and simply report an error if there's no selected thread. Fixes: 42f3c143c3a0 ("scripts/qemugdb: coroutine: Add option for obtaining = detailed trace in coredump") Signed-off-by: Andrey Drobyshev Message-ID: <20260804151743.937694-8-andrey.drobyshev@virtuozzo.com> Tested-by: Fabiano Rosas Reviewed-by: Kevin Wolf Signed-off-by: Kevin Wolf --- scripts/qemugdb/coroutine.py | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/scripts/qemugdb/coroutine.py b/scripts/qemugdb/coroutine.py index 9148264de3c..3e0b37b73ea 100644 --- a/scripts/qemugdb/coroutine.py +++ b/scripts/qemugdb/coroutine.py @@ -322,16 +322,14 @@ def coroutine_to_jmpbuf(co): def init_coredump(): global coredump =20 - files =3D gdb.execute('info files', False, True).split('\n') + files =3D gdb.execute('info files', False, True) =20 - if not 'core dump' in files[1]: + match =3D re.search(r"core dump file:\s*`([^']+)'", files) + if match is None: return False =20 - core_path =3D re.search("`(.*)'", files[2]).group(1) - exec_path =3D re.match('^Symbols from "(.*)".$', files[0]).group(1) - if coredump is None: - coredump =3D Coredump(core_path, exec_path) + coredump =3D Coredump(match.group(1), gdb.current_progspace().file= name) =20 return True =20 @@ -362,6 +360,9 @@ def invoke(self, arg, from_tty): return self._usage() detailed =3D True if argc =3D=3D 2 else False =20 + if gdb.selected_thread() is None: + raise gdb.GdbError('No stack.') + is_coredump =3D init_coredump() if detailed and not is_coredump: gdb.write('--detailed is only valid when debugging core dumps\= n') @@ -400,6 +401,9 @@ def invoke(self, arg, from_tty): return self._usage() detailed =3D True if argc =3D=3D 1 else False =20 + if gdb.selected_thread() is None: + raise gdb.GdbError('No stack.') + is_coredump =3D init_coredump() if detailed and not is_coredump: gdb.write('--detailed is only valid when debugging core dumps\= n') --=20 2.56.0 From nobody Mon Nov 23 05:00:07 2026 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=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1791391031; cv=none; d=zohomail.com; s=zohoarc; b=OcGv4w2DuR+WTluKVaWlpbSCcsisVzwiTMz1CEWEZHTOqotnpqrJaaazBP6Sm4KcUjrJG0JQSHuVrWiBAL59FNUHMZsG5N8P8THup6eE6yZt+KENH1os+crQqtIpa00p1cc3+xGmiFjPkO/8dw94WkB78fM0dkd4SDklFiyTD+k= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1791391031; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=Ga9IWDFIJdxkVUwl1Dj50P7zJfMzWcEDZR2roBnPnVs=; b=S01tfRVc7JGji+BvuK1SAB+Sqj+LZtio0Ck/nq31lBLxov4zRvxczxyNq9/pGfpXHXgdHYUK8MTpOT70aQs/MkXBjWH5ydPhQUxba99bV6liu7xJ7gLbrT0zcYsxGsXA7+lclIlHLcXnCt3F0ub+Hh+pfKVKCVRX7jbTjS9w3aI= 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=quarantine dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 179139103173094.79258217599909; Wed, 7 Oct 2026 09:37:11 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xEUbn-0003F3-AF; Wed, 07 Oct 2026 12:35:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xEUbI-0002xB-ET for qemu-devel@nongnu.org; Wed, 07 Oct 2026 12:34:40 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xEUbG-0006Lo-L2 for qemu-devel@nongnu.org; Wed, 07 Oct 2026 12:34:40 -0400 Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-320-npxjga1AOxCebPI6SFvk8A-1; Wed, 07 Oct 2026 12:34:35 -0400 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id CF2E71955E87; Wed, 7 Oct 2026 16:34:34 +0000 (UTC) Received: from merkur.redhat.com (unknown [10.44.32.219]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 7D3E01956087; Wed, 7 Oct 2026 16:34:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1791390877; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Ga9IWDFIJdxkVUwl1Dj50P7zJfMzWcEDZR2roBnPnVs=; b=eoExjeQhi6NGKOi6yrTWynTZEZZ9IpepAqDDEa7yVkiX+9vze2R9IWG7rwP0Bk1A8cEKpM z7m0zgno1r4QKKpxazsI+Gr2gcPBOD22kwJOo/8yRXx2d+JaPI9hB6PsylzlUOFC8MtDwJ zE8oAcknjClMF0ZDeY5KijDusdP3yBk= X-MC-Unique: npxjga1AOxCebPI6SFvk8A-1 X-Mimecast-MFC-AGG-ID: npxjga1AOxCebPI6SFvk8A_1791390874 From: Kevin Wolf To: qemu-block@nongnu.org Cc: kwolf@redhat.com, richard.henderson@linaro.org, qemu-devel@nongnu.org Subject: [PULL 12/21] scripts/qemugdb: coroutine: Speed up coroutine lookup in a coredump Date: Wed, 7 Oct 2026 18:32:53 +0200 Message-ID: <20261007163302.332250-13-kwolf@redhat.com> In-Reply-To: <20261007163302.332250-1-kwolf@redhat.com> References: <20261007163302.332250-1-kwolf@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 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=lists1p.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=kwolf@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: 10 X-Spam_score: 1.0 X-Spam_bar: + X-Spam_report: (1.0 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.24, 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.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_SBL_CSS=3.335, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1791391032614158500 Content-Type: text/plain; charset="utf-8" From: Andrey Drobyshev 'qemu bt' on a coredump takes significant time before the first coroutine frame is even printed. The bulk of the delay is resolving a name. co_tls_current is a file static variable, and CoroutineUContext is defined in the same compilation unit, so resolving either of them by name makes gdb expand every symtab in the binary. Look the static up with gdb.lookup_static_symbol(), which is served from the gdb's in-memory index, and scope the type lookup to the symtab that comes with it. This significantly speeds up 'qemu bt' processing. Signed-off-by: Andrey Drobyshev Message-ID: <20260804151743.937694-9-andrey.drobyshev@virtuozzo.com> Tested-by: Fabiano Rosas Reviewed-by: Kevin Wolf Signed-off-by: Kevin Wolf --- scripts/qemugdb/coroutine.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/scripts/qemugdb/coroutine.py b/scripts/qemugdb/coroutine.py index 3e0b37b73ea..21ed7cbaab8 100644 --- a/scripts/qemugdb/coroutine.py +++ b/scripts/qemugdb/coroutine.py @@ -313,7 +313,16 @@ def bt_jmpbuf(jmpbuf, is_coredump, detailed=3DFalse): dump_backtrace(regs) =20 def co_cast(co): - return co.cast(gdb.lookup_type('CoroutineUContext').pointer()) + # Unscoped type lookup expands every symtab in the binary. + # Better scope it to the symtab of the ucontext backend + sym =3D gdb.lookup_static_symbol('co_tls_current') + if sym is not None: + co_type =3D gdb.lookup_type('CoroutineUContext', + sym.symtab.static_block()) + else: + co_type =3D gdb.lookup_type('CoroutineUContext') + + return co.cast(co_type.pointer()) =20 def coroutine_to_jmpbuf(co): coroutine_pointer =3D co_cast(co) @@ -416,7 +425,8 @@ def invoke(self, arg, from_tty): co_ptr =3D gdb.parse_and_eval("qemu_coroutine_self()") else: # Fallback to use hard-coded ucontext vars if it's coredump - co_ptr =3D gdb.parse_and_eval("co_tls_current") + sym =3D gdb.lookup_static_symbol("co_tls_current") + co_ptr =3D sym.value() if sym else gdb.parse_and_eval("co_tls_= current") =20 if co_ptr =3D=3D False: return --=20 2.56.0 From nobody Mon Nov 23 05:00:07 2026 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=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1791391013; cv=none; d=zohomail.com; s=zohoarc; b=C0Rq1QHJtm4kP1Jx6CE2wwVPolk5Im5OFncvzLv56QodwNnGKkFKZszTJCrDH4WJPy8SZwYIZvqbA7AubWSF7oY9YE058cbnYgMEty+VTUi4QM10Qg2twLfu/twoLVE7cjQDPE09TkARA7PQxG595wR6DFLYhSuOyfEcfu4SKHA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1791391013; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=CNEeB10bElCq7MoGCq7Hh45pQlF7H1gVePF8XCdtyG4=; b=Kg9C+upUaLtoRioimJtrqlwCVzuvUmkhHuqaZTmrKhhIKX0DHFJpQ/EnUQzhNyDsGR/gYpDR9YWFj8GahQGLdoOyzWKK1pFT/HtHiTGS9P6ezlWlyJv9vrozhUrcoRVVWxQvcI1JQkTts4wMnaRFRUy9aXsu6FQQWMTYWiJ26A4= 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=quarantine dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1791391013434555.3165182466328; Wed, 7 Oct 2026 09:36:53 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xEUcc-00049f-6B; Wed, 07 Oct 2026 12:36:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xEUbM-0002yM-5c for qemu-devel@nongnu.org; Wed, 07 Oct 2026 12:34:44 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xEUbK-0006MI-1f for qemu-devel@nongnu.org; Wed, 07 Oct 2026 12:34:43 -0400 Received: from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-482--CbCFNUkP4iWV9v1htchvw-1; Wed, 07 Oct 2026 12:34:37 -0400 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 8E1D119540CF; Wed, 7 Oct 2026 16:34:36 +0000 (UTC) Received: from merkur.redhat.com (unknown [10.44.32.219]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 3E5781956087; Wed, 7 Oct 2026 16:34:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1791390880; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=CNEeB10bElCq7MoGCq7Hh45pQlF7H1gVePF8XCdtyG4=; b=bq8Xli/y1iUA5nS1YkDnH/Q4p9+JD9+zLtqosFg0m93DmLE0X3Wxcumo9DquNBaHBsj5Sd q4PgnJ53HzFHLRFJZY0hDTZjOO5Z4FPOHlmbS4tI5/z4Ozf5Dr1Rqw8GQ7C+cpswjDzrBA HlgzzE6rVMzatW7yx4FTNVylcDBmyJQ= X-MC-Unique: -CbCFNUkP4iWV9v1htchvw-1 X-Mimecast-MFC-AGG-ID: -CbCFNUkP4iWV9v1htchvw_1791390876 From: Kevin Wolf To: qemu-block@nongnu.org Cc: kwolf@redhat.com, richard.henderson@linaro.org, qemu-devel@nongnu.org Subject: [PULL 13/21] scripts/qemugdb: coroutine: Don't touch the coredump for a plain backtrace Date: Wed, 7 Oct 2026 18:32:54 +0200 Message-ID: <20261007163302.332250-14-kwolf@redhat.com> In-Reply-To: <20261007163302.332250-1-kwolf@redhat.com> References: <20261007163302.332250-1-kwolf@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 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=lists1p.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=kwolf@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: 10 X-Spam_score: 1.0 X-Spam_bar: + X-Spam_report: (1.0 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.24, 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.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_SBL_CSS=3.335, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1791391014465158500 Content-Type: text/plain; charset="utf-8" From: Andrey Drobyshev init_coredump() creates a Coredump object for every coredump session. That implies opening and scanning the actual coredump file. For non-detailed 'qemu bt' invocation we don't really need it. Les't only create the object when the core is about to be patched, i.e. for '--detailed'. Fixes: 42f3c143c3a0 ("scripts/qemugdb: coroutine: Add option for obtaining = detailed trace in coredump") Signed-off-by: Andrey Drobyshev Message-ID: <20260804151743.937694-10-andrey.drobyshev@virtuozzo.com> Tested-by: Fabiano Rosas Reviewed-by: Kevin Wolf Signed-off-by: Kevin Wolf --- scripts/qemugdb/coroutine.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/scripts/qemugdb/coroutine.py b/scripts/qemugdb/coroutine.py index 21ed7cbaab8..edc1f3cc69f 100644 --- a/scripts/qemugdb/coroutine.py +++ b/scripts/qemugdb/coroutine.py @@ -328,7 +328,7 @@ def coroutine_to_jmpbuf(co): coroutine_pointer =3D co_cast(co) return coroutine_pointer['env']['__jmpbuf'] =20 -def init_coredump(): +def init_coredump(detailed=3DFalse): global coredump =20 files =3D gdb.execute('info files', False, True) @@ -337,7 +337,8 @@ def init_coredump(): if match is None: return False =20 - if coredump is None: + # The object is only needed to patch the coredump + if detailed and coredump is None: coredump =3D Coredump(match.group(1), gdb.current_progspace().file= name) =20 return True @@ -372,7 +373,7 @@ def invoke(self, arg, from_tty): if gdb.selected_thread() is None: raise gdb.GdbError('No stack.') =20 - is_coredump =3D init_coredump() + is_coredump =3D init_coredump(detailed) if detailed and not is_coredump: gdb.write('--detailed is only valid when debugging core dumps\= n') return @@ -381,7 +382,7 @@ def invoke(self, arg, from_tty): bt_jmpbuf(coroutine_to_jmpbuf(gdb.parse_and_eval(argv[0])), is_coredump, detailed=3Ddetailed) finally: - if is_coredump: + if coredump is not None: coredump.restore_regs() =20 class CoroutineBt(gdb.Command): @@ -413,7 +414,7 @@ def invoke(self, arg, from_tty): if gdb.selected_thread() is None: raise gdb.GdbError('No stack.') =20 - is_coredump =3D init_coredump() + is_coredump =3D init_coredump(detailed) if detailed and not is_coredump: gdb.write('--detailed is only valid when debugging core dumps\= n') return @@ -441,7 +442,7 @@ def invoke(self, arg, from_tty): bt_jmpbuf(coroutine_to_jmpbuf(co_ptr), is_coredump, detailed=3Ddetailed) finally: - if is_coredump: + if coredump is not None: coredump.restore_regs() =20 class CoroutineSPFunction(gdb.Function): --=20 2.56.0 From nobody Mon Nov 23 05:00:07 2026 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=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1791390998; cv=none; d=zohomail.com; s=zohoarc; b=NcwI9fwWWG8Gcj72gqQakvZ3sQMRmApKJepIP2Ivs7M8+Y90bd+1LetYRGvgZHKu/tcn09ET4PfQ0Aa1+D8ZBaOjNSHLns9NhX9senyjdSVkTuHQRwBwWB2WSltkXUX71JSW5Qr4w5ywRDkq0J8GSijnksBBiNBrvwMGtwXeBO4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1791390998; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=efr0EQwqaM7nIRbamALYx1igTTFZZhPon5osZVa27+c=; b=WPoIwB9xHHsG5XZErFzaev9VwHx1AzQkQXZ6b/CzD2ofMYHI7cnXP4l7bONZy67s8SNIcREBX++B0RoK+rquXKgkdUfTgsuTCqSS36UzR478amHK1cjMtFarDfIB0PB/V6mEGXejmLR7La3vAns0bz43Edh1StU8zzHVydHMIes= 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=quarantine dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1791390998511146.38759970481; Wed, 7 Oct 2026 09:36:38 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xEUcj-0004Yl-Ku; Wed, 07 Oct 2026 12:36:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xEUbT-000303-Rv for qemu-devel@nongnu.org; Wed, 07 Oct 2026 12:34:54 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xEUbL-0006Ml-V2 for qemu-devel@nongnu.org; Wed, 07 Oct 2026 12:34:49 -0400 Received: from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-678-1SJd7xzsNAS8rAwxk2fbAA-1; Wed, 07 Oct 2026 12:34:39 -0400 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id C6E23185FE58; Wed, 7 Oct 2026 16:34:38 +0000 (UTC) Received: from merkur.redhat.com (unknown [10.44.32.219]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 0565E1956087; Wed, 7 Oct 2026 16:34:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1791390883; 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=efr0EQwqaM7nIRbamALYx1igTTFZZhPon5osZVa27+c=; b=MfC1NwLXL55zQndMQQRELnr2PvqlRMm5MSh4SFGamLfodp42iT4OvOee64HfEr63hmE3aJ Uv1SgJpXEkMbzu9RIbSmbnkYNZycPLQ33W8o7XDKAMZS/Qxp2msjeC6GdLlT68d1TkktVY IXYWmoq50jEDXudK2tixjfrGP8gq65g= X-MC-Unique: 1SJd7xzsNAS8rAwxk2fbAA-1 X-Mimecast-MFC-AGG-ID: 1SJd7xzsNAS8rAwxk2fbAA_1791390878 From: Kevin Wolf To: qemu-block@nongnu.org Cc: kwolf@redhat.com, richard.henderson@linaro.org, qemu-devel@nongnu.org Subject: [PULL 14/21] iotests: remove unused 'owner=' variable assignment Date: Wed, 7 Oct 2026 18:32:55 +0200 Message-ID: <20261007163302.332250-15-kwolf@redhat.com> In-Reply-To: <20261007163302.332250-1-kwolf@redhat.com> References: <20261007163302.332250-1-kwolf@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 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=lists1p.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=kwolf@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -22 X-Spam_score: -2.3 X-Spam_bar: -- X-Spam_report: (-2.3 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.24, 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.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1791391000573158500 From: Daniel P. Berrang=C3=A9 Most, but not all, of the shell I/O tests assign an email address to the 'owner' shell variable. This variable is never used for anything so gets reported as a dead assignment by shellcheck. The same is also not done for the python I/O tests, though some include owner=3D in a comment. Mostly the 'owner=3D' variable seems to be an alternative to expressing an "Author: NAME " comment, but without the NAME. While they could be converted to Author comments, this does not have a benefit over using Git history and are not widely used in QEMU source code. Git records activity over time so is more representative than the initial author. Meanwhile the MAINTAINERS file, also expresses a notion of ownership over the maint of files. Signed-off-by: Daniel P. Berrang=C3=A9 Message-ID: <20260810141206.525581-1-berrange@redhat.com> Signed-off-by: Kevin Wolf --- tests/qemu-iotests/001 | 2 -- tests/qemu-iotests/002 | 2 -- tests/qemu-iotests/003 | 2 -- tests/qemu-iotests/004 | 2 -- tests/qemu-iotests/005 | 2 -- tests/qemu-iotests/007 | 2 -- tests/qemu-iotests/008 | 2 -- tests/qemu-iotests/009 | 2 -- tests/qemu-iotests/010 | 2 -- tests/qemu-iotests/011 | 2 -- tests/qemu-iotests/012 | 2 -- tests/qemu-iotests/013 | 2 -- tests/qemu-iotests/014 | 2 -- tests/qemu-iotests/015 | 2 -- tests/qemu-iotests/017 | 2 -- tests/qemu-iotests/018 | 2 -- tests/qemu-iotests/019 | 2 -- tests/qemu-iotests/020 | 2 -- tests/qemu-iotests/021 | 2 -- tests/qemu-iotests/022 | 2 -- tests/qemu-iotests/023 | 2 -- tests/qemu-iotests/024 | 2 -- tests/qemu-iotests/025 | 2 -- tests/qemu-iotests/026 | 2 -- tests/qemu-iotests/027 | 2 -- tests/qemu-iotests/028 | 2 -- tests/qemu-iotests/029 | 2 -- tests/qemu-iotests/031 | 2 -- tests/qemu-iotests/032 | 2 -- tests/qemu-iotests/033 | 2 -- tests/qemu-iotests/034 | 2 -- tests/qemu-iotests/035 | 2 -- tests/qemu-iotests/036 | 2 -- tests/qemu-iotests/037 | 2 -- tests/qemu-iotests/038 | 2 -- tests/qemu-iotests/039 | 2 -- tests/qemu-iotests/042 | 2 -- tests/qemu-iotests/043 | 2 -- tests/qemu-iotests/046 | 2 -- tests/qemu-iotests/047 | 2 -- tests/qemu-iotests/048 | 2 -- tests/qemu-iotests/049 | 2 -- tests/qemu-iotests/050 | 2 -- tests/qemu-iotests/051 | 2 -- tests/qemu-iotests/052 | 2 -- tests/qemu-iotests/053 | 2 -- tests/qemu-iotests/054 | 2 -- tests/qemu-iotests/058 | 2 -- tests/qemu-iotests/059 | 2 -- tests/qemu-iotests/060 | 2 -- tests/qemu-iotests/061 | 2 -- tests/qemu-iotests/062 | 2 -- tests/qemu-iotests/063 | 2 -- tests/qemu-iotests/064 | 2 -- tests/qemu-iotests/066 | 2 -- tests/qemu-iotests/068 | 2 -- tests/qemu-iotests/069 | 2 -- tests/qemu-iotests/070 | 2 -- tests/qemu-iotests/071 | 2 -- tests/qemu-iotests/072 | 2 -- tests/qemu-iotests/073 | 2 -- tests/qemu-iotests/074 | 2 -- tests/qemu-iotests/075 | 2 -- tests/qemu-iotests/076 | 2 -- tests/qemu-iotests/077 | 2 -- tests/qemu-iotests/078 | 2 -- tests/qemu-iotests/079 | 2 -- tests/qemu-iotests/080 | 2 -- tests/qemu-iotests/081 | 2 -- tests/qemu-iotests/082 | 2 -- tests/qemu-iotests/083 | 2 -- tests/qemu-iotests/084 | 2 -- tests/qemu-iotests/085 | 2 -- tests/qemu-iotests/086 | 2 -- tests/qemu-iotests/087 | 2 -- tests/qemu-iotests/088 | 2 -- tests/qemu-iotests/089 | 2 -- tests/qemu-iotests/090 | 2 -- tests/qemu-iotests/091 | 2 -- tests/qemu-iotests/092 | 2 -- tests/qemu-iotests/094 | 2 -- tests/qemu-iotests/095 | 2 -- tests/qemu-iotests/097 | 2 -- tests/qemu-iotests/098 | 2 -- tests/qemu-iotests/099 | 2 -- tests/qemu-iotests/101 | 2 -- tests/qemu-iotests/102 | 2 -- tests/qemu-iotests/103 | 2 -- tests/qemu-iotests/104 | 2 -- tests/qemu-iotests/105 | 2 -- tests/qemu-iotests/106 | 2 -- tests/qemu-iotests/107 | 2 -- tests/qemu-iotests/108 | 2 -- tests/qemu-iotests/109 | 2 -- tests/qemu-iotests/110 | 2 -- tests/qemu-iotests/111 | 2 -- tests/qemu-iotests/112 | 2 -- tests/qemu-iotests/113 | 2 -- tests/qemu-iotests/114 | 2 -- tests/qemu-iotests/115 | 2 -- tests/qemu-iotests/116 | 2 -- tests/qemu-iotests/117 | 2 -- tests/qemu-iotests/119 | 2 -- tests/qemu-iotests/120 | 2 -- tests/qemu-iotests/121 | 2 -- tests/qemu-iotests/122 | 2 -- tests/qemu-iotests/123 | 2 -- tests/qemu-iotests/125 | 2 -- tests/qemu-iotests/126 | 2 -- tests/qemu-iotests/127 | 2 -- tests/qemu-iotests/128 | 2 -- tests/qemu-iotests/130 | 2 -- tests/qemu-iotests/131 | 2 -- tests/qemu-iotests/133 | 2 -- tests/qemu-iotests/134 | 2 -- tests/qemu-iotests/135 | 2 -- tests/qemu-iotests/137 | 2 -- tests/qemu-iotests/138 | 2 -- tests/qemu-iotests/140 | 2 -- tests/qemu-iotests/142 | 2 -- tests/qemu-iotests/143 | 2 -- tests/qemu-iotests/144 | 2 -- tests/qemu-iotests/145 | 2 -- tests/qemu-iotests/146 | 2 -- tests/qemu-iotests/150 | 2 -- tests/qemu-iotests/153 | 2 -- tests/qemu-iotests/154 | 2 -- tests/qemu-iotests/156 | 2 -- tests/qemu-iotests/157 | 2 -- tests/qemu-iotests/158 | 2 -- tests/qemu-iotests/159 | 1 - tests/qemu-iotests/160 | 1 - tests/qemu-iotests/161 | 2 -- tests/qemu-iotests/162 | 2 -- tests/qemu-iotests/170 | 1 - tests/qemu-iotests/171 | 2 -- tests/qemu-iotests/172 | 2 -- tests/qemu-iotests/173 | 2 -- tests/qemu-iotests/174 | 2 -- tests/qemu-iotests/175 | 2 -- tests/qemu-iotests/176 | 2 -- tests/qemu-iotests/177 | 2 -- tests/qemu-iotests/178 | 2 -- tests/qemu-iotests/179 | 2 -- tests/qemu-iotests/181 | 2 -- tests/qemu-iotests/182 | 2 -- tests/qemu-iotests/184 | 2 -- tests/qemu-iotests/185 | 2 -- tests/qemu-iotests/186 | 2 -- tests/qemu-iotests/187 | 2 -- tests/qemu-iotests/188 | 2 -- tests/qemu-iotests/189 | 2 -- tests/qemu-iotests/190 | 2 -- tests/qemu-iotests/191 | 2 -- tests/qemu-iotests/192 | 2 -- tests/qemu-iotests/195 | 2 -- tests/qemu-iotests/197 | 2 -- tests/qemu-iotests/198 | 2 -- tests/qemu-iotests/200 | 2 -- tests/qemu-iotests/204 | 2 -- tests/qemu-iotests/225 | 2 -- tests/qemu-iotests/226 | 2 -- tests/qemu-iotests/227 | 2 -- tests/qemu-iotests/229 | 2 -- tests/qemu-iotests/231 | 2 -- tests/qemu-iotests/232 | 2 -- tests/qemu-iotests/233 | 2 -- tests/qemu-iotests/236 | 1 - tests/qemu-iotests/239 | 2 -- tests/qemu-iotests/243 | 2 -- tests/qemu-iotests/244 | 2 -- tests/qemu-iotests/246 | 1 - tests/qemu-iotests/247 | 2 -- tests/qemu-iotests/249 | 2 -- tests/qemu-iotests/250 | 2 -- tests/qemu-iotests/251 | 2 -- tests/qemu-iotests/252 | 2 -- tests/qemu-iotests/256 | 1 - tests/qemu-iotests/257 | 1 - tests/qemu-iotests/259 | 2 -- tests/qemu-iotests/261 | 2 -- tests/qemu-iotests/263 | 2 -- tests/qemu-iotests/267 | 2 -- tests/qemu-iotests/268 | 2 -- tests/qemu-iotests/271 | 2 -- tests/qemu-iotests/284 | 2 -- tests/qemu-iotests/287 | 2 -- tests/qemu-iotests/288 | 2 -- tests/qemu-iotests/290 | 2 -- tests/qemu-iotests/292 | 2 -- tests/qemu-iotests/293 | 2 -- tests/qemu-iotests/294 | 2 -- tests/qemu-iotests/302 | 1 - tests/qemu-iotests/304 | 1 - tests/qemu-iotests/305 | 2 -- tests/qemu-iotests/312 | 2 -- tests/qemu-iotests/313 | 2 -- tests/qemu-iotests/314 | 2 -- tests/qemu-iotests/tests/commit-zero-blocks | 2 -- tests/qemu-iotests/tests/detect-zeroes-registered-buf | 2 -- tests/qemu-iotests/tests/iothreads-resize | 2 -- tests/qemu-iotests/tests/nbd-in-qcow2-chain | 2 -- tests/qemu-iotests/tests/nbd-tls-iothread | 2 -- tests/qemu-iotests/tests/parallels-checks | 2 -- tests/qemu-iotests/tests/qcow2-encryption | 2 -- tests/qemu-iotests/tests/qcow2-internal-snapshots | 2 -- tests/qemu-iotests/tests/qemu-img-close-errors | 2 -- tests/qemu-iotests/tests/qsd-jobs | 2 -- tests/qemu-iotests/tests/regression-vhdx-log | 2 -- 209 files changed, 409 deletions(-) diff --git a/tests/qemu-iotests/001 b/tests/qemu-iotests/001 index 6f980fd34d6..d26c13ea034 100755 --- a/tests/qemu-iotests/001 +++ b/tests/qemu-iotests/001 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dhch@lst.de =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/002 b/tests/qemu-iotests/002 index 5ce16475312..865fa0626eb 100755 --- a/tests/qemu-iotests/002 +++ b/tests/qemu-iotests/002 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dhch@lst.de =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/003 b/tests/qemu-iotests/003 index 03f902a83cb..0594e24b0ec 100755 --- a/tests/qemu-iotests/003 +++ b/tests/qemu-iotests/003 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dhch@lst.de =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/004 b/tests/qemu-iotests/004 index e955579a671..5591717477b 100755 --- a/tests/qemu-iotests/004 +++ b/tests/qemu-iotests/004 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dhch@lst.de =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/005 b/tests/qemu-iotests/005 index ba377543b01..ddf72296b42 100755 --- a/tests/qemu-iotests/005 +++ b/tests/qemu-iotests/005 @@ -22,8 +22,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dhch@lst.de =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/007 b/tests/qemu-iotests/007 index 936d3f14fba..dedee97181a 100755 --- a/tests/qemu-iotests/007 +++ b/tests/qemu-iotests/007 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dkwolf@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/008 b/tests/qemu-iotests/008 index fa4990b5139..aee45f90cce 100755 --- a/tests/qemu-iotests/008 +++ b/tests/qemu-iotests/008 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dhch@lst.de =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/009 b/tests/qemu-iotests/009 index efa852bad30..b6abcf64633 100755 --- a/tests/qemu-iotests/009 +++ b/tests/qemu-iotests/009 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dkwolf@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/010 b/tests/qemu-iotests/010 index 4ae9027b475..de4067fdb0a 100755 --- a/tests/qemu-iotests/010 +++ b/tests/qemu-iotests/010 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dkwolf@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/011 b/tests/qemu-iotests/011 index 5c99ac987ff..30deccec5f9 100755 --- a/tests/qemu-iotests/011 +++ b/tests/qemu-iotests/011 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dkwolf@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/012 b/tests/qemu-iotests/012 index 3a24d2ca8d2..6fda3de6b92 100755 --- a/tests/qemu-iotests/012 +++ b/tests/qemu-iotests/012 @@ -21,8 +21,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dhch@lst.de =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/013 b/tests/qemu-iotests/013 index d39d0cd88b6..741292342be 100755 --- a/tests/qemu-iotests/013 +++ b/tests/qemu-iotests/013 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dkwolf@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/014 b/tests/qemu-iotests/014 index 2d23469332c..edc628ba516 100755 --- a/tests/qemu-iotests/014 +++ b/tests/qemu-iotests/014 @@ -21,8 +21,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dkwolf@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/015 b/tests/qemu-iotests/015 index 40c23235a62..e715b596525 100755 --- a/tests/qemu-iotests/015 +++ b/tests/qemu-iotests/015 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dkwolf@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/017 b/tests/qemu-iotests/017 index 2024b85e797..d26c76621cb 100755 --- a/tests/qemu-iotests/017 +++ b/tests/qemu-iotests/017 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dkwolf@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/018 b/tests/qemu-iotests/018 index 6fcebbb40ec..7206ccc8735 100755 --- a/tests/qemu-iotests/018 +++ b/tests/qemu-iotests/018 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dkwolf@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/019 b/tests/qemu-iotests/019 index fa4458fd27b..3f88b793cb2 100755 --- a/tests/qemu-iotests/019 +++ b/tests/qemu-iotests/019 @@ -21,8 +21,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dkwolf@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/020 b/tests/qemu-iotests/020 index 60c672e17b9..89acea62105 100755 --- a/tests/qemu-iotests/020 +++ b/tests/qemu-iotests/020 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dkwolf@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/021 b/tests/qemu-iotests/021 index 0fc89df2fe8..14a24f533d4 100755 --- a/tests/qemu-iotests/021 +++ b/tests/qemu-iotests/021 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dhch@lst.de =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/022 b/tests/qemu-iotests/022 index d98d1ea90fe..d0974674792 100755 --- a/tests/qemu-iotests/022 +++ b/tests/qemu-iotests/022 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dkwolf@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/023 b/tests/qemu-iotests/023 index d19d13ff5dc..655e2250e04 100755 --- a/tests/qemu-iotests/023 +++ b/tests/qemu-iotests/023 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dkwolf@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/024 b/tests/qemu-iotests/024 index 10be2bd8452..48e1f157a9d 100755 --- a/tests/qemu-iotests/024 +++ b/tests/qemu-iotests/024 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dkwolf@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/025 b/tests/qemu-iotests/025 index 5771ea9200c..233bad58e29 100755 --- a/tests/qemu-iotests/025 +++ b/tests/qemu-iotests/025 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dstefanha@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/026 b/tests/qemu-iotests/026 index d37e266dade..f43a2bd55b3 100755 --- a/tests/qemu-iotests/026 +++ b/tests/qemu-iotests/026 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dkwolf@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/027 b/tests/qemu-iotests/027 index 24c93627bb3..3c900da7b5f 100755 --- a/tests/qemu-iotests/027 +++ b/tests/qemu-iotests/027 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dstefanha@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/028 b/tests/qemu-iotests/028 index 28f01439c52..e19b4a7ed63 100755 --- a/tests/qemu-iotests/028 +++ b/tests/qemu-iotests/028 @@ -22,8 +22,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dstefanha@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/029 b/tests/qemu-iotests/029 index 7f4849b97bf..d13e14c2d9c 100755 --- a/tests/qemu-iotests/029 +++ b/tests/qemu-iotests/029 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dkwolf@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/031 b/tests/qemu-iotests/031 index ee587b1606f..5c825a12566 100755 --- a/tests/qemu-iotests/031 +++ b/tests/qemu-iotests/031 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dkwolf@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/032 b/tests/qemu-iotests/032 index ebbe7cb0ba1..560af4929da 100755 --- a/tests/qemu-iotests/032 +++ b/tests/qemu-iotests/032 @@ -21,8 +21,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dkwolf@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/033 b/tests/qemu-iotests/033 index 4bc7a071bdf..3165e1a8d67 100755 --- a/tests/qemu-iotests/033 +++ b/tests/qemu-iotests/033 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dpbonzini@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/034 b/tests/qemu-iotests/034 index ac1af8f6464..29d12ea2b3c 100755 --- a/tests/qemu-iotests/034 +++ b/tests/qemu-iotests/034 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dkwolf@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/035 b/tests/qemu-iotests/035 index 0c0c4fdd42f..19a38b51d96 100755 --- a/tests/qemu-iotests/035 +++ b/tests/qemu-iotests/035 @@ -20,8 +20,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dkwolf@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/036 b/tests/qemu-iotests/036 index 16a401985ca..584f38e29ff 100755 --- a/tests/qemu-iotests/036 +++ b/tests/qemu-iotests/036 @@ -22,8 +22,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dstefanha@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/037 b/tests/qemu-iotests/037 index 85b1015056e..5b56c5214cf 100755 --- a/tests/qemu-iotests/037 +++ b/tests/qemu-iotests/037 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dkwolf@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/038 b/tests/qemu-iotests/038 index 65bf7a753e8..989335c4682 100755 --- a/tests/qemu-iotests/038 +++ b/tests/qemu-iotests/038 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dkwolf@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/039 b/tests/qemu-iotests/039 index 94a8bfe754e..8fe677ce731 100755 --- a/tests/qemu-iotests/039 +++ b/tests/qemu-iotests/039 @@ -22,8 +22,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dstefanha@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/042 b/tests/qemu-iotests/042 index 411e54ae047..26c35e1430c 100755 --- a/tests/qemu-iotests/042 +++ b/tests/qemu-iotests/042 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dkwolf@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/043 b/tests/qemu-iotests/043 index f8ce3288db4..5da6d6b607a 100755 --- a/tests/qemu-iotests/043 +++ b/tests/qemu-iotests/043 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dstefanha@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/046 b/tests/qemu-iotests/046 index 0d84b5c1c75..2242fad455b 100755 --- a/tests/qemu-iotests/046 +++ b/tests/qemu-iotests/046 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dkwolf@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/047 b/tests/qemu-iotests/047 index 8dd21e0a818..84bc71d6635 100755 --- a/tests/qemu-iotests/047 +++ b/tests/qemu-iotests/047 @@ -20,8 +20,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dkwolf@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/048 b/tests/qemu-iotests/048 index bf8e4bf5282..884b330b6b2 100755 --- a/tests/qemu-iotests/048 +++ b/tests/qemu-iotests/048 @@ -20,8 +20,6 @@ ## along with this program. If not, see . ## # -# creator -owner=3Dmrezanin@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/049 b/tests/qemu-iotests/049 index a1b922060db..4f41c50df2d 100755 --- a/tests/qemu-iotests/049 +++ b/tests/qemu-iotests/049 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dkwolf@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/050 b/tests/qemu-iotests/050 index 1de01c312e2..934f6c91877 100755 --- a/tests/qemu-iotests/050 +++ b/tests/qemu-iotests/050 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dpbonzini@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/051 b/tests/qemu-iotests/051 index a722c0c1bc8..25dff9d4eaa 100755 --- a/tests/qemu-iotests/051 +++ b/tests/qemu-iotests/051 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dkwolf@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/052 b/tests/qemu-iotests/052 index 2f23ac9b65a..8e76c05f47f 100755 --- a/tests/qemu-iotests/052 +++ b/tests/qemu-iotests/052 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dstefanha@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/053 b/tests/qemu-iotests/053 index 9a2958d42dc..c89128094ce 100755 --- a/tests/qemu-iotests/053 +++ b/tests/qemu-iotests/053 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dstefanha@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/054 b/tests/qemu-iotests/054 index ea147012c31..d3dd3fa88bb 100755 --- a/tests/qemu-iotests/054 +++ b/tests/qemu-iotests/054 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dkwolf@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/058 b/tests/qemu-iotests/058 index ce35ff4ee0a..8102c01d5e4 100755 --- a/tests/qemu-iotests/058 +++ b/tests/qemu-iotests/058 @@ -21,8 +21,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dxiawenc@linux.vnet.ibm.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/059 b/tests/qemu-iotests/059 index 0634c7bd928..49c58ad05c3 100755 --- a/tests/qemu-iotests/059 +++ b/tests/qemu-iotests/059 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dfam@euphon.net =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/060 b/tests/qemu-iotests/060 index 8d06f84df16..ccdc96b7f8b 100755 --- a/tests/qemu-iotests/060 +++ b/tests/qemu-iotests/060 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dhreitz@redhat.com =20 seq=3D"$(basename $0)" echo "QA output created by $seq" diff --git a/tests/qemu-iotests/061 b/tests/qemu-iotests/061 index b71ac097d14..fd7c3fa940b 100755 --- a/tests/qemu-iotests/061 +++ b/tests/qemu-iotests/061 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dhreitz@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/062 b/tests/qemu-iotests/062 index 6a71bf14779..4d12b860c90 100755 --- a/tests/qemu-iotests/062 +++ b/tests/qemu-iotests/062 @@ -20,8 +20,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dhreitz@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/063 b/tests/qemu-iotests/063 index 3a44758053c..66f90ee518e 100755 --- a/tests/qemu-iotests/063 +++ b/tests/qemu-iotests/063 @@ -20,8 +20,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dalex@alex.org.uk =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/064 b/tests/qemu-iotests/064 index 21e25cf39f6..21b27ce88b5 100755 --- a/tests/qemu-iotests/064 +++ b/tests/qemu-iotests/064 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dcodyprime@gmail.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/066 b/tests/qemu-iotests/066 index 336d8565ddf..1b379c5faf2 100755 --- a/tests/qemu-iotests/066 +++ b/tests/qemu-iotests/066 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dhreitz@redhat.com =20 seq=3D"$(basename $0)" echo "QA output created by $seq" diff --git a/tests/qemu-iotests/068 b/tests/qemu-iotests/068 index 11b660a8b7c..0a1ce25d6ee 100755 --- a/tests/qemu-iotests/068 +++ b/tests/qemu-iotests/068 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dhreitz@redhat.com =20 seq=3D"$(basename $0)" echo "QA output created by $seq" diff --git a/tests/qemu-iotests/069 b/tests/qemu-iotests/069 index 6647e118613..a1da1ec3c79 100755 --- a/tests/qemu-iotests/069 +++ b/tests/qemu-iotests/069 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dhreitz@redhat.com =20 seq=3D"$(basename $0)" echo "QA output created by $seq" diff --git a/tests/qemu-iotests/070 b/tests/qemu-iotests/070 index edb71afbe37..28e2ba480e7 100755 --- a/tests/qemu-iotests/070 +++ b/tests/qemu-iotests/070 @@ -20,8 +20,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dcodyprime@gmail.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/071 b/tests/qemu-iotests/071 index 83c4ce6314c..fc4eba8e180 100755 --- a/tests/qemu-iotests/071 +++ b/tests/qemu-iotests/071 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dhreitz@redhat.com =20 seq=3D"$(basename $0)" echo "QA output created by $seq" diff --git a/tests/qemu-iotests/072 b/tests/qemu-iotests/072 index 662ede961c4..e97f853f64d 100755 --- a/tests/qemu-iotests/072 +++ b/tests/qemu-iotests/072 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dhreitz@redhat.com =20 seq=3D"$(basename $0)" echo "QA output created by $seq" diff --git a/tests/qemu-iotests/073 b/tests/qemu-iotests/073 index 90afd420bdb..840d36ed696 100755 --- a/tests/qemu-iotests/073 +++ b/tests/qemu-iotests/073 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dkwolf@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/074 b/tests/qemu-iotests/074 index ee73e636b2f..b3e9510b898 100755 --- a/tests/qemu-iotests/074 +++ b/tests/qemu-iotests/074 @@ -20,8 +20,6 @@ ## along with this program. If not, see . ## # -# creator -owner=3Dfam@euphon.net =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/075 b/tests/qemu-iotests/075 index ca2ed2a05c4..f54727074ae 100755 --- a/tests/qemu-iotests/075 +++ b/tests/qemu-iotests/075 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dstefanha@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/076 b/tests/qemu-iotests/076 index 1a8927d765d..e9069bccc11 100755 --- a/tests/qemu-iotests/076 +++ b/tests/qemu-iotests/076 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dkwolf@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/077 b/tests/qemu-iotests/077 index fbb90d80361..adbd5db92d3 100755 --- a/tests/qemu-iotests/077 +++ b/tests/qemu-iotests/077 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dkwolf@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/078 b/tests/qemu-iotests/078 index 0b48b7f137f..e4d2165f189 100755 --- a/tests/qemu-iotests/078 +++ b/tests/qemu-iotests/078 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dkwolf@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/079 b/tests/qemu-iotests/079 index 793e1f9d08f..053df1c93d1 100755 --- a/tests/qemu-iotests/079 +++ b/tests/qemu-iotests/079 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dhutao@cn.fujitsu.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/080 b/tests/qemu-iotests/080 index 33065006837..882161c1406 100755 --- a/tests/qemu-iotests/080 +++ b/tests/qemu-iotests/080 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dkwolf@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/081 b/tests/qemu-iotests/081 index d9e729f674c..1d4682ec058 100755 --- a/tests/qemu-iotests/081 +++ b/tests/qemu-iotests/081 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dbenoit@irqsave.net =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/082 b/tests/qemu-iotests/082 index 021b9bef063..e1ff3575297 100755 --- a/tests/qemu-iotests/082 +++ b/tests/qemu-iotests/082 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dkwolf@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/083 b/tests/qemu-iotests/083 index bc32b537b2b..d5906ea29ff 100755 --- a/tests/qemu-iotests/083 +++ b/tests/qemu-iotests/083 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dstefanha@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/084 b/tests/qemu-iotests/084 index 1181cb7cd06..a397adc9a14 100755 --- a/tests/qemu-iotests/084 +++ b/tests/qemu-iotests/084 @@ -20,8 +20,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dcodyprime@gmail.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/085 b/tests/qemu-iotests/085 index 3fb7b0b5c8c..3256791f249 100755 --- a/tests/qemu-iotests/085 +++ b/tests/qemu-iotests/085 @@ -24,8 +24,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dcodyprime@gmail.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/086 b/tests/qemu-iotests/086 index c055e7bfe18..15606bc3f9b 100755 --- a/tests/qemu-iotests/086 +++ b/tests/qemu-iotests/086 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dkwolf@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/087 b/tests/qemu-iotests/087 index d8e0e384cdf..815fe3370fd 100755 --- a/tests/qemu-iotests/087 +++ b/tests/qemu-iotests/087 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dkwolf@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/088 b/tests/qemu-iotests/088 index e3102fe888b..30b08f2abe0 100755 --- a/tests/qemu-iotests/088 +++ b/tests/qemu-iotests/088 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dkwolf@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/089 b/tests/qemu-iotests/089 index c68c5a66b9b..406cd61279d 100755 --- a/tests/qemu-iotests/089 +++ b/tests/qemu-iotests/089 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dhreitz@redhat.com =20 seq=3D"$(basename $0)" echo "QA output created by $seq" diff --git a/tests/qemu-iotests/090 b/tests/qemu-iotests/090 index 8f88eea9aa7..94052b3fb40 100755 --- a/tests/qemu-iotests/090 +++ b/tests/qemu-iotests/090 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dhreitz@redhat.com =20 seq=3D"$(basename $0)" echo "QA output created by $seq" diff --git a/tests/qemu-iotests/091 b/tests/qemu-iotests/091 index 626203d6fc9..dd590fc0902 100755 --- a/tests/qemu-iotests/091 +++ b/tests/qemu-iotests/091 @@ -21,8 +21,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dcodyprime@gmail.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/092 b/tests/qemu-iotests/092 index bfa116d1919..577ac856797 100755 --- a/tests/qemu-iotests/092 +++ b/tests/qemu-iotests/092 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dkwolf@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/094 b/tests/qemu-iotests/094 index 4766e9a4587..c1ea7e5bd6d 100755 --- a/tests/qemu-iotests/094 +++ b/tests/qemu-iotests/094 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dhreitz@redhat.com =20 seq=3D"$(basename $0)" echo "QA output created by $seq" diff --git a/tests/qemu-iotests/095 b/tests/qemu-iotests/095 index d1d347eb1fa..c4498f6e702 100755 --- a/tests/qemu-iotests/095 +++ b/tests/qemu-iotests/095 @@ -22,8 +22,6 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . # -# creator -owner=3Dcodyprime@gmail.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/097 b/tests/qemu-iotests/097 index 93857f4fd02..d5072227605 100755 --- a/tests/qemu-iotests/097 +++ b/tests/qemu-iotests/097 @@ -20,8 +20,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dhreitz@redhat.com =20 seq=3D"$(basename $0)" echo "QA output created by $seq" diff --git a/tests/qemu-iotests/098 b/tests/qemu-iotests/098 index e3eadb32962..6103579b47a 100755 --- a/tests/qemu-iotests/098 +++ b/tests/qemu-iotests/098 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dhreitz@redhat.com =20 seq=3D"$(basename $0)" echo "QA output created by $seq" diff --git a/tests/qemu-iotests/099 b/tests/qemu-iotests/099 index a5d2d309313..9a89ea85d0d 100755 --- a/tests/qemu-iotests/099 +++ b/tests/qemu-iotests/099 @@ -20,8 +20,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dhreitz@redhat.com =20 seq=3D"$(basename $0)" echo "QA output created by $seq" diff --git a/tests/qemu-iotests/101 b/tests/qemu-iotests/101 index 4c4a8cea112..f1a8f5a6d9b 100755 --- a/tests/qemu-iotests/101 +++ b/tests/qemu-iotests/101 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dstefanha@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/102 b/tests/qemu-iotests/102 index 5db8180d3bb..3f56229ab42 100755 --- a/tests/qemu-iotests/102 +++ b/tests/qemu-iotests/102 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dhreitz@redhat.com =20 seq=3D$(basename $0) echo "QA output created by $seq" diff --git a/tests/qemu-iotests/103 b/tests/qemu-iotests/103 index bb9fd6f650f..958431be148 100755 --- a/tests/qemu-iotests/103 +++ b/tests/qemu-iotests/103 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dhreitz@redhat.com =20 seq=3D$(basename $0) echo "QA output created by $seq" diff --git a/tests/qemu-iotests/104 b/tests/qemu-iotests/104 index 3ebb74cf6e0..20a5657ae48 100755 --- a/tests/qemu-iotests/104 +++ b/tests/qemu-iotests/104 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dhutao@cn.fujitsu.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/105 b/tests/qemu-iotests/105 index b8f2029f622..9ae5fca8356 100755 --- a/tests/qemu-iotests/105 +++ b/tests/qemu-iotests/105 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dfam@euphon.net =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/106 b/tests/qemu-iotests/106 index 55548439aad..770176b3742 100755 --- a/tests/qemu-iotests/106 +++ b/tests/qemu-iotests/106 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dhreitz@redhat.com =20 seq=3D$(basename $0) echo "QA output created by $seq" diff --git a/tests/qemu-iotests/107 b/tests/qemu-iotests/107 index 3fabff27916..c47e733acb9 100755 --- a/tests/qemu-iotests/107 +++ b/tests/qemu-iotests/107 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dhreitz@redhat.com =20 seq=3D"$(basename $0)" echo "QA output created by $seq" diff --git a/tests/qemu-iotests/108 b/tests/qemu-iotests/108 index bf808b35125..1de718188aa 100755 --- a/tests/qemu-iotests/108 +++ b/tests/qemu-iotests/108 @@ -20,8 +20,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dhreitz@redhat.com =20 seq=3D"$(basename $0)" echo "QA output created by $seq" diff --git a/tests/qemu-iotests/109 b/tests/qemu-iotests/109 index 0fb580f9a59..a36366912e8 100755 --- a/tests/qemu-iotests/109 +++ b/tests/qemu-iotests/109 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dkwolf@redhat.com =20 seq=3D"$(basename $0)" echo "QA output created by $seq" diff --git a/tests/qemu-iotests/110 b/tests/qemu-iotests/110 index 91b15f7513c..50121ad08be 100755 --- a/tests/qemu-iotests/110 +++ b/tests/qemu-iotests/110 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dhreitz@redhat.com =20 seq=3D"$(basename $0)" echo "QA output created by $seq" diff --git a/tests/qemu-iotests/111 b/tests/qemu-iotests/111 index 382dbf06063..3adc9aab49c 100755 --- a/tests/qemu-iotests/111 +++ b/tests/qemu-iotests/111 @@ -20,8 +20,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dhreitz@redhat.com =20 seq=3D"$(basename $0)" echo "QA output created by $seq" diff --git a/tests/qemu-iotests/112 b/tests/qemu-iotests/112 index a2ffc96e600..a58918e60d0 100755 --- a/tests/qemu-iotests/112 +++ b/tests/qemu-iotests/112 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dhreitz@redhat.com =20 seq=3D"$(basename $0)" echo "QA output created by $seq" diff --git a/tests/qemu-iotests/113 b/tests/qemu-iotests/113 index a3ad208fd78..ccd93ca8575 100755 --- a/tests/qemu-iotests/113 +++ b/tests/qemu-iotests/113 @@ -20,8 +20,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dhreitz@redhat.com =20 seq=3D"$(basename $0)" echo "QA output created by $seq" diff --git a/tests/qemu-iotests/114 b/tests/qemu-iotests/114 index dccc71008b5..a040f958b30 100755 --- a/tests/qemu-iotests/114 +++ b/tests/qemu-iotests/114 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dkwolf@redhat.com =20 seq=3D"$(basename $0)" echo "QA output created by $seq" diff --git a/tests/qemu-iotests/115 b/tests/qemu-iotests/115 index 7a24070caad..5c8a12f85aa 100755 --- a/tests/qemu-iotests/115 +++ b/tests/qemu-iotests/115 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dhreitz@redhat.com =20 seq=3D"$(basename $0)" echo "QA output created by $seq" diff --git a/tests/qemu-iotests/116 b/tests/qemu-iotests/116 index 4f40fcb3d21..0e914f754e7 100755 --- a/tests/qemu-iotests/116 +++ b/tests/qemu-iotests/116 @@ -22,8 +22,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dstefanha@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/117 b/tests/qemu-iotests/117 index 5cc9433f4a6..7ef8f1fd1ca 100755 --- a/tests/qemu-iotests/117 +++ b/tests/qemu-iotests/117 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dhreitz@redhat.com =20 seq=3D"$(basename $0)" echo "QA output created by $seq" diff --git a/tests/qemu-iotests/119 b/tests/qemu-iotests/119 index ce1b62521f5..ae3cf52e0aa 100755 --- a/tests/qemu-iotests/119 +++ b/tests/qemu-iotests/119 @@ -20,8 +20,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dhreitz@redhat.com =20 seq=3D"$(basename $0)" echo "QA output created by $seq" diff --git a/tests/qemu-iotests/120 b/tests/qemu-iotests/120 index e4ed87e1a70..f93b2069bb7 100755 --- a/tests/qemu-iotests/120 +++ b/tests/qemu-iotests/120 @@ -20,8 +20,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dhreitz@redhat.com =20 seq=3D"$(basename $0)" echo "QA output created by $seq" diff --git a/tests/qemu-iotests/121 b/tests/qemu-iotests/121 index f0dd1d11145..cf262501736 100755 --- a/tests/qemu-iotests/121 +++ b/tests/qemu-iotests/121 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dhreitz@redhat.com =20 seq=3D"$(basename $0)" echo "QA output created by $seq" diff --git a/tests/qemu-iotests/122 b/tests/qemu-iotests/122 index be0f6b79e5d..7f84188f51d 100755 --- a/tests/qemu-iotests/122 +++ b/tests/qemu-iotests/122 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dkwolf@redhat.com =20 seq=3D"$(basename $0)" echo "QA output created by $seq" diff --git a/tests/qemu-iotests/123 b/tests/qemu-iotests/123 index 4d34a2ac49e..13e491a5478 100755 --- a/tests/qemu-iotests/123 +++ b/tests/qemu-iotests/123 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dhreitz@redhat.com =20 seq=3D"$(basename $0)" echo "QA output created by $seq" diff --git a/tests/qemu-iotests/125 b/tests/qemu-iotests/125 index 708e7c5ba21..59e63ad5e70 100755 --- a/tests/qemu-iotests/125 +++ b/tests/qemu-iotests/125 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dhreitz@redhat.com =20 seq=3D$(basename $0) echo "QA output created by $seq" diff --git a/tests/qemu-iotests/126 b/tests/qemu-iotests/126 index d8d2d654f24..1e6855c5ede 100755 --- a/tests/qemu-iotests/126 +++ b/tests/qemu-iotests/126 @@ -20,8 +20,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dhreitz@redhat.com =20 seq=3D"$(basename $0)" echo "QA output created by $seq" diff --git a/tests/qemu-iotests/127 b/tests/qemu-iotests/127 index 7cc3ce1d78e..b912b0461b5 100755 --- a/tests/qemu-iotests/127 +++ b/tests/qemu-iotests/127 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dhreitz@redhat.com =20 seq=3D$(basename $0) echo "QA output created by $seq" diff --git a/tests/qemu-iotests/128 b/tests/qemu-iotests/128 index d75b1a451a0..1837ad0b8d3 100755 --- a/tests/qemu-iotests/128 +++ b/tests/qemu-iotests/128 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dstefanha@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/130 b/tests/qemu-iotests/130 index 3d10aba2594..a53b024895c 100755 --- a/tests/qemu-iotests/130 +++ b/tests/qemu-iotests/130 @@ -21,8 +21,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dkwolf@redhat.com =20 seq=3D"$(basename $0)" echo "QA output created by $seq" diff --git a/tests/qemu-iotests/131 b/tests/qemu-iotests/131 index 3119100e78a..6e183e52bd9 100755 --- a/tests/qemu-iotests/131 +++ b/tests/qemu-iotests/131 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dden@openvz.org =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/133 b/tests/qemu-iotests/133 index d997db16855..a57620040cb 100755 --- a/tests/qemu-iotests/133 +++ b/tests/qemu-iotests/133 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dkwolf@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/134 b/tests/qemu-iotests/134 index cc1e35eb161..bf3ee4996dc 100755 --- a/tests/qemu-iotests/134 +++ b/tests/qemu-iotests/134 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dberrange@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/135 b/tests/qemu-iotests/135 index 71125719eeb..d00496efffd 100755 --- a/tests/qemu-iotests/135 +++ b/tests/qemu-iotests/135 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dcodyprime@gmail.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/137 b/tests/qemu-iotests/137 index 52ee1351840..13c16ea2316 100755 --- a/tests/qemu-iotests/137 +++ b/tests/qemu-iotests/137 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dkwolf@redhat.com =20 seq=3D"$(basename $0)" echo "QA output created by $seq" diff --git a/tests/qemu-iotests/138 b/tests/qemu-iotests/138 index 76628adab7c..1adc295fa63 100755 --- a/tests/qemu-iotests/138 +++ b/tests/qemu-iotests/138 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dhreitz@redhat.com =20 seq=3D"$(basename $0)" echo "QA output created by $seq" diff --git a/tests/qemu-iotests/140 b/tests/qemu-iotests/140 index d923b777e28..aa09a831799 100755 --- a/tests/qemu-iotests/140 +++ b/tests/qemu-iotests/140 @@ -23,8 +23,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dhreitz@redhat.com =20 seq=3D"$(basename $0)" echo "QA output created by $seq" diff --git a/tests/qemu-iotests/142 b/tests/qemu-iotests/142 index 8538a727ac0..cae04068887 100755 --- a/tests/qemu-iotests/142 +++ b/tests/qemu-iotests/142 @@ -18,8 +18,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dkwolf@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/143 b/tests/qemu-iotests/143 index 92a081b79e9..fb12bfbfab6 100755 --- a/tests/qemu-iotests/143 +++ b/tests/qemu-iotests/143 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dhreitz@redhat.com =20 seq=3D"$(basename $0)" echo "QA output created by $seq" diff --git a/tests/qemu-iotests/144 b/tests/qemu-iotests/144 index d284a0e442d..70381a4fe1d 100755 --- a/tests/qemu-iotests/144 +++ b/tests/qemu-iotests/144 @@ -21,8 +21,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dcodyprime@gmail.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/145 b/tests/qemu-iotests/145 index f61a50f6395..bbc3c34c192 100755 --- a/tests/qemu-iotests/145 +++ b/tests/qemu-iotests/145 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dkwolf@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/146 b/tests/qemu-iotests/146 index f63291d0ffb..455ba1e17b5 100755 --- a/tests/qemu-iotests/146 +++ b/tests/qemu-iotests/146 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dcodyprime@gmail.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/150 b/tests/qemu-iotests/150 index fab0faa389c..8a5458944fa 100755 --- a/tests/qemu-iotests/150 +++ b/tests/qemu-iotests/150 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dhreitz@redhat.com =20 seq=3D"$(basename $0)" echo "QA output created by $seq" diff --git a/tests/qemu-iotests/153 b/tests/qemu-iotests/153 index def01d6f3ea..cf7f91d6b46 100755 --- a/tests/qemu-iotests/153 +++ b/tests/qemu-iotests/153 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dfam@euphon.net =20 seq=3D"$(basename $0)" echo "QA output created by $seq" diff --git a/tests/qemu-iotests/154 b/tests/qemu-iotests/154 index 24e29ae2ffe..b6ab0729453 100755 --- a/tests/qemu-iotests/154 +++ b/tests/qemu-iotests/154 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dkwolf@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/156 b/tests/qemu-iotests/156 index a0e4d1ffd42..5a753f46535 100755 --- a/tests/qemu-iotests/156 +++ b/tests/qemu-iotests/156 @@ -27,8 +27,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dhreitz@redhat.com =20 seq=3D"$(basename $0)" echo "QA output created by $seq" diff --git a/tests/qemu-iotests/157 b/tests/qemu-iotests/157 index 531dbd3122b..b8efdb21447 100755 --- a/tests/qemu-iotests/157 +++ b/tests/qemu-iotests/157 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dkwolf@redhat.com =20 seq=3D"$(basename $0)" echo "QA output created by $seq" diff --git a/tests/qemu-iotests/158 b/tests/qemu-iotests/158 index 8fc4e986532..5de3b3edc81 100755 --- a/tests/qemu-iotests/158 +++ b/tests/qemu-iotests/158 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dberrange@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/159 b/tests/qemu-iotests/159 index 4eb476d3a8e..409c0a4652a 100755 --- a/tests/qemu-iotests/159 +++ b/tests/qemu-iotests/159 @@ -19,7 +19,6 @@ # along with this program. If not, see . # =20 -owner=3Dfullmanet@gmail.com =20 seq=3D"$(basename $0)" echo "QA output created by $seq" diff --git a/tests/qemu-iotests/160 b/tests/qemu-iotests/160 index 7984a9c6f7e..bab1c4ea474 100755 --- a/tests/qemu-iotests/160 +++ b/tests/qemu-iotests/160 @@ -19,7 +19,6 @@ # along with this program. If not, see . # =20 -owner=3Dfullmanet@gmail.com =20 seq=3D"$(basename $0)" echo "QA output created by $seq" diff --git a/tests/qemu-iotests/161 b/tests/qemu-iotests/161 index 8ca13926297..3c928885fbb 100755 --- a/tests/qemu-iotests/161 +++ b/tests/qemu-iotests/161 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dberto@igalia.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/162 b/tests/qemu-iotests/162 index 94dae60d304..4f016118865 100755 --- a/tests/qemu-iotests/162 +++ b/tests/qemu-iotests/162 @@ -20,8 +20,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dhreitz@redhat.com =20 seq=3D"$(basename $0)" echo "QA output created by $seq" diff --git a/tests/qemu-iotests/170 b/tests/qemu-iotests/170 index 41387e4d660..3a30c82dcc5 100755 --- a/tests/qemu-iotests/170 +++ b/tests/qemu-iotests/170 @@ -19,7 +19,6 @@ # along with this program. If not, see . # =20 -owner=3Dfullmanet@gmail.com =20 seq=3D"$(basename $0)" echo "QA output created by $seq" diff --git a/tests/qemu-iotests/171 b/tests/qemu-iotests/171 index 87a8aa24d96..20f03c34738 100755 --- a/tests/qemu-iotests/171 +++ b/tests/qemu-iotests/171 @@ -20,8 +20,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dtgolembi@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/172 b/tests/qemu-iotests/172 index a78e42ff0ad..e0a46155796 100755 --- a/tests/qemu-iotests/172 +++ b/tests/qemu-iotests/172 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dkwolf@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/173 b/tests/qemu-iotests/173 index 217e55c1685..2a3f3045e56 100755 --- a/tests/qemu-iotests/173 +++ b/tests/qemu-iotests/173 @@ -19,8 +19,6 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . # -# creator -owner=3Dcodyprime@gmail.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/174 b/tests/qemu-iotests/174 index d4cecb57566..b7e9ab6fa4c 100755 --- a/tests/qemu-iotests/174 +++ b/tests/qemu-iotests/174 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dnirsof@gmail.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/175 b/tests/qemu-iotests/175 index bbbf550a5af..d433ceb47e7 100755 --- a/tests/qemu-iotests/175 +++ b/tests/qemu-iotests/175 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dnirsof@gmail.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/176 b/tests/qemu-iotests/176 index a6a2a4cd44b..8901a83aa3a 100755 --- a/tests/qemu-iotests/176 +++ b/tests/qemu-iotests/176 @@ -24,8 +24,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dhreitz@redhat.com =20 seq=3D"$(basename $0)" echo "QA output created by $seq" diff --git a/tests/qemu-iotests/177 b/tests/qemu-iotests/177 index 8d8745b29a6..f2aca83e245 100755 --- a/tests/qemu-iotests/177 +++ b/tests/qemu-iotests/177 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Deblake@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/178 b/tests/qemu-iotests/178 index 463c59a77f1..f4db4ba2ddf 100755 --- a/tests/qemu-iotests/178 +++ b/tests/qemu-iotests/178 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dstefanha@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/179 b/tests/qemu-iotests/179 index 09447b56103..a7de5acf1a8 100755 --- a/tests/qemu-iotests/179 +++ b/tests/qemu-iotests/179 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Deblake@redhat.com =20 seq=3D"$(basename $0)" echo "QA output created by $seq" diff --git a/tests/qemu-iotests/181 b/tests/qemu-iotests/181 index 458cb737f1c..f25392f6494 100755 --- a/tests/qemu-iotests/181 +++ b/tests/qemu-iotests/181 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dkwolf@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/182 b/tests/qemu-iotests/182 index af5eeb599c1..ebfa76cd670 100755 --- a/tests/qemu-iotests/182 +++ b/tests/qemu-iotests/182 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dfam@euphon.net =20 seq=3D"$(basename $0)" echo "QA output created by $seq" diff --git a/tests/qemu-iotests/184 b/tests/qemu-iotests/184 index 9248b3265d8..55a4909a54d 100755 --- a/tests/qemu-iotests/184 +++ b/tests/qemu-iotests/184 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3D"Manos Pitsidianakis" =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/185 b/tests/qemu-iotests/185 index bb577a9cc99..41d4551d067 100755 --- a/tests/qemu-iotests/185 +++ b/tests/qemu-iotests/185 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dkwolf@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/186 b/tests/qemu-iotests/186 index 9a4215d28e9..538c5ac5e2d 100755 --- a/tests/qemu-iotests/186 +++ b/tests/qemu-iotests/186 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dkwolf@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/187 b/tests/qemu-iotests/187 index 70b74b033c3..bed45050cc1 100755 --- a/tests/qemu-iotests/187 +++ b/tests/qemu-iotests/187 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dkwolf@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/188 b/tests/qemu-iotests/188 index 2950b1dc31f..9714c7e8fd9 100755 --- a/tests/qemu-iotests/188 +++ b/tests/qemu-iotests/188 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dberrange@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/189 b/tests/qemu-iotests/189 index 008f73b07d0..cf1b567ff92 100755 --- a/tests/qemu-iotests/189 +++ b/tests/qemu-iotests/189 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dberrange@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/190 b/tests/qemu-iotests/190 index 7fb84473547..4bc027875b3 100755 --- a/tests/qemu-iotests/190 +++ b/tests/qemu-iotests/190 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Deblake@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/191 b/tests/qemu-iotests/191 index ce695b95c25..3465278f656 100755 --- a/tests/qemu-iotests/191 +++ b/tests/qemu-iotests/191 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dkwolf@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/192 b/tests/qemu-iotests/192 index 6869bd17153..02142e1d2f1 100755 --- a/tests/qemu-iotests/192 +++ b/tests/qemu-iotests/192 @@ -20,8 +20,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dfam@euphon.net =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/195 b/tests/qemu-iotests/195 index f1df69079f5..1b0fe7eb7dd 100755 --- a/tests/qemu-iotests/195 +++ b/tests/qemu-iotests/195 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dkwolf@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/197 b/tests/qemu-iotests/197 index 69849c800ed..3286250770c 100755 --- a/tests/qemu-iotests/197 +++ b/tests/qemu-iotests/197 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Deblake@redhat.com =20 seq=3D"$(basename $0)" echo "QA output created by $seq" diff --git a/tests/qemu-iotests/198 b/tests/qemu-iotests/198 index 6ddeffddd2c..74e432b0bbf 100755 --- a/tests/qemu-iotests/198 +++ b/tests/qemu-iotests/198 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dberrange@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/200 b/tests/qemu-iotests/200 index f66c571d240..682bcdce9d2 100755 --- a/tests/qemu-iotests/200 +++ b/tests/qemu-iotests/200 @@ -21,8 +21,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dcodyprime@gmail.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/204 b/tests/qemu-iotests/204 index ab68b6d75cf..8bda9164762 100755 --- a/tests/qemu-iotests/204 +++ b/tests/qemu-iotests/204 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Deblake@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/225 b/tests/qemu-iotests/225 index 8128d583d60..2e9ff4c26b5 100755 --- a/tests/qemu-iotests/225 +++ b/tests/qemu-iotests/225 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dhreitz@redhat.com =20 seq=3D$(basename $0) echo "QA output created by $seq" diff --git a/tests/qemu-iotests/226 b/tests/qemu-iotests/226 index 6a9adb4a0bc..2fd968a0dbe 100755 --- a/tests/qemu-iotests/226 +++ b/tests/qemu-iotests/226 @@ -20,8 +20,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Djsnow@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/227 b/tests/qemu-iotests/227 index eddaad679e2..02978bf2a07 100755 --- a/tests/qemu-iotests/227 +++ b/tests/qemu-iotests/227 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dkwolf@redhat.com =20 seq=3D$(basename $0) echo "QA output created by $seq" diff --git a/tests/qemu-iotests/229 b/tests/qemu-iotests/229 index aaa6996ce3a..21aaf707504 100755 --- a/tests/qemu-iotests/229 +++ b/tests/qemu-iotests/229 @@ -20,8 +20,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dcodyprime@gmail.com =20 seq=3D"$(basename $0)" echo "QA output created by $seq" diff --git a/tests/qemu-iotests/231 b/tests/qemu-iotests/231 index eddc8e9641d..ba17e9489c5 100755 --- a/tests/qemu-iotests/231 +++ b/tests/qemu-iotests/231 @@ -21,8 +21,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dcodyprime@gmail.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/232 b/tests/qemu-iotests/232 index 1ee0aae481d..b07a346d75a 100755 --- a/tests/qemu-iotests/232 +++ b/tests/qemu-iotests/232 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dkwolf@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/233 b/tests/qemu-iotests/233 index 55db5b3811f..f0ccdee4b2c 100755 --- a/tests/qemu-iotests/233 +++ b/tests/qemu-iotests/233 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dberrange@redhat.com =20 seq=3D$(basename $0) echo "QA output created by $seq" diff --git a/tests/qemu-iotests/236 b/tests/qemu-iotests/236 index 3cf0de4043f..a10fea28024 100755 --- a/tests/qemu-iotests/236 +++ b/tests/qemu-iotests/236 @@ -18,7 +18,6 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . # -# owner=3Djsnow@redhat.com =20 import iotests from iotests import log diff --git a/tests/qemu-iotests/239 b/tests/qemu-iotests/239 index 4f0037148d9..83061b7b2ea 100755 --- a/tests/qemu-iotests/239 +++ b/tests/qemu-iotests/239 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dnpes87184@gmail.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/243 b/tests/qemu-iotests/243 index 8bbb510120d..4394d3711ab 100755 --- a/tests/qemu-iotests/243 +++ b/tests/qemu-iotests/243 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dkwolf@redhat.com =20 seq=3D$(basename $0) echo "QA output created by $seq" diff --git a/tests/qemu-iotests/244 b/tests/qemu-iotests/244 index 2a98ad58f5d..a8af524c122 100755 --- a/tests/qemu-iotests/244 +++ b/tests/qemu-iotests/244 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dkwolf@redhat.com =20 seq=3D$(basename $0) echo "QA output created by $seq" diff --git a/tests/qemu-iotests/246 b/tests/qemu-iotests/246 index cee5131c3ce..7e1c96a8bcb 100755 --- a/tests/qemu-iotests/246 +++ b/tests/qemu-iotests/246 @@ -18,7 +18,6 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . # -# owner=3Djsnow@redhat.com =20 import iotests from iotests import log diff --git a/tests/qemu-iotests/247 b/tests/qemu-iotests/247 index ace6dba052a..8fb72082c77 100755 --- a/tests/qemu-iotests/247 +++ b/tests/qemu-iotests/247 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dkwolf@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/249 b/tests/qemu-iotests/249 index 1254bf94291..73c17343c0a 100755 --- a/tests/qemu-iotests/249 +++ b/tests/qemu-iotests/249 @@ -20,8 +20,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dberto@igalia.com =20 seq=3D"$(basename $0)" echo "QA output created by $seq" diff --git a/tests/qemu-iotests/250 b/tests/qemu-iotests/250 index c0a0dbc0ff1..98b81cd217e 100755 --- a/tests/qemu-iotests/250 +++ b/tests/qemu-iotests/250 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dv.sementsov-og@mail.ru =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/251 b/tests/qemu-iotests/251 index 794cad58b26..b90b3914de4 100755 --- a/tests/qemu-iotests/251 +++ b/tests/qemu-iotests/251 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dhreitz@redhat.com =20 seq=3D$(basename $0) echo "QA output created by $seq" diff --git a/tests/qemu-iotests/252 b/tests/qemu-iotests/252 index 522333cf1dc..29facfd2a60 100755 --- a/tests/qemu-iotests/252 +++ b/tests/qemu-iotests/252 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dhreitz@redhat.com =20 seq=3D$(basename $0) echo "QA output created by $seq" diff --git a/tests/qemu-iotests/256 b/tests/qemu-iotests/256 index 1a4c9c6885e..4a787d59086 100755 --- a/tests/qemu-iotests/256 +++ b/tests/qemu-iotests/256 @@ -18,7 +18,6 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . # -# owner=3Djsnow@redhat.com =20 import os import iotests diff --git a/tests/qemu-iotests/257 b/tests/qemu-iotests/257 index 5e4dba02e76..ab542ac0b4e 100755 --- a/tests/qemu-iotests/257 +++ b/tests/qemu-iotests/257 @@ -18,7 +18,6 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . # -# owner=3Djsnow@redhat.com =20 import math import os diff --git a/tests/qemu-iotests/259 b/tests/qemu-iotests/259 index 82f5de4b340..48eada5e7ef 100755 --- a/tests/qemu-iotests/259 +++ b/tests/qemu-iotests/259 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dhreitz@redhat.com =20 seq=3D$(basename $0) echo "QA output created by $seq" diff --git a/tests/qemu-iotests/261 b/tests/qemu-iotests/261 index 22b969d3108..f9fed94e1e2 100755 --- a/tests/qemu-iotests/261 +++ b/tests/qemu-iotests/261 @@ -21,8 +21,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dhreitz@redhat.com =20 seq=3D$(basename $0) echo "QA output created by $seq" diff --git a/tests/qemu-iotests/263 b/tests/qemu-iotests/263 index 44fdada0d6f..ab2dea7627c 100755 --- a/tests/qemu-iotests/263 +++ b/tests/qemu-iotests/263 @@ -20,8 +20,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dmlevitsk@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/267 b/tests/qemu-iotests/267 index e14aeb1f18d..1ee76edec44 100755 --- a/tests/qemu-iotests/267 +++ b/tests/qemu-iotests/267 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dkwolf@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/268 b/tests/qemu-iotests/268 index 9a8a5637603..444acf8b3cc 100755 --- a/tests/qemu-iotests/268 +++ b/tests/qemu-iotests/268 @@ -20,8 +20,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dberto@igalia.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/271 b/tests/qemu-iotests/271 index 59a6fafa2fa..26c6b078259 100755 --- a/tests/qemu-iotests/271 +++ b/tests/qemu-iotests/271 @@ -20,8 +20,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dberto@igalia.com =20 seq=3D"$(basename $0)" echo "QA output created by $seq" diff --git a/tests/qemu-iotests/284 b/tests/qemu-iotests/284 index 722267486d0..f9268a0e9ce 100755 --- a/tests/qemu-iotests/284 +++ b/tests/qemu-iotests/284 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dberrange@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/287 b/tests/qemu-iotests/287 index 6414640b212..a22c185791e 100755 --- a/tests/qemu-iotests/287 +++ b/tests/qemu-iotests/287 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Ddplotnikov@virtuozzo.com =20 seq=3D"$(basename $0)" echo "QA output created by $seq" diff --git a/tests/qemu-iotests/288 b/tests/qemu-iotests/288 index 47aca6592a6..81c652c085e 100755 --- a/tests/qemu-iotests/288 +++ b/tests/qemu-iotests/288 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dstefanha@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/290 b/tests/qemu-iotests/290 index 776b59de1bc..341a25f96b5 100755 --- a/tests/qemu-iotests/290 +++ b/tests/qemu-iotests/290 @@ -20,8 +20,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dberto@igalia.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/292 b/tests/qemu-iotests/292 index 73cbb9364ac..ef1b2881a5c 100755 --- a/tests/qemu-iotests/292 +++ b/tests/qemu-iotests/292 @@ -20,8 +20,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dberto@igalia.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/293 b/tests/qemu-iotests/293 index 37294487b11..47fef797429 100755 --- a/tests/qemu-iotests/293 +++ b/tests/qemu-iotests/293 @@ -20,8 +20,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dmlevitsk@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/294 b/tests/qemu-iotests/294 index 9059eb26b3b..3e34cb66eab 100755 --- a/tests/qemu-iotests/294 +++ b/tests/qemu-iotests/294 @@ -17,8 +17,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dmlevitsk@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/302 b/tests/qemu-iotests/302 index e980ec513f2..7c7a507ce52 100755 --- a/tests/qemu-iotests/302 +++ b/tests/qemu-iotests/302 @@ -18,7 +18,6 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . # -# owner=3Dnirsof@gmail.com =20 import io import tarfile diff --git a/tests/qemu-iotests/304 b/tests/qemu-iotests/304 index 03c7c1cbe3c..99b25300107 100755 --- a/tests/qemu-iotests/304 +++ b/tests/qemu-iotests/304 @@ -18,7 +18,6 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . # -# owner=3Ds.reiter@proxmox.com =20 import iotests from iotests import qemu_img_create, qemu_img_log, file_path diff --git a/tests/qemu-iotests/305 b/tests/qemu-iotests/305 index 8b26156923d..798ced27654 100755 --- a/tests/qemu-iotests/305 +++ b/tests/qemu-iotests/305 @@ -20,8 +20,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dberto@igalia.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/312 b/tests/qemu-iotests/312 index 0d9ea09a31f..8dfb92a5baf 100755 --- a/tests/qemu-iotests/312 +++ b/tests/qemu-iotests/312 @@ -25,8 +25,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dberto@igalia.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/313 b/tests/qemu-iotests/313 index a75655b7ef0..675f6e4382e 100755 --- a/tests/qemu-iotests/313 +++ b/tests/qemu-iotests/313 @@ -21,8 +21,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dberto@igalia.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/314 b/tests/qemu-iotests/314 index 96d7b4d2581..91f222130eb 100755 --- a/tests/qemu-iotests/314 +++ b/tests/qemu-iotests/314 @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dandrey.drobyshev@virtuozzo.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/tests/commit-zero-blocks b/tests/qemu-iotes= ts/tests/commit-zero-blocks index de00273e727..d9fa8629acd 100755 --- a/tests/qemu-iotests/tests/commit-zero-blocks +++ b/tests/qemu-iotests/tests/commit-zero-blocks @@ -23,8 +23,6 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . # -# creator -owner=3Dlibvirt-e6954efa@volkihar.be =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/tests/detect-zeroes-registered-buf b/tests/= qemu-iotests/tests/detect-zeroes-registered-buf index 5eaf34e5a6b..ddf636239d7 100755 --- a/tests/qemu-iotests/tests/detect-zeroes-registered-buf +++ b/tests/qemu-iotests/tests/detect-zeroes-registered-buf @@ -22,8 +22,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dstefanha@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/tests/iothreads-resize b/tests/qemu-iotests= /tests/iothreads-resize index 36e4598c621..d8de0831943 100755 --- a/tests/qemu-iotests/tests/iothreads-resize +++ b/tests/qemu-iotests/tests/iothreads-resize @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dkwolf@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/tests/nbd-in-qcow2-chain b/tests/qemu-iotes= ts/tests/nbd-in-qcow2-chain index 455ddfa86fe..9a977e5a1bd 100755 --- a/tests/qemu-iotests/tests/nbd-in-qcow2-chain +++ b/tests/qemu-iotests/tests/nbd-in-qcow2-chain @@ -7,8 +7,6 @@ # # SPDX-License-Identifier: GPL-2.0-or-later =20 -# creator -owner=3Deblake@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/tests/nbd-tls-iothread b/tests/qemu-iotests= /tests/nbd-tls-iothread index a2fb07206e5..6cf52a0aa92 100755 --- a/tests/qemu-iotests/tests/nbd-tls-iothread +++ b/tests/qemu-iotests/tests/nbd-tls-iothread @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Deblake@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/tests/parallels-checks b/tests/qemu-iotests= /tests/parallels-checks index ca89ed5d62c..eb0a32d636b 100755 --- a/tests/qemu-iotests/tests/parallels-checks +++ b/tests/qemu-iotests/tests/parallels-checks @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dalexander.ivanov@virtuozzo.com =20 seq=3D`basename $0` echo "QA output created by $seq" diff --git a/tests/qemu-iotests/tests/qcow2-encryption b/tests/qemu-iotests= /tests/qcow2-encryption index 95f6195ab86..e7d75042117 100755 --- a/tests/qemu-iotests/tests/qcow2-encryption +++ b/tests/qemu-iotests/tests/qcow2-encryption @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dkwolf@redhat.com =20 seq=3D"$(basename $0)" echo "QA output created by $seq" diff --git a/tests/qemu-iotests/tests/qcow2-internal-snapshots b/tests/qemu= -iotests/tests/qcow2-internal-snapshots index d301f0941b5..4ea382e88f7 100755 --- a/tests/qemu-iotests/tests/qcow2-internal-snapshots +++ b/tests/qemu-iotests/tests/qcow2-internal-snapshots @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dkwolf@redhat.com =20 seq=3D"$(basename $0)" echo "QA output created by $seq" diff --git a/tests/qemu-iotests/tests/qemu-img-close-errors b/tests/qemu-io= tests/tests/qemu-img-close-errors index 50bfb6cfa2a..91270fe6703 100755 --- a/tests/qemu-iotests/tests/qemu-img-close-errors +++ b/tests/qemu-iotests/tests/qemu-img-close-errors @@ -20,8 +20,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dkwolf@redhat.com =20 seq=3D"$(basename $0)" echo "QA output created by $seq" diff --git a/tests/qemu-iotests/tests/qsd-jobs b/tests/qemu-iotests/tests/q= sd-jobs index 9b843af6312..6bd5e81e761 100755 --- a/tests/qemu-iotests/tests/qsd-jobs +++ b/tests/qemu-iotests/tests/qsd-jobs @@ -19,8 +19,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dkwolf@redhat.com =20 seq=3D"$(basename $0)" echo "QA output created by $seq" diff --git a/tests/qemu-iotests/tests/regression-vhdx-log b/tests/qemu-iote= sts/tests/regression-vhdx-log index ca264e93d61..5354c5fb0c1 100755 --- a/tests/qemu-iotests/tests/regression-vhdx-log +++ b/tests/qemu-iotests/tests/regression-vhdx-log @@ -20,8 +20,6 @@ # along with this program. If not, see . # =20 -# creator -owner=3Dkwolf@redhat.com =20 seq=3D`basename $0` echo "QA output created by $seq" --=20 2.56.0 From nobody Mon Nov 23 05:00:07 2026 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=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1791390993; cv=none; d=zohomail.com; s=zohoarc; b=GHvIzMT6h9l8VjYmuIbgNEyrIreki6tB/RqcvidVq0MtZ0pn8+b2LxaPfi7l39G35MTRW8Akl3xvlG5fLAE6MH3F9E2S49PJNplFPN7vCee9TxeEgTV+fnaRfAHIEM1naurUkT3ajD0XS0fh8nIlilNIfeRuNSANk9Coa2Ht6F4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1791390993; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=SDfVsXARpho14i319kfTJ92XYV/xuCkUvg1QwR3qkoY=; b=nv4KufA2z4YqeNcyoJoPf3wLNDu1JfWQx2MF1y3Wkv1PXWOEMUrE6Nt4XM1QpLfq52hLVQz4nGel+xaJsf/5eAMgaIkJwExa5kO6VL/s3400XJ6sFWRw0Bvfvn9c6iVgIKtGD8LCfZhj4NoZFFMFfq4D3xmljPrGPYAjyzzU6lY= 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=quarantine dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 179139099370470.19106002034721; Wed, 7 Oct 2026 09:36:33 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xEUcz-0005hB-Ag; Wed, 07 Oct 2026 12:36:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xEUbT-000302-RY for qemu-devel@nongnu.org; Wed, 07 Oct 2026 12:34:54 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xEUbN-0006N5-T2 for qemu-devel@nongnu.org; Wed, 07 Oct 2026 12:34:48 -0400 Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-193-GbCYvwAbOp23BZ1f2T62xg-1; Wed, 07 Oct 2026 12:34:41 -0400 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 892BF1955BCB; Wed, 7 Oct 2026 16:34:40 +0000 (UTC) Received: from merkur.redhat.com (unknown [10.44.32.219]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 37EEB1956052; Wed, 7 Oct 2026 16:34:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1791390885; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=SDfVsXARpho14i319kfTJ92XYV/xuCkUvg1QwR3qkoY=; b=DWxUVAM4obX8oKgS1uF3CiZIqBh/bkey/B3KP/nUrjzHqFByllpmSKhZuflf/RlIHhMN/6 UNEFOJZwrb2Hup3z0gfQHCOsOgDG3LuBY9DbeJ1aBj5etRxEq0YvDGiaMgrJP2UcVetjEW J/KBEAq+DH2UWLLSikRerGiZkqk8UVk= X-MC-Unique: GbCYvwAbOp23BZ1f2T62xg-1 X-Mimecast-MFC-AGG-ID: GbCYvwAbOp23BZ1f2T62xg_1791390880 From: Kevin Wolf To: qemu-block@nongnu.org Cc: kwolf@redhat.com, richard.henderson@linaro.org, qemu-devel@nongnu.org Subject: [PULL 15/21] hw/block/fdc: account for read and write requests Date: Wed, 7 Oct 2026 18:32:56 +0200 Message-ID: <20261007163302.332250-16-kwolf@redhat.com> In-Reply-To: <20261007163302.332250-1-kwolf@redhat.com> References: <20261007163302.332250-1-kwolf@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 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=lists1p.gnu.org; Received-SPF: pass client-ip=170.10.129.124; envelope-from=kwolf@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: 10 X-Spam_score: 1.0 X-Spam_bar: + X-Spam_report: (1.0 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.24, 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, RCVD_IN_SBL_CSS=3.335, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1791390994366158500 Content-Type: text/plain; charset="utf-8" From: Christian Quante hw/block/fdc.c never calls block_acct_*, so a floppy drive stays at zero in query-blockstats and "info blockstats" while IDE, ATAPI, SCSI, virtio-blk, NVMe and xen-block all report their traffic. That is the only interface through which QEMU reports drive activity, so a front-end that shows per-drive activity LEDs -- the way 86Box does -- can light up every bus except the floppy. The accounting is already set up for the drive: floppy_drive_realize() reaches block_acct_setup() through blkconf_apply_backend_options(), and -device floppy carries account-invalid, account-failed and stats-intervals through DEFINE_BLOCK_PROPERTIES. The properties can be set today, they just have nothing to act on. Wrap the five blk_pread()/blk_pwrite() calls in two helpers that account for the transfer. The cookie lives on the stack: floppy I/O is synchronous throughout, so it never outlives the call and there is no device state to migrate, unlike IDE where the cookie sits in the device because the transfer is asynchronous -- scsi-disk, nvme, ahci and xen-block all keep it in their request state for the same reason. Measured with a boot sector that reads 18 sectors from A: and 16 from C: and writes two back to each. The disk backend reports rd_ops=3D16 rd_bytes=3D8192 wr_ops=3D2 wr_bytes=3D1024 either way, so the guest did the same work in both runs; the floppy went from rd_ops=3D0 wr_ops=3D0 to rd_ops=3D19 rd_bytes=3D9728 wr_ops=3D2 wr_bytes=3D1024 -- 19 reads being the boot sector the BIOS pulls in plus the 18 the guest asks for. Signed-off-by: Christian Quante Message-ID: <20260824114216.231916-1-christian@quante.one> Reviewed-by: Kevin Wolf Signed-off-by: Kevin Wolf --- hw/block/fdc.c | 52 +++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 41 insertions(+), 11 deletions(-) diff --git a/hw/block/fdc.c b/hw/block/fdc.c index 1178b959a64..41776af6a0e 100644 --- a/hw/block/fdc.c +++ b/hw/block/fdc.c @@ -222,6 +222,42 @@ static int fd_offset(FDrive *drv) return fd_sector(drv) << BDRV_SECTOR_BITS; } =20 +/* Reads the sector at the current position and accounts for the request */ +static int fd_read_sector(FDrive *drv, uint8_t *buf) +{ + BlockAcctStats *stats =3D blk_get_stats(drv->blk); + BlockAcctCookie acct; + int ret; + + block_acct_start(stats, &acct, BDRV_SECTOR_SIZE, BLOCK_ACCT_READ); + ret =3D blk_pread(drv->blk, fd_offset(drv), BDRV_SECTOR_SIZE, buf, 0); + if (ret < 0) { + block_acct_failed(stats, &acct); + } else { + block_acct_done(stats, &acct); + } + + return ret; +} + +/* Writes the sector at the current position and accounts for the request = */ +static int fd_write_sector(FDrive *drv, const uint8_t *buf) +{ + BlockAcctStats *stats =3D blk_get_stats(drv->blk); + BlockAcctCookie acct; + int ret; + + block_acct_start(stats, &acct, BDRV_SECTOR_SIZE, BLOCK_ACCT_WRITE); + ret =3D blk_pwrite(drv->blk, fd_offset(drv), BDRV_SECTOR_SIZE, buf, 0); + if (ret < 0) { + block_acct_failed(stats, &acct); + } else { + block_acct_done(stats, &acct); + } + + return ret; +} + /* Seek to a new position: * returns 0 if already on right track * returns 1 if track changed @@ -1644,8 +1680,7 @@ int fdctrl_transfer_handler(void *opaque, int nchan, = int dma_pos, int dma_len) if (fdctrl->data_dir !=3D FD_DIR_WRITE || len < FD_SECTOR_LEN || rel_pos !=3D 0) { /* READ & SCAN commands and realign to a sector for WRITE */ - if (blk_pread(cur_drv->blk, fd_offset(cur_drv), BDRV_SECTOR_SI= ZE, - fdctrl->fifo, 0) < 0) { + if (fd_read_sector(cur_drv, fdctrl->fifo) < 0) { FLOPPY_DPRINTF("Floppy: error getting sector %d\n", fd_sector(cur_drv)); /* Sure, image size is too small... */ @@ -1672,8 +1707,7 @@ int fdctrl_transfer_handler(void *opaque, int nchan, = int dma_pos, int dma_len) =20 k->read_memory(fdctrl->dma, nchan, fdctrl->fifo + rel_pos, fdctrl->data_pos, len); - if (blk_pwrite(cur_drv->blk, fd_offset(cur_drv), BDRV_SECTOR_S= IZE, - fdctrl->fifo, 0) < 0) { + if (fd_write_sector(cur_drv, fdctrl->fifo) < 0) { FLOPPY_DPRINTF("error writing sector %d\n", fd_sector(cur_drv)); fdctrl_stop_transfer(fdctrl, FD_SR0_ABNTERM | FD_SR0_SEEK,= 0x00, 0x00); @@ -1756,9 +1790,7 @@ static uint32_t fdctrl_read_data(FDCtrl *fdctrl) fd_sector(cur_drv)); return 0; } - if (blk_pread(cur_drv->blk, fd_offset(cur_drv), BDRV_SECTOR_SI= ZE, - fdctrl->fifo, 0) - < 0) { + if (fd_read_sector(cur_drv, fdctrl->fifo) < 0) { FLOPPY_DPRINTF("error getting sector %d\n", fd_sector(cur_drv)); /* Sure, image size is too small... */ @@ -1843,8 +1875,7 @@ static void fdctrl_format_sector(FDCtrl *fdctrl) } memset(fdctrl->fifo, 0, FD_SECTOR_LEN); if (cur_drv->blk =3D=3D NULL || - blk_pwrite(cur_drv->blk, fd_offset(cur_drv), BDRV_SECTOR_SIZE, - fdctrl->fifo, 0) < 0) { + fd_write_sector(cur_drv, fdctrl->fifo) < 0) { FLOPPY_DPRINTF("error formatting sector %d\n", fd_sector(cur_drv)); fdctrl_stop_transfer(fdctrl, FD_SR0_ABNTERM | FD_SR0_SEEK, 0x00, 0= x00); } else { @@ -2270,8 +2301,7 @@ static void fdctrl_write_data(FDCtrl *fdctrl, uint32_= t value) if (pos =3D=3D FD_SECTOR_LEN - 1 || fdctrl->data_pos =3D=3D fdctrl->data_len) { cur_drv =3D get_cur_drv(fdctrl); - if (blk_pwrite(cur_drv->blk, fd_offset(cur_drv), BDRV_SECTOR_S= IZE, - fdctrl->fifo, 0) < 0) { + if (fd_write_sector(cur_drv, fdctrl->fifo) < 0) { FLOPPY_DPRINTF("error writing sector %d\n", fd_sector(cur_drv)); break; --=20 2.56.0 From nobody Mon Nov 23 05:00:07 2026 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=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1791391022; cv=none; d=zohomail.com; s=zohoarc; b=GSSSgfEiYvuG9kKSU8g+Wsr8b92xG0IwP3xwq+RSP8VYfD+AyG5H8k+HkuZnf6uFZYNddY6gCiaOxOnC3OEjSDW9xTy+UMoKTBn/cHkpVYtR2HyDQmzmjXhYR4txYZZdGojmThHlak0YvNg5j/J9UXlTIMyPVOBKAbsneauscq8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1791391022; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=/6fhptgUdVvtvxa3uKCowlnqh4v+Zi6Ke3pq4yfrjzo=; b=fUt6enN+TZ2yGaMEAKE30x7P9GRpusYdE97qsHzozYgwY1FOEFy8Nd+MWO9ixltjoAIS8taOxtIQ/iM+pO6H3MlcZwZuS5Xep0Xpb9Tu0CF2/umfV74zAN1xRpy45mCakhFUgDgzlUfPBlA9LvX1UF8Mr6rDLIKa1VC8MFkhswY= 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=quarantine dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1791391022147278.4678606357346; Wed, 7 Oct 2026 09:37:02 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xEUch-0004LZ-Np; Wed, 07 Oct 2026 12:36:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xEUbW-00030M-7h for qemu-devel@nongnu.org; Wed, 07 Oct 2026 12:34:55 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xEUbP-0006NK-Qn for qemu-devel@nongnu.org; Wed, 07 Oct 2026 12:34:53 -0400 Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-235-u4MjMR1HMNu2zZJTSrIOiA-1; Wed, 07 Oct 2026 12:34:43 -0400 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 4C53819772EC; Wed, 7 Oct 2026 16:34:42 +0000 (UTC) Received: from merkur.redhat.com (unknown [10.44.32.219]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id EF1521956087; Wed, 7 Oct 2026 16:34:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1791390886; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/6fhptgUdVvtvxa3uKCowlnqh4v+Zi6Ke3pq4yfrjzo=; b=BcdFmAFn/7KbLsXRi847DC3WwNJH2fEGtYp/f7t2jmopyiYckdy5oLdwhqKYfgKb34jpG8 6/UL0jmpRji7wRrDWYm4TPiuUMEVltxzRfUV4T3NGQJ8DhdTjCfWI+gxZ8N94oU4nKETcP ACoAvQocL2Q9z+vWx3+HGmoNiflofE0= X-MC-Unique: u4MjMR1HMNu2zZJTSrIOiA-1 X-Mimecast-MFC-AGG-ID: u4MjMR1HMNu2zZJTSrIOiA_1791390882 From: Kevin Wolf To: qemu-block@nongnu.org Cc: kwolf@redhat.com, richard.henderson@linaro.org, qemu-devel@nongnu.org Subject: [PULL 16/21] iotests: annotate TestRunner.shared_self for mypy 2.4 Date: Wed, 7 Oct 2026 18:32:57 +0200 Message-ID: <20261007163302.332250-17-kwolf@redhat.com> In-Reply-To: <20261007163302.332250-1-kwolf@redhat.com> References: <20261007163302.332250-1-kwolf@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 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=lists1p.gnu.org; Received-SPF: pass client-ip=170.10.129.124; envelope-from=kwolf@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: 10 X-Spam_score: 1.0 X-Spam_bar: + X-Spam_report: (1.0 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.24, 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, RCVD_IN_SBL_CSS=3.335, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1791391022499158500 Content-Type: text/plain; charset="utf-8" From: Tim Pambor mypy 2.4.0 infers the unannotated class attribute "shared_self =3D None" as having type "None" and rejects the later assignment of a TestRunner instance in run_tests_pool(): testrunner.py:126: error: Incompatible types in assignment (expression has type "TestRunner", variable has type "None") Earlier mypy versions treated the attribute as a partial type and accepted the assignment. Give the attribute an explicit Optional['TestRunner'] annotation so both old and new mypy agree. Fixes tests/linters.py::TestLinters::test_mypy_iotests with mypy >=3D 2.4. Signed-off-by: Tim Pambor Message-ID: <20261002-mypy-2-4-v1-1-185c406d1cbd@gmail.com> Reviewed-by: Kevin Wolf Signed-off-by: Kevin Wolf --- tests/qemu-iotests/testrunner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/qemu-iotests/testrunner.py b/tests/qemu-iotests/testrunn= er.py index cc36867719d..729680da4aa 100644 --- a/tests/qemu-iotests/testrunner.py +++ b/tests/qemu-iotests/testrunner.py @@ -108,7 +108,7 @@ def __init__(self, status: str, description: str =3D '', =20 =20 class TestRunner(contextlib.AbstractContextManager['TestRunner']): - shared_self =3D None + shared_self: Optional['TestRunner'] =3D None =20 @staticmethod def proc_run_test(test: str, test_field_width: int) -> TestResult: --=20 2.56.0 From nobody Mon Nov 23 05:00:07 2026 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=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1791390978; cv=none; d=zohomail.com; s=zohoarc; b=YJRtabCj/GdNlCEr2jjxT9W8tQFqFX4Byy+oTAt95iliHNwmDxh//hAlzoOLWj3sYLFNN/7QKy9NMmWzj8kwwChSxnU9z3ZWlzMaW8RNiCSS063tzUODuiIhOzmHOt2H/jHrc7R3veQU1qnBA3B3LoU9C5nafgSQXRgyAh6KG+4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1791390978; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=YpXHoTdAVpgqoHk/C8gDqtbYtH9QeYbVOrvBeGRIkJM=; b=iyg4rDwq6NvOtBTE/hPkAT1V7NXbK4ZkwW0+iY8KkMzvd6fYVRmd/oX4h9TY0mhY/uRcHNjorNcuVyOaSZDGJ6vNeKQJcx5u8iCM1YPf/vwKiOieobCNW3vtFnP56NHKu6mTbNEREO28SlerOzwJ9IAHlez2nEjUbsV79wpM7i8= 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=quarantine dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1791390978170257.1073725801682; Wed, 7 Oct 2026 09:36:18 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xEUcl-0004jO-Ih; Wed, 07 Oct 2026 12:36:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xEUbW-00030O-8F for qemu-devel@nongnu.org; Wed, 07 Oct 2026 12:34:55 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xEUbP-0006NV-RF for qemu-devel@nongnu.org; Wed, 07 Oct 2026 12:34:52 -0400 Received: from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-634-sFQbAEXMNeOG_ECpoLMhUg-1; Wed, 07 Oct 2026 12:34:45 -0400 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 0E9F31955D80; Wed, 7 Oct 2026 16:34:44 +0000 (UTC) Received: from merkur.redhat.com (unknown [10.44.32.219]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id B33F51956087; Wed, 7 Oct 2026 16:34:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1791390887; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=YpXHoTdAVpgqoHk/C8gDqtbYtH9QeYbVOrvBeGRIkJM=; b=YVmNw1EvqNMDStPTUeaZ7rnPNPJejG+Us5/9MSoHSzzb8HXJEQlLctVROg5igaL2AwJVHZ c6oCCmvUWUQpaFanCispOxa0r+pmitPrC7pCckpFitUG6z25Qwd283DM4iikGZE1QLNbJC XYSWaBO0+m3Uc2E8oUF4tt7lUHt3QG0= X-MC-Unique: sFQbAEXMNeOG_ECpoLMhUg-1 X-Mimecast-MFC-AGG-ID: sFQbAEXMNeOG_ECpoLMhUg_1791390884 From: Kevin Wolf To: qemu-block@nongnu.org Cc: kwolf@redhat.com, richard.henderson@linaro.org, qemu-devel@nongnu.org Subject: [PULL 17/21] file-posix: add statx(STATX_DIOALIGN) support Date: Wed, 7 Oct 2026 18:32:58 +0200 Message-ID: <20261007163302.332250-18-kwolf@redhat.com> In-Reply-To: <20261007163302.332250-1-kwolf@redhat.com> References: <20261007163302.332250-1-kwolf@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 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=lists1p.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=kwolf@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: 10 X-Spam_score: 1.0 X-Spam_bar: + X-Spam_report: (1.0 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.24, 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.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_SBL_CSS=3.335, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1791390980313158500 Content-Type: text/plain; charset="utf-8" From: Stefan Hajnoczi Linux v6.1 commit 825cf206ed51 ("statx: add direct I/O alignment information") added an interface to fetch O_DIRECT alignment values for block devices and file systems. Prefer STATX_DIOALIGN to older interfaces and probing, but keep them as fallbacks in case STATX_DIOALIGN cannot provide the information. STATX_DIOALIGN support as of Linux 6.1: - btrfs: no - ext4: yes - XFS: yes - block devices: yes - dm-crypt: yes This change fixes #1290 ("IO alignment probing delivers incorrect results on Linux when used with e.g. dm-crypt") on Linux host kernel version 6.1 or later by avoiding the problematic probing code in raw_probe_alignment(). It would be nice to fix the probing code but I have not been able to reproduce it. Stable/LTS distros ship Linux 6.1+, so the number of users without STATX_DIOALIGN is becoming small. Resolves: https://gitlab.com/qemu-project/qemu/-/work_items/1290 Cc: Eric Biggers Signed-off-by: Stefan Hajnoczi Message-ID: <20260922154351.226540-1-stefanha@redhat.com> Reviewed-by: Ben Chaney Reviewed-by: Kevin Wolf Signed-off-by: Kevin Wolf --- block/file-posix.c | 56 +++++++++++++++++++++++++++++++--------------- 1 file changed, 38 insertions(+), 18 deletions(-) diff --git a/block/file-posix.c b/block/file-posix.c index 39d6a34456c..328adb57233 100644 --- a/block/file-posix.c +++ b/block/file-posix.c @@ -426,28 +426,48 @@ static void raw_probe_alignment(BlockDriverState *bs,= int fd, Error **errp) =20 bs->bl.request_alignment =3D 0; s->buf_align =3D 0; - /* Let's try to use the logical blocksize for the alignment. */ - if (probe_logical_blocksize(fd, &bs->bl.request_alignment) < 0) { - bs->bl.request_alignment =3D 0; - } =20 -#ifdef __linux__ +#if defined(__linux__) && defined(STATX_DIOALIGN) + struct statx stx; + /* - * The XFS ioctl definitions are shipped in extra packages that might - * not always be available. Since we just need the XFS_IOC_DIOINFO ioc= tl - * here, we simply use our own definition instead: + * Linux 6.1 introduced an interface for both block devices and file + * systems. The system call returns with the STATX_DIOALIGN bit cleared + * when the information is unavailable. */ - struct xfs_dioattr { - uint32_t d_mem; - uint32_t d_miniosz; - uint32_t d_maxiosz; - } da; - if (ioctl(fd, _IOR('X', 30, struct xfs_dioattr), &da) >=3D 0) { - bs->bl.request_alignment =3D da.d_miniosz; - /* The kernel returns wrong information for d_mem */ - /* s->buf_align =3D da.d_mem; */ + if (statx(fd, "", AT_EMPTY_PATH, STATX_DIOALIGN, &stx) =3D=3D 0 && + (stx.stx_mask & STATX_DIOALIGN)) { + bs->bl.request_alignment =3D stx.stx_dio_offset_align; + s->buf_align =3D stx.stx_dio_mem_align; + } +#endif /* defined(__linux__) && defined(STATX_DIOALIGN) */ + +#ifdef __linux__ + if (!bs->bl.request_alignment) { + /* + * The XFS ioctl definitions are shipped in extra packages that mi= ght + * not always be available. Since we just need the XFS_IOC_DIOINFO= ioctl + * here, we simply use our own definition instead: + */ + struct xfs_dioattr { + uint32_t d_mem; + uint32_t d_miniosz; + uint32_t d_maxiosz; + } da; + if (ioctl(fd, _IOR('X', 30, struct xfs_dioattr), &da) >=3D 0) { + bs->bl.request_alignment =3D da.d_miniosz; + /* The kernel returns wrong information for d_mem */ + /* s->buf_align =3D da.d_mem; */ + } + } +#endif /* __linux__ */ + + /* Let's try to use the logical blocksize for the alignment. */ + if (!bs->bl.request_alignment) { + if (probe_logical_blocksize(fd, &bs->bl.request_alignment) < 0) { + bs->bl.request_alignment =3D 0; + } } -#endif =20 /* * If we could not get the sizes so far, we can only guess them. First= try --=20 2.56.0 From nobody Mon Nov 23 05:00:07 2026 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=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1791390997; cv=none; d=zohomail.com; s=zohoarc; b=m3A9uBB7Jk5aAjUPrIfVmqiB1GZ37ygpLS3fgYDwimxIOKzSboCDjVT38Ve2yod9q0UbyNZyTmy21wqFyy3OQnE38b7pKPuO65xQqZGHe93mTpiF8DU6E6GoeiLHEw3geYuVRCc3OWpPMq4UYzlUyx4k5qKYHzJI0pbg4TmkZlY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1791390997; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=QGsZ5bbOV1gR0rGL3bdM0NNsq7wL7ymKlhbdLdCIB5M=; b=b18q8LVBt3KVB9/MBQxzNOh9InKnbOuzUQjUgN2YABmtrJVgGoPqBTrjwTU0A+4qsZy/5fEeFS716SW2ekCEb1maWDFnBvEIzHPpGBV2iBUyoDeAZ/P2JV3xawLki0gmkMO0j6v/iVp9ZcelaYnGKn8eYdMOjyuI4Yo1z1VDS3Q= 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=quarantine dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1791390997990305.9579232105614; Wed, 7 Oct 2026 09:36:37 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xEUcp-0004xr-UQ; Wed, 07 Oct 2026 12:36:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xEUbX-00030V-3q for qemu-devel@nongnu.org; Wed, 07 Oct 2026 12:34:58 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xEUbT-0006Nr-MB for qemu-devel@nongnu.org; Wed, 07 Oct 2026 12:34:54 -0400 Received: from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-251-ThguH2GcM8qhoS6tC97nFA-1; Wed, 07 Oct 2026 12:34:47 -0400 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 8D5891977010; Wed, 7 Oct 2026 16:34:46 +0000 (UTC) Received: from merkur.redhat.com (unknown [10.44.32.219]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 753831956087; Wed, 7 Oct 2026 16:34:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1791390889; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=QGsZ5bbOV1gR0rGL3bdM0NNsq7wL7ymKlhbdLdCIB5M=; b=FEoXTwm5JM5OV+bo1LOTVccGm/1JXTar9m5JSbCyKe6Ha6DMa1ZvBehy9WaoDKkdJc/1cg +6yQY5W9ONziOz/DPd8ucxSY4qa+25pNO9hfn4LNZgEX7NQAH33qX+A/9hj+V/KQM3EWL/ fV2xKKU62MZVBHQh7UsjvpedVWVJG1M= X-MC-Unique: ThguH2GcM8qhoS6tC97nFA-1 X-Mimecast-MFC-AGG-ID: ThguH2GcM8qhoS6tC97nFA_1791390886 From: Kevin Wolf To: qemu-block@nongnu.org Cc: kwolf@redhat.com, richard.henderson@linaro.org, qemu-devel@nongnu.org Subject: [PULL 18/21] qcow2: do not clear the dirty bit when reopening a read-only node Date: Wed, 7 Oct 2026 18:32:59 +0200 Message-ID: <20261007163302.332250-19-kwolf@redhat.com> In-Reply-To: <20261007163302.332250-1-kwolf@redhat.com> References: <20261007163302.332250-1-kwolf@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 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=lists1p.gnu.org; Received-SPF: pass client-ip=170.10.129.124; envelope-from=kwolf@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: 10 X-Spam_score: 1.0 X-Spam_bar: + X-Spam_report: (1.0 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.24, 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, RCVD_IN_SBL_CSS=3.335, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1791390998418158500 Content-Type: text/plain; charset="utf-8" From: "Denis V. Lunev" qcow2_reopen_prepare() clears the dirty bit whenever the node is reopened read-only, with an unguarded header write. A read-only node can still be dirty, inherited from an earlier writable session, and it holds no BLK_PERM_WRITE to resolve that. A read-only to read-only reopen of a dirty image therefore fails outright: $ qemu-io -r -f qcow2 dirty.qcow2 <<< $'reopen -r\nquit' qemu-io: failed while preparing to reopen image 'dirty.qcow2' Where the file node below is writable the write is not refused early, and bdrv_co_write_req_prepare() aborts on its BLK_PERM_WRITE assertion instead. Clear it only for a node that is writable now, the predicate qcow2_do_open() already uses for the repair. bdrv_is_writable() also excludes an inactive node, whose header must not be touched either. Signed-off-by: Denis V. Lunev Reviewed-by: Andrey Drobyshev CC: Kevin Wolf CC: Hanna Reitz CC: Andrey Drobyshev Cc: qemu-stable@nongnu.org Message-ID: <20260824133729.1141990-2-den@openvz.org> Reviewed-by: Kevin Wolf Signed-off-by: Kevin Wolf --- block/qcow2.c | 8 +++--- tests/qemu-iotests/039 | 50 ++++++++++++++++++++++++++++++++++++++ tests/qemu-iotests/039.out | 20 +++++++++++++++ 3 files changed, 75 insertions(+), 3 deletions(-) diff --git a/block/qcow2.c b/block/qcow2.c index 7292dd036c9..1543255eba8 100644 --- a/block/qcow2.c +++ b/block/qcow2.c @@ -2102,9 +2102,11 @@ qcow2_reopen_prepare(BDRVReopenState *state,BlockReo= penQueue *queue, goto fail; } =20 - ret =3D qcow2_mark_clean(state->bs); - if (ret < 0) { - goto fail; + if (bdrv_is_writable(state->bs)) { + ret =3D qcow2_mark_clean(state->bs); + if (ret < 0) { + goto fail; + } } } =20 diff --git a/tests/qemu-iotests/039 b/tests/qemu-iotests/039 index 8fe677ce731..686c6da50fd 100755 --- a/tests/qemu-iotests/039 +++ b/tests/qemu-iotests/039 @@ -93,6 +93,40 @@ $QEMU_IMG info --image-opts \ # The dirty bit must still be set: this open never wrote any guest data _qcow2_dump_header | grep incompatible_features =20 +echo +echo "=3D=3D Read-only reopen must not clear the dirty bit =3D=3D" + +# A read-only node cannot write the header, and must keep the dirty bit +$QEMU_IO -r -c "reopen -r" -c "read -P 0x5a 0 512" "$TEST_IMG" \ + | _filter_qemu_io + +# The dirty bit must still be set +_qcow2_dump_header | grep incompatible_features + +echo +echo "=3D=3D Read-only reopen must not write through a writable file node = =3D=3D" + +# The write the header update needs is refused by the permission system +echo "{'execute': 'qmp_capabilities'} + {'execute': 'blockdev-reopen', + 'arguments': {'options': [{'node-name': 'drive', + 'driver': 'qcow2', + 'read-only': true, + 'file': 'prot'}]}} + {'execute': 'quit'}" \ + | $QEMU -qmp stdio -nographic -nodefaults \ + -blockdev "{'node-name': 'prot', + 'driver': 'file', + 'filename': '$TEST_IMG'}" \ + -blockdev "{'node-name': 'drive', + 'driver': 'qcow2', + 'file': 'prot', + 'read-only': true}" \ + | _filter_qmp + +# The dirty bit must still be set +_qcow2_dump_header | grep incompatible_features + echo echo "=3D=3D Repairing the image file must succeed =3D=3D" =20 @@ -106,6 +140,22 @@ echo "=3D=3D Data should still be accessible after rep= air =3D=3D" =20 $QEMU_IO -c "read -P 0x5a 0 512" "$TEST_IMG" | _filter_qemu_io =20 +echo +echo "=3D=3D A read-write to read-only reopen must clear the dirty bit =3D= =3D" + +_make_test_img -o "compat=3D1.1,lazy_refcounts=3Don" $size + +# The kill keeps the close from clearing the bit, so the header shows what +# the reopen did with it +_NO_VALGRIND \ +$QEMU_IO -c "write -P 0x5a 0 512" \ + -c "reopen -r" \ + -c "sigraise $(kill -l KILL)" "$TEST_IMG" 2>&1 \ + | _filter_qemu_io + +# The dirty bit must not be set +_qcow2_dump_header | grep incompatible_features + echo echo "=3D=3D Opening a dirty image read/write should repair it =3D=3D" =20 diff --git a/tests/qemu-iotests/039.out b/tests/qemu-iotests/039.out index c66361128f6..ce8ee577216 100644 --- a/tests/qemu-iotests/039.out +++ b/tests/qemu-iotests/039.out @@ -27,6 +27,19 @@ incompatible_features [0] =3D=3D Read-only open must not crash on close =3D=3D incompatible_features [0] =20 +=3D=3D Read-only reopen must not clear the dirty bit =3D=3D +read 512/512 bytes at offset 0 +512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) +incompatible_features [0] + +=3D=3D Read-only reopen must not write through a writable file node =3D=3D +QMP_VERSION +{"return": {}} +{"return": {}} +{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event"= : "SHUTDOWN", "data": {"guest": false, "reason": "host-qmp-quit"}} +{"return": {}} +incompatible_features [0] + =3D=3D Repairing the image file must succeed =3D=3D ERROR cluster 5 refcount=3D0 reference=3D1 Rebuilding refcount structure @@ -45,6 +58,13 @@ incompatible_features [] read 512/512 bytes at offset 0 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) =20 +=3D=3D A read-write to read-only reopen must clear the dirty bit =3D=3D +Formatting 'TEST_DIR/t.IMGFMT', fmt=3DIMGFMT size=3D134217728 +wrote 512/512 bytes at offset 0 +512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) +./common.rc: Killed ( VALGRIND_QEMU=3D"${VALGRIND_QEMU_IO}" _qemu_proc_exe= c "${VALGRIND_LOGFILE}" "$QEMU_IO_PROG" $QEMU_IO_ARGS "$@" ) +incompatible_features [] + =3D=3D Opening a dirty image read/write should repair it =3D=3D Formatting 'TEST_DIR/t.IMGFMT', fmt=3DIMGFMT size=3D134217728 wrote 512/512 bytes at offset 0 --=20 2.56.0 From nobody Mon Nov 23 05:00:07 2026 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=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1791391038; cv=none; d=zohomail.com; s=zohoarc; b=jCuc6W5YLTB/U2s+A+/0L4MgmePsJhJfs5W2OZyc32HYTqr4Dnc5A8pMDnwe6eVEfT7fv6pgnlBJmmqwXjTg3vD/AVfCoBygTgB1Ao4/hhMhKR/zP9sEwA9ieH4k0GPcMDpKrFwgStXZuVTKoO+8bR8InuJpIwRCQfcoLSY2veE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1791391038; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=hXB0gGMfKgb0Zt/Ycb4mBMn3jY4f23+q5GG5HrOjNfs=; b=lyDNrUBZeafTyU6huZTvo9opjQTMZlpHMI0bY0JnnHEvXZ8RFJrnl7DtkBQLHnpZdZsP42L6d4YpNqy/OKE6oj7lzV5SsKZrR1DVGmUV/Dey7Owxy3Yd650OETKqpgyieBp9aleqJXLyg2r8dInX5ULkluCkWi9rp4e5PPDc/VA= 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=quarantine dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1791391038247912.0801466095924; Wed, 7 Oct 2026 09:37:18 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xEUcx-0005RN-Hu; Wed, 07 Oct 2026 12:36:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xEUbY-00030W-Gm for qemu-devel@nongnu.org; Wed, 07 Oct 2026 12:34:59 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xEUbU-0006O9-0y for qemu-devel@nongnu.org; Wed, 07 Oct 2026 12:34:55 -0400 Received: from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-498-VBVq-1TFOB65xpPblktjrA-1; Wed, 07 Oct 2026 12:34:49 -0400 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 4F5FF19775B2; Wed, 7 Oct 2026 16:34:48 +0000 (UTC) Received: from merkur.redhat.com (unknown [10.44.32.219]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id F31A61956087; Wed, 7 Oct 2026 16:34:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1791390890; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=hXB0gGMfKgb0Zt/Ycb4mBMn3jY4f23+q5GG5HrOjNfs=; b=JJVLha6sgXBtEBf/b1+H+FvzLsPG1BJ96lxiXGwXLvEST0GG73i9uMKJa3/DWLsUklmv8I bF3F5QfzLf3v49/YwlHNvEEbrMMHBrRSNC+Hnso9Ir5tgMV9p/hDTMOTtnoxS4QHGkjSBY Yn1nzEbRkhCJW6ifpGrond2zjNHXdgU= X-MC-Unique: VBVq-1TFOB65xpPblktjrA-1 X-Mimecast-MFC-AGG-ID: VBVq-1TFOB65xpPblktjrA_1791390888 From: Kevin Wolf To: qemu-block@nongnu.org Cc: kwolf@redhat.com, richard.henderson@linaro.org, qemu-devel@nongnu.org Subject: [PULL 19/21] block: reject a reopen of an unusable node instead of crashing Date: Wed, 7 Oct 2026 18:33:00 +0200 Message-ID: <20261007163302.332250-20-kwolf@redhat.com> In-Reply-To: <20261007163302.332250-1-kwolf@redhat.com> References: <20261007163302.332250-1-kwolf@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 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=lists1p.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=kwolf@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: 10 X-Spam_score: 1.0 X-Spam_bar: + X-Spam_report: (1.0 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.24, 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.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_SBL_CSS=3.335, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1791391038668158500 Content-Type: text/plain; charset="utf-8" From: "Denis V. Lunev" qcow2_signal_corruption() drops bs->drv, so a node can lose its driver at any time and a reopen has to expect that. Both ends of the path assume otherwise: $ qemu-io -c "read 0 64k" -c "reopen -r" corrupt.qcow2 qcow2: Marking image as corrupt: Cluster allocation offset 0x1200 unaligned (L2 offset: 0x40000, L2 index: 0); ... Segmentation fault bdrv_reopen_queue_child() dereferences bs->drv while descending into the children the node opened itself, and bdrv_reopen_prepare() asserts on it. commit_clean() reopens the base of a commit job back to read-only, so a base which goes corrupt under the job arrives here too. There is nothing to reopen for such a node, so stop descending into its children and let bdrv_reopen_prepare() report what every caller of bdrv_reopen() already handles. bdrv_reopen_commit() and bdrv_reopen_abort() keep their assertion, only a prepared entry reaches them. Signed-off-by: Denis V. Lunev Reviewed-by: Andrey Drobyshev CC: Kevin Wolf CC: Hanna Reitz CC: Andrey Drobyshev Cc: qemu-stable@nongnu.org Message-ID: <20260824133729.1141990-3-den@openvz.org> Reviewed-by: Kevin Wolf Signed-off-by: Kevin Wolf --- block.c | 14 +++++++++++++- tests/qemu-iotests/060 | 30 ++++++++++++++++++++++++++++++ tests/qemu-iotests/060.out | 12 ++++++++++++ 3 files changed, 55 insertions(+), 1 deletion(-) diff --git a/block.c b/block.c index f0a6042e616..e39f15816aa 100644 --- a/block.c +++ b/block.c @@ -4486,6 +4486,11 @@ bdrv_reopen_queue_child(BlockReopenQueue *bs_queue, = BlockDriverState *bs, !qdict_haskey(options, "backing.driver"); } =20 + /* An unusable node is rejected by bdrv_reopen_prepare(), do not desce= nd */ + if (!bs->drv) { + return bs_queue; + } + QLIST_FOREACH(child, &bs->children, next) { QDict *new_child_options =3D NULL; bool child_keep_old =3D keep_old_opts; @@ -4881,9 +4886,16 @@ bdrv_reopen_prepare(BDRVReopenState *reopen_state, B= lockReopenQueue *queue, bool drv_prepared =3D false; =20 assert(reopen_state !=3D NULL); - assert(reopen_state->bs->drv !=3D NULL); GLOBAL_STATE_CODE(); + drv =3D reopen_state->bs->drv; + if (drv =3D=3D NULL) { + GRAPH_RDLOCK_GUARD_MAINLOOP(); + + error_setg(errp, "Block node '%s' has no driver left to reopen", + bdrv_get_device_or_node_name(reopen_state->bs)); + return -ENOMEDIUM; + } =20 /* This function and each driver's bdrv_reopen_prepare() remove * entries from reopen_state->options as they are processed, so diff --git a/tests/qemu-iotests/060 b/tests/qemu-iotests/060 index ccdc96b7f8b..50bdb8b81da 100755 --- a/tests/qemu-iotests/060 +++ b/tests/qemu-iotests/060 @@ -485,6 +485,36 @@ echo # Image should not have been marked corrupt _img_info --format-specific | grep 'corrupt:' =20 +echo +echo "=3D=3D=3D Testing the reopen of an image corrupted at runtime =3D=3D= =3D" +echo + +_make_test_img 64M +poke_file "$TEST_IMG" "$l1_offset" "\x00\x00\x00\x00\x2a\x2a\x2a\x2a" + +# The read leaves the node unusable, the reopen must report that +echo "{'execute': 'qmp_capabilities'} + {'execute': 'human-monitor-command', + 'arguments': {'command-line': 'qemu-io drive \"read 0 512\"'}} + {'execute': 'blockdev-reopen', + 'arguments': {'options': [{'node-name': 'drive', + 'driver': 'qcow2', + 'read-only': true, + 'file': { + 'driver': 'file', + 'filename': '$TEST_IMG' + }}]}} + {'execute': 'quit'}" \ + | $QEMU -qmp stdio -nographic -nodefaults \ + -blockdev "{'node-name': 'drive', + 'driver': 'qcow2', + 'file': { + 'driver': 'file', + 'filename': '$TEST_IMG' + }}" \ + 2>&1 \ + | _filter_qmp | _filter_qemu_io + # success, all done echo "*** done" rm -f $seq.full diff --git a/tests/qemu-iotests/060.out b/tests/qemu-iotests/060.out index 27275fd6b70..7a1835221b7 100644 --- a/tests/qemu-iotests/060.out +++ b/tests/qemu-iotests/060.out @@ -434,4 +434,16 @@ qcow2: Image is corrupt: L2 table offset 0x2a2a2a00 un= aligned (L1 index: 0); fur {"return": {}} =20 corrupt: false + +=3D=3D=3D Testing the reopen of an image corrupted at runtime =3D=3D=3D + +Formatting 'TEST_DIR/t.IMGFMT', fmt=3DIMGFMT size=3D67108864 +QMP_VERSION +{"return": {}} +qcow2: Marking image as corrupt: L2 table offset 0x2a2a2a00 unaligned (L1 = index: 0); further corruption events will be suppressed +{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event"= : "BLOCK_IMAGE_CORRUPTED", "data": {"device": "", "msg": "L2 table offset 0= x2a2a2a00 unaligned (L1 index: 0)", "node-name": "drive", "fatal": true}} +{"return": "Error: read failed: Input/output error\r\n"} +{"error": {"class": "GenericError", "desc": "Block node 'drive' has no dri= ver left to reopen"}} +{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event"= : "SHUTDOWN", "data": {"guest": false, "reason": "host-qmp-quit"}} +{"return": {}} *** done --=20 2.56.0 From nobody Mon Nov 23 05:00:07 2026 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=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1791391019; cv=none; d=zohomail.com; s=zohoarc; b=L6cMgmgimDJ2W9Na1KiPGCbKYlXeyLudZ5EmfgmOKTHMXFGwOWxRZFCZQ02UTt95Fmog0m81mcdKD5z/1r/tshAC71cx9zN2pe++ECsFY0iKrU9z+1urvrCjYfRpQMB9kg6ghEwC3kZVpPb3nSznoLYEl7YzgXzptBAEjcLHR4c= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1791391019; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=SIF0St3KCIh2pMDuUdt0923blCovb+WQcXz//wWJXDE=; b=G/MEN5Xr2hkqoM3BubQ+afFQiF8eQx1M9onnQ/3oQVUPzDbEIgUxlqO+FNqlGC2dgjL9oy2NGwUTcUOvBIS/Ph/oIvzcbZr0gV3GNxKgcBBYvrlpDvvctcx2sEIyYSJYg5huZ/9I1Lw8YwkI8+Geh4+IEKfyzmzcQpZovIdcrdg= 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=quarantine dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1791391019702589.0598455789483; Wed, 7 Oct 2026 09:36:59 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xEUcs-0004yY-2e; Wed, 07 Oct 2026 12:36:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xEUba-000327-1W for qemu-devel@nongnu.org; Wed, 07 Oct 2026 12:34:59 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xEUbV-0006Og-VP for qemu-devel@nongnu.org; Wed, 07 Oct 2026 12:34:56 -0400 Received: from mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-680-TA9p1wvcMBSVPkn_m1RBWA-1; Wed, 07 Oct 2026 12:34:51 -0400 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 12E68192D0A9; Wed, 7 Oct 2026 16:34:50 +0000 (UTC) Received: from merkur.redhat.com (unknown [10.44.32.219]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id B50351956087; Wed, 7 Oct 2026 16:34:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1791390892; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=SIF0St3KCIh2pMDuUdt0923blCovb+WQcXz//wWJXDE=; b=b3Y3Q9nRQ5jjFBG6P38vX+p/vFbb9pZvh5VnE7/juOs6SFQYKp/yfeEDAl4OUo2Fo9Y+qK m77uLA1NqqSe89jwbVbWTpRPUi23jy/rB1SJWG93mav7to+Ciu6ItBGOG5eKSRa1Q65Nyq cbHXIwu4mn2JYpqQ0fJWPLohp0juFKQ= X-MC-Unique: TA9p1wvcMBSVPkn_m1RBWA-1 X-Mimecast-MFC-AGG-ID: TA9p1wvcMBSVPkn_m1RBWA_1791390890 From: Kevin Wolf To: qemu-block@nongnu.org Cc: kwolf@redhat.com, richard.henderson@linaro.org, qemu-devel@nongnu.org Subject: [PULL 20/21] block: Fix corruption from broken RMW atomicity Date: Wed, 7 Oct 2026 18:33:01 +0200 Message-ID: <20261007163302.332250-21-kwolf@redhat.com> In-Reply-To: <20261007163302.332250-1-kwolf@redhat.com> References: <20261007163302.332250-1-kwolf@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 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=lists1p.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=kwolf@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: 10 X-Spam_score: 1.0 X-Spam_bar: + X-Spam_report: (1.0 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.24, 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.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_SBL_CSS=3.335, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1791391020554158500 Content-Type: text/plain; charset="utf-8" When emulating 512 byte sector devices on top of 4k native host storage, QEMU performs a read-modify-write cycle for misaligned write requests. These requests are marked as serialising so that any other writes to the same 4k block will have to wait and can't overwrite the block in the middle, which would make the RMW write back stale data. In principle, this mechanism works fine, but there is a race condition in the implementation: bdrv_find_conflicting_request() assumes that req->waiting_for =3D=3D NULL means that the request is the active owner of the data blocks it touches and everyone else has to wait for this request. However, there is a window between tracked_request_begin() and bdrv_wait_serialising_requests_locked() where any new request has req->waiting_for =3D=3D NULL even if it conflicts with an already running serialising request. So at this point, we have seemingly two active owners at the same time until the new request checks for conflicts. For a third request coming in, this isn't a problem, it just might wait for a little longer than necessary. However, if the original RMW request calls bdrv_wait_serialising_requests_locked() again (which it does in bdrv_aligned_pwritev() -> bdrv_co_write_req_prepare() before writing back the RMW buffer), it will now wait on the other request that snuck in, which is fatal and makes the RMW buffer stale. This scenario causes data corruption. Fix this by checking for conflicts already in tracked_request_begin() while holding the bs->reqs_lock mutex, so that the race window is closed and req->waiting_for =3D=3D NULL really has the intended meaning. For good measure, add an active_owner boolean that is set when a request is marked serialising and has completed waiting for other requests, and assert that it is not set when waiting for another request, so that in the case of another bug, we'd crash instead of causing data corruption. Cc: qemu-stable@nongnu.org Buglink: https://redhat.atlassian.net/browse/RHEL-272836 Signed-off-by: Kevin Wolf Message-ID: <20261002132135.93345-2-kwolf@redhat.com> Signed-off-by: Kevin Wolf --- include/block/block_int-common.h | 1 + block/io.c | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/include/block/block_int-common.h b/include/block/block_int-com= mon.h index 147c08155f7..46428b034de 100644 --- a/include/block/block_int-common.h +++ b/include/block/block_int-common.h @@ -80,6 +80,7 @@ typedef struct BdrvTrackedRequest { enum BdrvTrackedRequestType type; =20 bool serialising; + bool active_owner; int64_t overlap_offset; int64_t overlap_bytes; =20 diff --git a/block/io.c b/block/io.c index a916b236c3c..bd562d472fd 100644 --- a/block/io.c +++ b/block/io.c @@ -50,6 +50,9 @@ static int coroutine_fn bdrv_co_do_pwrite_zeroes(BlockDriverState *bs, int64_t offset, int64_t bytes, BdrvRequestFlags flags); =20 +static void coroutine_fn +bdrv_wait_serialising_requests_locked(BdrvTrackedRequest *self); + static void GRAPH_RDLOCK bdrv_parent_drained_begin(BlockDriverState *bs, BdrvChild *ignore) { @@ -616,6 +619,7 @@ static void coroutine_fn tracked_request_begin(BdrvTrac= kedRequest *req, .type =3D type, .co =3D qemu_coroutine_self(), .serialising =3D false, + .active_owner =3D false, .overlap_offset =3D offset, .overlap_bytes =3D bytes, }; @@ -624,6 +628,15 @@ static void coroutine_fn tracked_request_begin(BdrvTra= ckedRequest *req, =20 qemu_mutex_lock(&bs->reqs_lock); QLIST_INSERT_HEAD(&bs->tracked_requests, req, list); + + /* + * Set .waiting_for while we're holding the lock, otherwise we'd open = a race + * window where another request in the middle of its RMW cycle starts + * waiting for us, leading to potential data corruption if this request + * overwrites a block the RMW request has already read. + */ + bdrv_wait_serialising_requests_locked(req); + qemu_mutex_unlock(&bs->reqs_lock); } =20 @@ -684,6 +697,15 @@ bdrv_wait_serialising_requests_locked(BdrvTrackedReque= st *self) BdrvTrackedRequest *req; =20 while ((req =3D bdrv_find_conflicting_request(self))) { + /* + * If this request is the active owner of the data blocks it acces= ses, + * no other conflicting request may exist; other requests have to = wait + * for this one, not the other way around. If this condition is + * violated, RMW operations may be interrupted in the middle, oper= ate on + * stale data and introduce data corruption. + */ + assert(!self->active_owner); + self->waiting_for =3D req; qemu_co_queue_wait(&req->wait_queue, &self->bs->reqs_lock); self->waiting_for =3D NULL; @@ -803,6 +825,7 @@ void coroutine_fn bdrv_make_request_serialising(BdrvTra= ckedRequest *req, =20 tracked_request_set_serialising(req, align); bdrv_wait_serialising_requests_locked(req); + req->active_owner =3D true; =20 qemu_mutex_unlock(&req->bs->reqs_lock); } --=20 2.56.0 From nobody Mon Nov 23 05:00:07 2026 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=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1791391038; cv=none; d=zohomail.com; s=zohoarc; b=WxZvVyC/TVR/SK7CLGfzXkERSFS0WDodtfdHEVG0w4a4/54ZWAIvoD7Z60o2YgNffEJbW7awYeI0rlVTKoWglAXeriPQepcGBTV7tPihpGMxXK3Z/XlY+tIykZOwxxWaJ+gnr+rpcZbSc4wS6xqe6+pGxCj+vCcsCp5RZXaRlHE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1791391038; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=oP9HIhOiu8UQukEcAMhkuxEmXZ4pjqBY8WBtRUInG+U=; b=CT0WtXPzCAEFGZhy8I2/6STsW1Ws+uxFXxXAucMmQK+OoOVUkYURZeoR0tjYWb6vuilp1NVPs7sb4m3Y7MczLrYauDCR5F9b6RLhcthVmErcGbUo4oFEA7q38eAOKZpoYsSqTnKimvjpeCe3fE0xgTxoK69fdRPvYQyNCXc4pyk= 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=quarantine dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1791391038184874.8449406549357; Wed, 7 Oct 2026 09:37:18 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xEUd0-0005uZ-Ok; Wed, 07 Oct 2026 12:36:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xEUbb-00033V-VF for qemu-devel@nongnu.org; Wed, 07 Oct 2026 12:35:00 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xEUbX-0006PJ-RV for qemu-devel@nongnu.org; Wed, 07 Oct 2026 12:34:58 -0400 Received: from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-488-RXn1WWyROQKLrGZy8TsGug-1; Wed, 07 Oct 2026 12:34:52 -0400 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id C78261800763; Wed, 7 Oct 2026 16:34:51 +0000 (UTC) Received: from merkur.redhat.com (unknown [10.44.32.219]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 7786D1956052; Wed, 7 Oct 2026 16:34:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1791390894; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=oP9HIhOiu8UQukEcAMhkuxEmXZ4pjqBY8WBtRUInG+U=; b=VUpo/Pd2EUhhVmzIO+0e3D4cwP24nmg5mG5+HnFygP3rC+V1PpgQpWIVJMOip4MDeVxfl/ j4D4W7wYH5vGKMcSvDAN7NWt/XIH2aWEQZIsydCm5sox4czRYoBdz5PeOKPZgFXvJx+sCF z/zg0j987QabM0IYRpNT+NTfqvXtj7I= X-MC-Unique: RXn1WWyROQKLrGZy8TsGug-1 X-Mimecast-MFC-AGG-ID: RXn1WWyROQKLrGZy8TsGug_1791390891 From: Kevin Wolf To: qemu-block@nongnu.org Cc: kwolf@redhat.com, richard.henderson@linaro.org, qemu-devel@nongnu.org Subject: [PULL 21/21] block: Remove now redundant bdrv_wait_serialising_requests() calls Date: Wed, 7 Oct 2026 18:33:02 +0200 Message-ID: <20261007163302.332250-22-kwolf@redhat.com> In-Reply-To: <20261007163302.332250-1-kwolf@redhat.com> References: <20261007163302.332250-1-kwolf@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 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=lists1p.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=kwolf@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -22 X-Spam_score: -2.3 X-Spam_bar: -- X-Spam_report: (-2.3 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.24, 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.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-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.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1791391038621158500 Content-Type: text/plain; charset="utf-8" All callers of bdrv_wait_serialising_requests() (as opposed to bdrv_wait_serialising_requests_locked()) are just duplicating the check that tracked_request_begin() already performs now. After removing them, bdrv_wait_serialising_requests() has no callers left and can go as well. Signed-off-by: Kevin Wolf Message-ID: <20261002132135.93345-3-kwolf@redhat.com> Signed-off-by: Kevin Wolf --- block/io.c | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/block/io.c b/block/io.c index bd562d472fd..1c05dd106d6 100644 --- a/block/io.c +++ b/block/io.c @@ -802,20 +802,6 @@ void bdrv_dec_in_flight(BlockDriverState *bs) bdrv_wakeup(bs); } =20 -static void coroutine_fn -bdrv_wait_serialising_requests(BdrvTrackedRequest *self) -{ - BlockDriverState *bs =3D self->bs; - - if (!qatomic_read(&bs->serialising_in_flight)) { - return; - } - - qemu_mutex_lock(&bs->reqs_lock); - bdrv_wait_serialising_requests_locked(self); - qemu_mutex_unlock(&bs->reqs_lock); -} - void coroutine_fn bdrv_make_request_serialising(BdrvTrackedRequest *req, uint64_t align) { @@ -1383,8 +1369,6 @@ bdrv_aligned_preadv(BdrvChild *child, BdrvTrackedRequ= est *req, * it ensures that the CoR read and write operations are atomic and * guest writes cannot interleave between them. */ bdrv_make_request_serialising(req, bdrv_get_cluster_size(bs)); - } else { - bdrv_wait_serialising_requests(req); } =20 if (flags & BDRV_REQ_COPY_ON_READ) { @@ -2021,8 +2005,6 @@ bdrv_co_write_req_prepare(BdrvChild *child, int64_t o= ffset, int64_t bytes, } =20 bdrv_wait_serialising_requests_locked(req); - } else { - bdrv_wait_serialising_requests(req); } =20 assert(req->overlap_offset <=3D offset); @@ -3530,7 +3512,6 @@ static int coroutine_fn GRAPH_RDLOCK bdrv_co_copy_ran= ge_internal( =20 /* BDRV_REQ_SERIALISING is only for write operation */ assert(!(read_flags & BDRV_REQ_SERIALISING)); - bdrv_wait_serialising_requests(&req); =20 ret =3D src->bs->drv->bdrv_co_copy_range_from(src->bs, src, src_offset, --=20 2.56.0