1 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2 From: Stefan Reiter <s.reiter@proxmox.com>
3 Date: Wed, 8 Jul 2020 11:57:53 +0200
4 Subject: [PATCH] PVE: add query_proxmox_support QMP command
6 Generic interface for future use, currently used for PBS dirty-bitmap
9 Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
10 Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
11 [PVE: query-proxmox-support: include library version]
12 Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
14 pve-backup.c | 9 +++++++++
15 qapi/block-core.json | 29 +++++++++++++++++++++++++++++
16 2 files changed, 38 insertions(+)
18 diff --git a/pve-backup.c b/pve-backup.c
19 index c15abefdda..4684789813 100644
22 @@ -1075,3 +1075,12 @@ BackupStatus *qmp_query_backup(Error **errp)
27 +ProxmoxSupportStatus *qmp_query_proxmox_support(Error **errp)
29 + ProxmoxSupportStatus *ret = g_malloc0(sizeof(*ret));
30 + ret->pbs_library_version = g_strdup(proxmox_backup_qemu_version());
31 + ret->pbs_dirty_bitmap = true;
32 + ret->pbs_dirty_bitmap_savevm = true;
35 diff --git a/qapi/block-core.json b/qapi/block-core.json
36 index 96bc696aaa..0b453c61d4 100644
37 --- a/qapi/block-core.json
38 +++ b/qapi/block-core.json
41 { 'command': 'backup-cancel' }
44 +# @ProxmoxSupportStatus:
46 +# Contains info about supported features added by Proxmox.
48 +# @pbs-dirty-bitmap: True if dirty-bitmap-incremental backups to PBS are
51 +# @pbs-dirty-bitmap-savevm: True if 'dirty-bitmaps' migration capability can
52 +# safely be set for savevm-async.
54 +# @pbs-library-version: Running version of libproxmox-backup-qemu0 library.
57 +{ 'struct': 'ProxmoxSupportStatus',
58 + 'data': { 'pbs-dirty-bitmap': 'bool',
59 + 'pbs-dirty-bitmap-savevm': 'bool',
60 + 'pbs-library-version': 'str' } }
63 +# @query-proxmox-support:
65 +# Returns information about supported features added by Proxmox.
67 +# Returns: @ProxmoxSupportStatus
70 +{ 'command': 'query-proxmox-support', 'returns': 'ProxmoxSupportStatus' }
73 # @BlockDeviceTimedStats: