提交 757203ee 编写于 作者: P Peter Krempa

conf: domcaps: Add 'backingStoreInput' domain capability

Historically we've only supported the <backingStore> as an output-only
element for domain disks. The documentation states that it may become
supported on input. To allow management apps detectin once that happens
add a domain capability which will be asserted if the hypervisor driver
will be able to obey the <backingStore> as configured on input.
Signed-off-by: NPeter Krempa <pkrempa@redhat.com>
Reviewed-by: NDaniel P. Berrangé <berrange@redhat.com>
上级 eef089db
......@@ -516,6 +516,7 @@
&lt;/gic&gt;
&lt;vmcoreinfo supported='yes'/&gt;
&lt;genid supported='yes'/&gt;
&lt;backingStoreInput supported='yes'/&gt;
&lt;sev&gt;
&lt;cbitpos&gt;47&lt;/cbitpos&gt;
&lt;reduced-phys-bits&gt;1&lt;/reduced-phys-bits&gt;
......@@ -552,6 +553,13 @@
<p>Reports whether the genid feature can be used by the domain.</p>
<h4><a id="featureBackingStoreInput">backingStoreInput</a></h4>
<p>Reports whether the hypervisor will obey the &lt;backingStore&gt;
elements configured for a &lt;disk&gt; when booting the guest, hotplugging
the disk to a running guest, or similar.
</p>
<h4><a id="elementsSEV">SEV capabilities</a></h4>
<p>AMD Secure Encrypted Virtualization (SEV) capabilities are exposed under
......
......@@ -207,6 +207,9 @@
<optional>
<ref name='vmgenid'/>
</optional>
<optional>
<ref name='backingStoreInput'/>
</optional>
<optional>
<ref name='sev'/>
</optional>
......@@ -232,6 +235,12 @@
</element>
</define>
<define name='backingStoreInput'>
<element name='backingStoreInput'>
<ref name='supported'/>
</element>
</define>
<define name='sev'>
<element name='sev'>
<ref name='supported'/>
......
......@@ -40,6 +40,7 @@ VIR_ENUM_IMPL(virDomainCapsFeature,
"iothreads",
"vmcoreinfo",
"genid",
"backingStoreInput",
);
static virClassPtr virDomainCapsClass;
......
......@@ -162,6 +162,7 @@ typedef enum {
VIR_DOMAIN_CAPS_FEATURE_IOTHREADS = 0,
VIR_DOMAIN_CAPS_FEATURE_VMCOREINFO,
VIR_DOMAIN_CAPS_FEATURE_GENID,
VIR_DOMAIN_CAPS_FEATURE_BACKING_STORE_INPUT,
VIR_DOMAIN_CAPS_FEATURE_LAST
} virDomainCapsFeature;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册