cryptospore / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone

Blame SOURCES/kvm-block-Versioned-x-blockdev-reopen-API-with-feature-f.patch

902636
From 371d312300251c0dc24522607b06b7e47e760b53 Mon Sep 17 00:00:00 2001
902636
From: Kevin Wolf <kwolf@redhat.com>
902636
Date: Fri, 13 Mar 2020 12:34:32 +0000
902636
Subject: [PATCH 12/20] block: Versioned x-blockdev-reopen API with feature
902636
 flag
902636
902636
RH-Author: Kevin Wolf <kwolf@redhat.com>
902636
Message-id: <20200313123439.10548-7-kwolf@redhat.com>
902636
Patchwork-id: 94283
902636
O-Subject: [RHEL-AV-8.2.0 qemu-kvm PATCH v2 06/13] block: Versioned x-blockdev-reopen API with feature flag
902636
Bugzilla: 1790482 1805143
902636
RH-Acked-by: Eric Blake <eblake@redhat.com>
902636
RH-Acked-by: John Snow <jsnow@redhat.com>
902636
RH-Acked-by: Daniel P. Berrange <berrange@redhat.com>
902636
RH-Acked-by: Peter Krempa <pkrempa@redhat.com>
902636
902636
x-blockdev-reopen is still considered unstable upstream. libvirt needs
902636
(a small subset of) it for incremental backups, though.
902636
902636
Add a downstream-only feature flag that effectively makes this a
902636
versioned interface. As long as the feature is present, we promise that
902636
we won't change the interface incompatibly. Incompatible changes to the
902636
command will require us to drop the feature flag (and possibly introduce
902636
a new one if the new version is still not stable upstream).
902636
902636
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
902636
Signed-off-by: Danilo C. L. de Paula <ddepaula@redhat.com>
902636
---
902636
 qapi/block-core.json | 9 ++++++++-
902636
 1 file changed, 8 insertions(+), 1 deletion(-)
902636
902636
diff --git a/qapi/block-core.json b/qapi/block-core.json
902636
index 0cf68fe..a1e85b0 100644
902636
--- a/qapi/block-core.json
902636
+++ b/qapi/block-core.json
902636
@@ -4202,10 +4202,17 @@
902636
 # image does not have a default backing file name as part of its
902636
 # metadata.
902636
 #
902636
+# Features:
902636
+# @__com.redhat_rhel-av-8_2_0-api: Versioning the downstream interface while
902636
+#                                  it's still unstable upstream. As long as
902636
+#                                  this flag is present, this command will not
902636
+#                                  change incompatibly.
902636
+#
902636
 # Since: 4.0
902636
 ##
902636
 { 'command': 'x-blockdev-reopen',
902636
-  'data': 'BlockdevOptions', 'boxed': true }
902636
+  'data': 'BlockdevOptions', 'boxed': true,
902636
+  'features': [ '__com.redhat_rhel-av-8_2_0-api' ] }
902636
 
902636
 ##
902636
 # @blockdev-del:
902636
-- 
902636
1.8.3.1
902636