提交 528191c7 编写于 作者: P Peter Krempa

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: NPeter Krempa <pkrempa@redhat.com>
Reviewed-by: NDaniel P. Berrangé <berrange@redhat.com>
Reviewed-by: NEric Blake <eblake@redhat.com>
Reviewed-by: NJán Tomko <jtomko@redhat.com>
上级 94003024
...@@ -517,6 +517,7 @@ ...@@ -517,6 +517,7 @@
&lt;vmcoreinfo supported='yes'/&gt; &lt;vmcoreinfo supported='yes'/&gt;
&lt;genid supported='yes'/&gt; &lt;genid supported='yes'/&gt;
&lt;backingStoreInput supported='yes'/&gt; &lt;backingStoreInput supported='yes'/&gt;
&lt;backup supported='yes'/&gt;
&lt;sev&gt; &lt;sev&gt;
&lt;cbitpos&gt;47&lt;/cbitpos&gt; &lt;cbitpos&gt;47&lt;/cbitpos&gt;
&lt;reduced-phys-bits&gt;1&lt;/reduced-phys-bits&gt; &lt;reduced-phys-bits&gt;1&lt;/reduced-phys-bits&gt;
...@@ -560,6 +561,13 @@ ...@@ -560,6 +561,13 @@
the disk to a running guest, or similar. the disk to a running guest, or similar.
</p> </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> <h4><a id="elementsSEV">SEV capabilities</a></h4>
<p>AMD Secure Encrypted Virtualization (SEV) capabilities are exposed under <p>AMD Secure Encrypted Virtualization (SEV) capabilities are exposed under
......
...@@ -210,6 +210,9 @@ ...@@ -210,6 +210,9 @@
<optional> <optional>
<ref name='backingStoreInput'/> <ref name='backingStoreInput'/>
</optional> </optional>
<optional>
<ref name='backup'/>
</optional>
<optional> <optional>
<ref name='sev'/> <ref name='sev'/>
</optional> </optional>
...@@ -241,6 +244,12 @@ ...@@ -241,6 +244,12 @@
</element> </element>
</define> </define>
<define name='backup'>
<element name='backup'>
<ref name='supported'/>
</element>
</define>
<define name='sev'> <define name='sev'>
<element name='sev'> <element name='sev'>
<ref name='supported'/> <ref name='supported'/>
......
...@@ -41,6 +41,7 @@ VIR_ENUM_IMPL(virDomainCapsFeature, ...@@ -41,6 +41,7 @@ VIR_ENUM_IMPL(virDomainCapsFeature,
"vmcoreinfo", "vmcoreinfo",
"genid", "genid",
"backingStoreInput", "backingStoreInput",
"backup",
); );
static virClassPtr virDomainCapsClass; static virClassPtr virDomainCapsClass;
......
...@@ -163,6 +163,7 @@ typedef enum { ...@@ -163,6 +163,7 @@ typedef enum {
VIR_DOMAIN_CAPS_FEATURE_VMCOREINFO, VIR_DOMAIN_CAPS_FEATURE_VMCOREINFO,
VIR_DOMAIN_CAPS_FEATURE_GENID, VIR_DOMAIN_CAPS_FEATURE_GENID,
VIR_DOMAIN_CAPS_FEATURE_BACKING_STORE_INPUT, VIR_DOMAIN_CAPS_FEATURE_BACKING_STORE_INPUT,
VIR_DOMAIN_CAPS_FEATURE_BACKUP,
VIR_DOMAIN_CAPS_FEATURE_LAST VIR_DOMAIN_CAPS_FEATURE_LAST
} virDomainCapsFeature; } virDomainCapsFeature;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册