mirror of https://gitee.com/openkylin/libvirt.git
domain_capabilities: Report <vmcoreinfo> support
Report <features><vmcoreinfo supported='yes'/> if the guest config accepts <features><vmcoreinfo state='on'/> Reviewed-by: John Ferlan <jferlan@redhat.com> Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
217d2656a5
commit
33455bc4ce
|
@ -433,6 +433,7 @@
|
|||
<value>3</value>
|
||||
</enum>
|
||||
</gic>
|
||||
<vmcoreinfo supported='yes'/>
|
||||
</features>
|
||||
</domainCapabilities>
|
||||
</pre>
|
||||
|
@ -457,5 +458,9 @@
|
|||
<code>gic</code> element.</dd>
|
||||
</dl>
|
||||
|
||||
<h4><a id="elementsvmcoreinfo">vmcoreinfo</a></h4>
|
||||
|
||||
<p>Reports whether the vmcoreinfo feature can be enabled</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -183,6 +183,7 @@
|
|||
<element name='features'>
|
||||
<interleave>
|
||||
<ref name='gic'/>
|
||||
<ref name='vmcoreinfo'/>
|
||||
</interleave>
|
||||
</element>
|
||||
</define>
|
||||
|
@ -194,6 +195,12 @@
|
|||
</element>
|
||||
</define>
|
||||
|
||||
<define name='vmcoreinfo'>
|
||||
<element name='vmcoreinfo'>
|
||||
<ref name='supported'/>
|
||||
</element>
|
||||
</define>
|
||||
|
||||
<define name='value'>
|
||||
<zeroOrMore>
|
||||
<element name='value'>
|
||||
|
|
|
@ -583,6 +583,8 @@ virDomainCapsFormat(virDomainCapsPtr const caps)
|
|||
virBufferAdjustIndent(&buf, 2);
|
||||
|
||||
virDomainCapsFeatureGICFormat(&buf, &caps->gic);
|
||||
virBufferAsprintf(&buf, "<vmcoreinfo supported='%s'/>\n",
|
||||
caps->vmcoreinfo ? "yes" : "no");
|
||||
|
||||
virBufferAdjustIndent(&buf, -2);
|
||||
virBufferAddLit(&buf, "</features>\n");
|
||||
|
|
|
@ -158,6 +158,7 @@ struct _virDomainCaps {
|
|||
/* add new domain devices here */
|
||||
|
||||
virDomainCapsFeatureGIC gic;
|
||||
bool vmcoreinfo;
|
||||
/* add new domain features here */
|
||||
};
|
||||
|
||||
|
|
|
@ -4881,6 +4881,9 @@ virQEMUCapsFillDomainCaps(virCapsPtr caps,
|
|||
domCaps->maxvcpus = MIN(domCaps->maxvcpus, hostmaxvcpus);
|
||||
}
|
||||
|
||||
domCaps->vmcoreinfo = virQEMUCapsGet(qemuCaps,
|
||||
QEMU_CAPS_DEVICE_VMCOREINFO);
|
||||
|
||||
if (virQEMUCapsFillDomainOSCaps(os, firmwares, nfirmwares) < 0 ||
|
||||
virQEMUCapsFillDomainCPUCaps(caps, qemuCaps, domCaps) < 0 ||
|
||||
virQEMUCapsFillDomainIOThreadCaps(qemuCaps, domCaps) < 0 ||
|
||||
|
|
|
@ -18,5 +18,6 @@
|
|||
</devices>
|
||||
<features>
|
||||
<gic supported='no'/>
|
||||
<vmcoreinfo supported='no'/>
|
||||
</features>
|
||||
</domainCapabilities>
|
||||
|
|
|
@ -27,5 +27,6 @@
|
|||
</devices>
|
||||
<features>
|
||||
<gic supported='no'/>
|
||||
<vmcoreinfo supported='no'/>
|
||||
</features>
|
||||
</domainCapabilities>
|
||||
|
|
|
@ -44,5 +44,6 @@
|
|||
</devices>
|
||||
<features>
|
||||
<gic supported='no'/>
|
||||
<vmcoreinfo supported='no'/>
|
||||
</features>
|
||||
</domainCapabilities>
|
||||
|
|
|
@ -36,5 +36,6 @@
|
|||
</devices>
|
||||
<features>
|
||||
<gic supported='no'/>
|
||||
<vmcoreinfo supported='no'/>
|
||||
</features>
|
||||
</domainCapabilities>
|
||||
|
|
|
@ -108,5 +108,6 @@
|
|||
</devices>
|
||||
<features>
|
||||
<gic supported='no'/>
|
||||
<vmcoreinfo supported='no'/>
|
||||
</features>
|
||||
</domainCapabilities>
|
||||
|
|
|
@ -70,5 +70,6 @@
|
|||
</devices>
|
||||
<features>
|
||||
<gic supported='no'/>
|
||||
<vmcoreinfo supported='no'/>
|
||||
</features>
|
||||
</domainCapabilities>
|
||||
|
|
|
@ -70,5 +70,6 @@
|
|||
</devices>
|
||||
<features>
|
||||
<gic supported='no'/>
|
||||
<vmcoreinfo supported='no'/>
|
||||
</features>
|
||||
</domainCapabilities>
|
||||
|
|
|
@ -60,5 +60,6 @@
|
|||
</devices>
|
||||
<features>
|
||||
<gic supported='no'/>
|
||||
<vmcoreinfo supported='no'/>
|
||||
</features>
|
||||
</domainCapabilities>
|
||||
|
|
|
@ -60,5 +60,6 @@
|
|||
</devices>
|
||||
<features>
|
||||
<gic supported='no'/>
|
||||
<vmcoreinfo supported='no'/>
|
||||
</features>
|
||||
</domainCapabilities>
|
||||
|
|
|
@ -109,5 +109,6 @@
|
|||
</devices>
|
||||
<features>
|
||||
<gic supported='no'/>
|
||||
<vmcoreinfo supported='no'/>
|
||||
</features>
|
||||
</domainCapabilities>
|
||||
|
|
|
@ -116,5 +116,6 @@
|
|||
<value>3</value>
|
||||
</enum>
|
||||
</gic>
|
||||
<vmcoreinfo supported='yes'/>
|
||||
</features>
|
||||
</domainCapabilities>
|
||||
|
|
|
@ -78,5 +78,6 @@
|
|||
</devices>
|
||||
<features>
|
||||
<gic supported='no'/>
|
||||
<vmcoreinfo supported='no'/>
|
||||
</features>
|
||||
</domainCapabilities>
|
||||
|
|
|
@ -75,5 +75,6 @@
|
|||
</devices>
|
||||
<features>
|
||||
<gic supported='no'/>
|
||||
<vmcoreinfo supported='no'/>
|
||||
</features>
|
||||
</domainCapabilities>
|
||||
|
|
|
@ -140,5 +140,6 @@
|
|||
</devices>
|
||||
<features>
|
||||
<gic supported='no'/>
|
||||
<vmcoreinfo supported='yes'/>
|
||||
</features>
|
||||
</domainCapabilities>
|
||||
|
|
|
@ -113,5 +113,6 @@
|
|||
<value>2</value>
|
||||
</enum>
|
||||
</gic>
|
||||
<vmcoreinfo supported='no'/>
|
||||
</features>
|
||||
</domainCapabilities>
|
||||
|
|
|
@ -109,5 +109,6 @@
|
|||
</devices>
|
||||
<features>
|
||||
<gic supported='no'/>
|
||||
<vmcoreinfo supported='no'/>
|
||||
</features>
|
||||
</domainCapabilities>
|
||||
|
|
|
@ -82,5 +82,6 @@
|
|||
</devices>
|
||||
<features>
|
||||
<gic supported='no'/>
|
||||
<vmcoreinfo supported='no'/>
|
||||
</features>
|
||||
</domainCapabilities>
|
||||
|
|
|
@ -114,5 +114,6 @@
|
|||
</devices>
|
||||
<features>
|
||||
<gic supported='no'/>
|
||||
<vmcoreinfo supported='no'/>
|
||||
</features>
|
||||
</domainCapabilities>
|
||||
|
|
|
@ -75,5 +75,6 @@
|
|||
</devices>
|
||||
<features>
|
||||
<gic supported='no'/>
|
||||
<vmcoreinfo supported='no'/>
|
||||
</features>
|
||||
</domainCapabilities>
|
||||
|
|
|
@ -115,5 +115,6 @@
|
|||
</devices>
|
||||
<features>
|
||||
<gic supported='no'/>
|
||||
<vmcoreinfo supported='no'/>
|
||||
</features>
|
||||
</domainCapabilities>
|
||||
|
|
|
@ -156,5 +156,6 @@
|
|||
</devices>
|
||||
<features>
|
||||
<gic supported='no'/>
|
||||
<vmcoreinfo supported='no'/>
|
||||
</features>
|
||||
</domainCapabilities>
|
||||
|
|
|
@ -115,5 +115,6 @@
|
|||
</devices>
|
||||
<features>
|
||||
<gic supported='no'/>
|
||||
<vmcoreinfo supported='no'/>
|
||||
</features>
|
||||
</domainCapabilities>
|
||||
|
|
|
@ -123,5 +123,6 @@
|
|||
</devices>
|
||||
<features>
|
||||
<gic supported='no'/>
|
||||
<vmcoreinfo supported='no'/>
|
||||
</features>
|
||||
</domainCapabilities>
|
||||
|
|
|
@ -147,5 +147,6 @@
|
|||
</devices>
|
||||
<features>
|
||||
<gic supported='no'/>
|
||||
<vmcoreinfo supported='no'/>
|
||||
</features>
|
||||
</domainCapabilities>
|
||||
|
|
|
@ -124,5 +124,6 @@
|
|||
</devices>
|
||||
<features>
|
||||
<gic supported='no'/>
|
||||
<vmcoreinfo supported='no'/>
|
||||
</features>
|
||||
</domainCapabilities>
|
||||
|
|
Loading…
Reference in New Issue