[libvirt][PATCH] running libvirt on the latest kvm snapshot

Anton Protopopov aspsk2 at gmail.com
Fri Aug 7 10:42:27 UTC 2009


Hi.

Libvirt tryes to extract kvm version from the string
  "QEMU PC emulator version <major>.<minor>.<micro> (kvm-<version>)..."
For examle,
  # kvm -help | head -1
  QEMU PC emulator version 0.10.0 (kvm-85), Copyright (c) 2003-2008 Fabrice
Bellard

The problem occures if you are trying to run it on the devel version of kvm:
  # kvm -help | head -1
  QEMU PC emulator version 0.10.0 (kvm-devel), Copyright (c) 2003-2008
Fabrice Bellard
The virParseNumber() obvioulsy fails on the "devel" string here. I
proposeto setup
`kvm_version' to 1000 (that's enough, I think) in that case, so all checks,
such as
  if (kvm_version > 74) ...
will pass.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20090807/1a0247c9/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libvirt_kvm_devel_version.patch
Type: application/octet-stream
Size: 667 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20090807/1a0247c9/attachment-0001.obj>


More information about the libvir-list mailing list