conf: domaincaps: Add 'backup' feature flag

This flag will allow figuring out whether the hypervisor supports the
incremental backup and checkpoint features.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Peter Krempa 2019-12-03 17:36:35 +01:00
parent 9400302477
commit 528191c754
4 changed files with 19 additions and 0 deletions

View File

@ -517,6 +517,7 @@
&lt;vmcoreinfo supported='yes'/&gt;
&lt;genid supported='yes'/&gt;
&lt;backingStoreInput supported='yes'/&gt;
&lt;backup supported='yes'/&gt;
&lt;sev&gt;
&lt;cbitpos&gt;47&lt;/cbitpos&gt;
&lt;reduced-phys-bits&gt;1&lt;/reduced-phys-bits&gt;
@ -560,6 +561,13 @@
the disk to a running guest, or similar.
</p>
<h4><a id="featureBackup">backup</a></h4>
<p>Reports whether the hypervisor supports the backup, checkpoint, and
related features. (<code>virDomainBackupBegin</code>,
<code>virDomainCheckpointCreateXML</code> etc).
</p>
<h4><a id="elementsSEV">SEV capabilities</a></h4>
<p>AMD Secure Encrypted Virtualization (SEV) capabilities are exposed under

View File

@ -210,6 +210,9 @@
<optional>
<ref name='backingStoreInput'/>
</optional>
<optional>
<ref name='backup'/>
</optional>
<optional>
<ref name='sev'/>
</optional>
@ -241,6 +244,12 @@
</element>
</define>
<define name='backup'>
<element name='backup'>
<ref name='supported'/>
</element>
</define>
<define name='sev'>
<element name='sev'>
<ref name='supported'/>

View File

@ -41,6 +41,7 @@ VIR_ENUM_IMPL(virDomainCapsFeature,
"vmcoreinfo",
"genid",
"backingStoreInput",
"backup",
);
static virClassPtr virDomainCapsClass;

View File

@ -163,6 +163,7 @@ typedef enum {
VIR_DOMAIN_CAPS_FEATURE_VMCOREINFO,
VIR_DOMAIN_CAPS_FEATURE_GENID,
VIR_DOMAIN_CAPS_FEATURE_BACKING_STORE_INPUT,
VIR_DOMAIN_CAPS_FEATURE_BACKUP,
VIR_DOMAIN_CAPS_FEATURE_LAST
} virDomainCapsFeature;