]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
qemu: don't fail capabilities check on 0.12.x
authorEric Blake <eblake@redhat.com>
Tue, 18 Jan 2011 16:47:30 +0000 (09:47 -0700)
committerEric Blake <eblake@redhat.com>
Tue, 18 Jan 2011 21:45:53 +0000 (14:45 -0700)
commit93681a3683badadd9003226142a729ec5733d2fb
tree9a51634faac9a57d2eeedd59b75d62d17d486699
parent2a2e0a88018e90a303afa16b3fe816b7d2a527f9
qemu: don't fail capabilities check on 0.12.x

Fixes regression introduced in commit 2211518, where all qemu 0.12.x
fails to start, as does qemu 0.13.x lacking the pci-assign device.
Prior to 2211518, the code was just ignoring a non-zero exit status
from the qemu child, but the virCommand code checked this to avoid
masking any other issues, which means the real bug of provoking
non-zero exit status has been latent for a longer time.

* src/qemu/qemu_capabilities.c (qemuCapsExtractVersionInfo): Check
for -device driver,? support.
(qemuCapsExtractDeviceStr): Avoid failure if all probed devices
are unsupported.
Reported by Ken Congyang.
src/qemu/qemu_capabilities.c