yeahuh / 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

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