conf: don't check hyperv spinlock retries if disabled

<hyperv>
  <spinlocks state='off'/>
</hyperv>

results in:
error: XML error: missing HyperV spinlock retry count

Don't require retries when state is off and use virXPathUInt
instead of virXPathString to simplify parsing.

https://bugzilla.redhat.com/show_bug.cgi?id=784836#c19
This commit is contained in:
Ján Tomko
2013-07-04 12:12:57 +02:00
parent db0a18a165
commit 2e4dd4107e
6 changed files with 53 additions and 22 deletions

View File

@@ -4054,9 +4054,11 @@
<optional>
<element name="spinlocks">
<ref name="hypervtristate"/>
<attribute name="retries">
<data type="integer"/>
</attribute>
<optional>
<attribute name="retries">
<data type="unsignedInt"/>
</attribute>
</optional>
</element>
</optional>
</interleave>