]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
conf: domaincaps: Add 'backup' feature flag
authorPeter Krempa <pkrempa@redhat.com>
Tue, 3 Dec 2019 16:36:35 +0000 (17:36 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 10 Dec 2019 11:41:58 +0000 (12:41 +0100)
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>
docs/formatdomaincaps.html.in
docs/schemas/domaincaps.rng
src/conf/domain_capabilities.c
src/conf/domain_capabilities.h

index 0bafb677054237d2ec79b60a171cf22a35169893..6bf7a1c17ae5eeffc64cf6d2d35846e2c19e4140 100644 (file)
     &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;
     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
index 88b545ec2a6e5ab6421aa8e6ecab5c611fd465ea..682cc82177845a4ebe2342f77b411106a6b23746 100644 (file)
       <optional>
         <ref name='backingStoreInput'/>
       </optional>
+      <optional>
+        <ref name='backup'/>
+      </optional>
       <optional>
         <ref name='sev'/>
       </optional>
     </element>
   </define>
 
+  <define name='backup'>
+    <element name='backup'>
+      <ref name='supported'/>
+    </element>
+  </define>
+
   <define name='sev'>
     <element name='sev'>
       <ref name='supported'/>
index ca208f2340fda0d26d0145d3a65bd9c776d1f00e..921d795630eef0ae52915b23f7bd0e1bc88902f9 100644 (file)
@@ -41,6 +41,7 @@ VIR_ENUM_IMPL(virDomainCapsFeature,
               "vmcoreinfo",
               "genid",
               "backingStoreInput",
+              "backup",
 );
 
 static virClassPtr virDomainCapsClass;
index 4ec9fe006c1939db08fa28d7007d77ee7bc4049e..9f4a23d0159cd800a9fcbab4d5b2a70a30eff2e9 100644 (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;