The whole <sev> element was optional which it shouldn't be as if the
platform doesn't support SEV we should format <sev supported='no'/>.
Signed-off-by: Erik Skultety <eskultet(a)redhat.com>
---
docs/schemas/domaincaps.rng | 19 ++++++++++---------
1 file changed, 10 insertions(+), 9 deletions(-)
diff --git a/docs/schemas/domaincaps.rng b/docs/schemas/domaincaps.rng
index e25201fc68..ed29823548 100644
--- a/docs/schemas/domaincaps.rng
+++ b/docs/schemas/domaincaps.rng
@@ -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='reduced-phys-bits'>
+ <data type='unsignedInt'/>
+ </element>
+ </optional>
</element>
</define>
--
2.14.4