]> xenbits.xensource.com Git - libvirt.git/commit
Detect newer qemu-kvm versions
authorMark McLoughlin <markmc@redhat.com>
Thu, 11 Jun 2009 14:15:49 +0000 (14:15 +0000)
committerMark McLoughlin <markmc@redhat.com>
Thu, 11 Jun 2009 14:15:49 +0000 (14:15 +0000)
commit04cbe687974b3b46c96fa20180bbb07ffeff69da
treec6a083c5fdaa5ef587198142bfea6b0f954a9d53
parent56ecebf22dd5a235503028e20bf936229037664b
Detect newer qemu-kvm versions

The KVM version string can be one of the following:

  - qemu-kvm-x.y.z in stable releases
  - kvm-XX for kvm versions up to kvm-85
  - qemu-kvm-devel-XX for kvm version kvm-86 and later

There are only a few of places where we need to detect
differences between KVM versions based on 0.9.1:

  1) VNET_HDR introduced in kvm-74

  2) -incoming tcp introduced in kvm-79

  3) -incoming exec introduced in kvm-80

  4) -incoming stdio in all earlier kvm versions

With qemu-kvm-0.10.x, we can now assume that (1) is available
if it's a KVM release, (2) and (3) is always available and
(4) is never available.

So, from now on we should only need to check the qemu version
number and the "is_kvm" flag for detecting feature availability.
We only need the KVM version number for older releases.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
ChangeLog
src/qemu_conf.c