|
|
d76c62 |
From e76712462c74fad141b5d63563c554447fdc497a Mon Sep 17 00:00:00 2001
|
|
|
d76c62 |
Message-Id: <e76712462c74fad141b5d63563c554447fdc497a@dist-git>
|
|
|
d76c62 |
From: Peter Krempa <pkrempa@redhat.com>
|
|
|
d76c62 |
Date: Mon, 16 Mar 2020 22:12:14 +0100
|
|
|
d76c62 |
Subject: [PATCH] qemu: capabilities: Add QEMU_CAPS_BLOCKDEV_REOPEN
|
|
|
d76c62 |
MIME-Version: 1.0
|
|
|
d76c62 |
Content-Type: text/plain; charset=UTF-8
|
|
|
d76c62 |
Content-Transfer-Encoding: 8bit
|
|
|
d76c62 |
|
|
|
d76c62 |
This capability will be asserted once qemu stabilizes 'blockdev-reopen'.
|
|
|
d76c62 |
For now we just add the capability so that we can introduce some code
|
|
|
d76c62 |
that will use the reopening call. This will show our willingness to
|
|
|
d76c62 |
adopt use of reopen and help qemu developers stabilize it.
|
|
|
d76c62 |
|
|
|
d76c62 |
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
|
|
|
d76c62 |
Reviewed-by: Eric Blake <eblake@redhat.com>
|
|
|
d76c62 |
(cherry picked from commit ecdd92976144ba9caeae3ce781e39b5e9cc08807)
|
|
|
d76c62 |
|
|
|
d76c62 |
https://bugzilla.redhat.com/show_bug.cgi?id=1799013
|
|
|
d76c62 |
Message-Id: <f3d864a179b997038d3c06e7de54c6ba77fff3d7.1584391727.git.pkrempa@redhat.com>
|
|
|
d76c62 |
Reviewed-by: Ján Tomko <jtomko@redhat.com>
|
|
|
d76c62 |
---
|
|
|
d76c62 |
src/qemu/qemu_capabilities.c | 1 +
|
|
|
d76c62 |
src/qemu/qemu_capabilities.h | 1 +
|
|
|
d76c62 |
2 files changed, 2 insertions(+)
|
|
|
d76c62 |
|
|
|
d76c62 |
diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c
|
|
|
d76c62 |
index 663017157b..a4046b09d6 100644
|
|
|
d76c62 |
--- a/src/qemu/qemu_capabilities.c
|
|
|
d76c62 |
+++ b/src/qemu/qemu_capabilities.c
|
|
|
d76c62 |
@@ -560,6 +560,7 @@ VIR_ENUM_IMPL(virQEMUCaps,
|
|
|
d76c62 |
"cpu.kvm-no-adjvtime",
|
|
|
d76c62 |
"vhost-user-fs",
|
|
|
d76c62 |
"blockdev-snapshot.allow-write-only-overlay",
|
|
|
d76c62 |
+ "blockdev-reopen",
|
|
|
d76c62 |
);
|
|
|
d76c62 |
|
|
|
d76c62 |
|
|
|
d76c62 |
diff --git a/src/qemu/qemu_capabilities.h b/src/qemu/qemu_capabilities.h
|
|
|
d76c62 |
index 2eb8599525..8fdbe05638 100644
|
|
|
d76c62 |
--- a/src/qemu/qemu_capabilities.h
|
|
|
d76c62 |
+++ b/src/qemu/qemu_capabilities.h
|
|
|
d76c62 |
@@ -541,6 +541,7 @@ typedef enum { /* virQEMUCapsFlags grouping marker for syntax-check */
|
|
|
d76c62 |
QEMU_CAPS_CPU_KVM_NO_ADJVTIME, /* cpu.kvm-no-adjvtime */
|
|
|
d76c62 |
QEMU_CAPS_DEVICE_VHOST_USER_FS, /* -device vhost-user-fs */
|
|
|
d76c62 |
QEMU_CAPS_BLOCKDEV_SNAPSHOT_ALLOW_WRITE_ONLY, /* blockdev-snapshot has the 'allow-write-only-overlay' feature */
|
|
|
d76c62 |
+ QEMU_CAPS_BLOCKDEV_REOPEN, /* 'blockdev-reopen' qmp command is supported */
|
|
|
d76c62 |
|
|
|
d76c62 |
QEMU_CAPS_LAST /* this must always be the last item */
|
|
|
d76c62 |
} virQEMUCapsFlags;
|
|
|
d76c62 |
--
|
|
|
d76c62 |
2.25.1
|
|
|
d76c62 |
|