|
|
d76c62 |
From b28ebb2480fb205ff10059a04745ff989d4f04b0 Mon Sep 17 00:00:00 2001
|
|
|
d76c62 |
Message-Id: <b28ebb2480fb205ff10059a04745ff989d4f04b0@dist-git>
|
|
|
d76c62 |
From: Peter Krempa <pkrempa@redhat.com>
|
|
|
d76c62 |
Date: Mon, 16 Mar 2020 22:11:38 +0100
|
|
|
d76c62 |
Subject: [PATCH] qemu: capabilities: Introduce
|
|
|
d76c62 |
QEMU_CAPS_BLOCKDEV_SNAPSHOT_ALLOW_WRITE_ONLY
|
|
|
d76c62 |
MIME-Version: 1.0
|
|
|
d76c62 |
Content-Type: text/plain; charset=UTF-8
|
|
|
d76c62 |
Content-Transfer-Encoding: 8bit
|
|
|
d76c62 |
|
|
|
d76c62 |
The capability is based on qemu's support of using blockdev-snapshot to
|
|
|
d76c62 |
install backing chain also for images which are in use by a block-copy
|
|
|
d76c62 |
job.
|
|
|
d76c62 |
|
|
|
d76c62 |
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
|
|
|
d76c62 |
Reviewed-by: Eric Blake <eblake@redhat.com>
|
|
|
d76c62 |
(cherry picked from commit d6498be16565f23750f7e906050bdbc30678101f)
|
|
|
d76c62 |
|
|
|
d76c62 |
Conflicts:
|
|
|
d76c62 |
src/qemu/qemu_capabilities.c
|
|
|
d76c62 |
src/qemu/qemu_capabilities.h
|
|
|
d76c62 |
|
|
|
d76c62 |
QEMU_CAPS_QMP_QUERY_NAMED_BLOCK_NODES_FLAT not backported
|
|
|
d76c62 |
|
|
|
d76c62 |
tests/qemucapabilitiesdata/caps_5.0.0.x86_64.xml
|
|
|
d76c62 |
|
|
|
d76c62 |
Capability file update not backported
|
|
|
d76c62 |
|
|
|
d76c62 |
https://bugzilla.redhat.com/show_bug.cgi?id=1803092
|
|
|
d76c62 |
Message-Id: <8240acbad794e65a4e3c61be3fa6713e0cb181ae.1584391726.git.pkrempa@redhat.com>
|
|
|
d76c62 |
Reviewed-by: Ján Tomko <jtomko@redhat.com>
|
|
|
d76c62 |
---
|
|
|
d76c62 |
src/qemu/qemu_capabilities.c | 2 ++
|
|
|
d76c62 |
src/qemu/qemu_capabilities.h | 1 +
|
|
|
d76c62 |
2 files changed, 3 insertions(+)
|
|
|
d76c62 |
|
|
|
d76c62 |
diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c
|
|
|
d76c62 |
index 34df4d89b3..663017157b 100644
|
|
|
d76c62 |
--- a/src/qemu/qemu_capabilities.c
|
|
|
d76c62 |
+++ b/src/qemu/qemu_capabilities.c
|
|
|
d76c62 |
@@ -559,6 +559,7 @@ VIR_ENUM_IMPL(virQEMUCaps,
|
|
|
d76c62 |
"virtio-net.failover",
|
|
|
d76c62 |
"cpu.kvm-no-adjvtime",
|
|
|
d76c62 |
"vhost-user-fs",
|
|
|
d76c62 |
+ "blockdev-snapshot.allow-write-only-overlay",
|
|
|
d76c62 |
);
|
|
|
d76c62 |
|
|
|
d76c62 |
|
|
|
d76c62 |
@@ -1432,6 +1433,7 @@ static struct virQEMUCapsStringFlags virQEMUCapsQMPSchemaQueries[] = {
|
|
|
d76c62 |
{ "blockdev-add/arg-type/+file/$dynamic-auto-read-only", QEMU_CAPS_BLOCK_FILE_AUTO_READONLY_DYNAMIC },
|
|
|
d76c62 |
{ "human-monitor-command/$savevm-monitor-nodes", QEMU_CAPS_SAVEVM_MONITOR_NODES },
|
|
|
d76c62 |
{ "blockdev-add/arg-type/+nvme", QEMU_CAPS_DRIVE_NVME },
|
|
|
d76c62 |
+ { "blockdev-snapshot/$allow-write-only-overlay", QEMU_CAPS_BLOCKDEV_SNAPSHOT_ALLOW_WRITE_ONLY },
|
|
|
d76c62 |
};
|
|
|
d76c62 |
|
|
|
d76c62 |
typedef struct _virQEMUCapsObjectTypeProps virQEMUCapsObjectTypeProps;
|
|
|
d76c62 |
diff --git a/src/qemu/qemu_capabilities.h b/src/qemu/qemu_capabilities.h
|
|
|
d76c62 |
index e3449a9ca3..2eb8599525 100644
|
|
|
d76c62 |
--- a/src/qemu/qemu_capabilities.h
|
|
|
d76c62 |
+++ b/src/qemu/qemu_capabilities.h
|
|
|
d76c62 |
@@ -540,6 +540,7 @@ typedef enum { /* virQEMUCapsFlags grouping marker for syntax-check */
|
|
|
d76c62 |
QEMU_CAPS_VIRTIO_NET_FAILOVER, /* virtio-net-*.failover */
|
|
|
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 |
|
|
|
d76c62 |
QEMU_CAPS_LAST /* this must always be the last item */
|
|
|
d76c62 |
} virQEMUCapsFlags;
|
|
|
d76c62 |
--
|
|
|
d76c62 |
2.25.1
|
|
|
d76c62 |
|