]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
conf: don't check hyperv spinlock retries if disabled
authorJán Tomko <jtomko@redhat.com>
Thu, 4 Jul 2013 10:12:57 +0000 (12:12 +0200)
committerJán Tomko <jtomko@redhat.com>
Thu, 4 Jul 2013 16:39:56 +0000 (18:39 +0200)
commit2e4dd4107e78dfff5d470602e1d18a2a0a40444b
tree16743deea8cad64939726df8a38784a69f5b36b4
parentdb0a18a165dba1e742dbcac2813535e18a86801b
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
docs/schemas/domaincommon.rng
src/conf/domain_conf.c
tests/qemuxml2argvdata/qemuxml2argv-hyperv-off.args [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-hyperv-off.xml [new file with mode: 0644]
tests/qemuxml2argvtest.c
tests/qemuxml2xmltest.c