mirror of
https://github.com/libvirt/libvirt.git
synced 2026-10-02 12:20:06 -05:00
Domain capabilities XML is formatted (mostly) using FORMAT_PROLOGUE and FORMAT_EPILOGUE macros. These format opening and closing stanzas for given element. The FORMAT_PROLOGUE macro even tries to be clever and format element onto one line (if the element isn't supported), but that's not enough. Fortunately, we have virXMLFormatElement() which formats elements properly, so let's switch macros into using that. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com>
54 lines
1.3 KiB
XML
54 lines
1.3 KiB
XML
<domainCapabilities>
|
|
<path>/usr/sbin/bhyve</path>
|
|
<domain>bhyve</domain>
|
|
<arch>x86_64</arch>
|
|
<iothreads supported='no'/>
|
|
<os supported='yes'>
|
|
<loader supported='yes'>
|
|
<value>/foo/bar</value>
|
|
<value>/foo/baz</value>
|
|
<enum name='type'>
|
|
<value>pflash</value>
|
|
</enum>
|
|
<enum name='readonly'>
|
|
<value>yes</value>
|
|
</enum>
|
|
</loader>
|
|
</os>
|
|
<cpu>
|
|
<mode name='host-passthrough' supported='no'/>
|
|
<mode name='maximum' supported='no'/>
|
|
<mode name='host-model' supported='no'/>
|
|
<mode name='custom' supported='no'/>
|
|
</cpu>
|
|
<devices>
|
|
<disk supported='yes'>
|
|
<enum name='diskDevice'>
|
|
<value>disk</value>
|
|
<value>cdrom</value>
|
|
</enum>
|
|
<enum name='bus'>
|
|
<value>virtio</value>
|
|
<value>sata</value>
|
|
</enum>
|
|
<enum name='model'/>
|
|
</disk>
|
|
<graphics supported='no'/>
|
|
<video supported='no'/>
|
|
<hostdev supported='yes'/>
|
|
<console supported='yes'>
|
|
<enum name='type'>
|
|
<value>tcp</value>
|
|
<value>nmdm</value>
|
|
</enum>
|
|
</console>
|
|
</devices>
|
|
<features>
|
|
<gic supported='no'/>
|
|
<vmcoreinfo supported='no'/>
|
|
<genid supported='no'/>
|
|
<sev supported='no'/>
|
|
<sgx supported='no'/>
|
|
</features>
|
|
</domainCapabilities>
|