From nobody Sun Feb 8 20:12:38 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as permitted sender) client-ip=207.211.31.81; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1583931383; cv=none; d=zohomail.com; s=zohoarc; b=UDySvtr9xy05NIRTwevNM64qFh53l2FGjzBWA/e66saJtYnqcOF77KzC1emck41bWU8fwMw75mDZiQToNOPOw6iJ8HDxETUL42yN0agDLQeXDKSZNVXKTeslVkjwaOuEGl2st7X2l9eunRKTIEGJz6IMu0cymarzY8Fu7f5mJxw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1583931383; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=5vM423Xip/CDONTFuMI9oX7ey0sm5BgPGu2HlF3ZYko=; b=Mk5OQSzs6RkgWDhL0enC3jMOGQZ+QnR8MNnhOWraCVVALTN1OUq85vy0E7mFUMn1XnWoInLohE/3v32cgS05qvFzQDxVe5R8WlxHK/XiRjSXiOawxiMNqFVVLCs8yykoF+da/p+t5/QuYMyspak2Qqxm0RNvrzxgYRBK0AIwFgQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-1.mimecast.com (us-smtp-2.mimecast.com [207.211.31.81]) by mx.zohomail.com with SMTPS id 1583931383643326.95175093889804; Wed, 11 Mar 2020 05:56:23 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-21-5pF-GKcBP-6QSE7eZpOtLQ-1; Wed, 11 Mar 2020 08:56:20 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 080D7100A5F1; Wed, 11 Mar 2020 12:56:15 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id D1C528F379; Wed, 11 Mar 2020 12:56:14 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 8611D1832E26; Wed, 11 Mar 2020 12:56:14 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 02BCu975009281 for ; Wed, 11 Mar 2020 08:56:09 -0400 Received: by smtp.corp.redhat.com (Postfix) id 1C9F45C296; Wed, 11 Mar 2020 12:56:09 +0000 (UTC) Received: from angien.redhat.com (unknown [10.43.2.48]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6E81A5C1D8; Wed, 11 Mar 2020 12:56:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1583931382; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=5vM423Xip/CDONTFuMI9oX7ey0sm5BgPGu2HlF3ZYko=; b=GLzuTW0LM3ZtgHoYGEFOoJBmLeMNn99KcoaeJ0pYkps0gQ8UWE8IPSp9pIl/IEXOjP1J7c ETv+6ooo3W9bG4uTq6yqaE/rwGFomrubaGjEL1AcrXW0VuQRsjI3QM1oA4ZUUQpghi+RIU TuDlj/ZKNdZB7hyBdKhrLG/JFX/mrco= X-MC-Unique: 5pF-GKcBP-6QSE7eZpOtLQ-1 From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH v2 01/19] qemu: capabilities: Add QEMU_CAPS_BLOCKDEV_REOPEN Date: Wed, 11 Mar 2020 13:55:46 +0100 Message-Id: <06904760fbccfa4b09fbc8e133edafcb68c78238.1583930936.git.pkrempa@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-loop: libvir-list@redhat.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" This capability will be asserted once qemu stabilizes 'blockdev-reopen'. For now we just add the capability so that we can introduce some code that will use the reopening call. This will show our willingness to adopt use of reopen and help qemu developers stabilize it. Signed-off-by: Peter Krempa Reviewed-by: Eric Blake --- src/qemu/qemu_capabilities.c | 1 + src/qemu/qemu_capabilities.h | 1 + 2 files changed, 2 insertions(+) diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c index 25a77c24af..c486697d5b 100644 --- a/src/qemu/qemu_capabilities.c +++ b/src/qemu/qemu_capabilities.c @@ -566,6 +566,7 @@ VIR_ENUM_IMPL(virQEMUCaps, "vhost-user-fs", "query-named-block-nodes.flat", "blockdev-snapshot.allow-write-only-overlay", + "blockdev-reopen", ); diff --git a/src/qemu/qemu_capabilities.h b/src/qemu/qemu_capabilities.h index e952fcb6b8..f0961e273c 100644 --- a/src/qemu/qemu_capabilities.h +++ b/src/qemu/qemu_capabilities.h @@ -547,6 +547,7 @@ typedef enum { /* virQEMUCapsFlags grouping marker for = syntax-check */ QEMU_CAPS_DEVICE_VHOST_USER_FS, /* -device vhost-user-fs */ QEMU_CAPS_QMP_QUERY_NAMED_BLOCK_NODES_FLAT, /* query-named-block-nodes= supports the 'flat' option */ QEMU_CAPS_BLOCKDEV_SNAPSHOT_ALLOW_WRITE_ONLY, /* blockdev-snapshot has= the 'allow-write-only-overlay' feature */ + QEMU_CAPS_BLOCKDEV_REOPEN, /* 'blockdev-reopen' qmp command is support= ed */ QEMU_CAPS_LAST /* this must always be the last item */ } virQEMUCapsFlags; --=20 2.24.1