mirror of
https://github.com/libvirt/libvirt.git
synced 2026-09-03 20:53:04 -05:00
conf: Fix formatting of <sev> element in domain capabilities XML
We only formatted the <sev> element when QEMU supported the feature when in fact we should always format the element to make clear that libvirt knows about the feature and the fact whether it is or isn't supported depends on QEMU version, in other words if QEMU doesn't support the feature we're going to format the following into the domain capabilities XML: <sev supported='no'/> This patch also adjusts the RNG schema accordingly in order to reflect the proposed change. Signed-off-by: Erik Skultety <eskultet@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
@@ -185,9 +185,7 @@
|
||||
<ref name='gic'/>
|
||||
<ref name='vmcoreinfo'/>
|
||||
<ref name='vmgenid'/>
|
||||
<optional>
|
||||
<ref name='sev'/>
|
||||
</optional>
|
||||
<ref name='sev'/>
|
||||
</interleave>
|
||||
</element>
|
||||
</define>
|
||||
@@ -213,12 +211,15 @@
|
||||
|
||||
<define name='sev'>
|
||||
<element name='sev'>
|
||||
<element name='cbitpos'>
|
||||
<data type='unsignedInt'/>
|
||||
</element>
|
||||
<element name='reducedPhysBits'>
|
||||
<data type='unsignedInt'/>
|
||||
</element>
|
||||
<ref name='supported'/>
|
||||
<optional>
|
||||
<element name='cbitpos'>
|
||||
<data type='unsignedInt'/>
|
||||
</element>
|
||||
<element name='reducedPhysBits'>
|
||||
<data type='unsignedInt'/>
|
||||
</element>
|
||||
</optional>
|
||||
</element>
|
||||
</define>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user