]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Xen: Fake versions in xencapstest
authorPhilipp Hahn <hahn@univention.de>
Fri, 14 Oct 2011 12:10:26 +0000 (14:10 +0200)
committerEric Blake <eblake@redhat.com>
Fri, 14 Oct 2011 15:42:38 +0000 (09:42 -0600)
commit435b9d99cce9b729de72fffbcae15ea0c1101aef
tree240efa2e056f4d0872468f303c117ae42f6175ee
parent618758c9b4dd260678493646c1b6d6449a96752c
Xen: Fake versions in xencapstest

virInitialize() → xenRegister() → xenhypervisorInit() determines the
version of the Hypervisor. This breaks xencapstest when building as root
on a dom0 system, since xenHypervisorBuildCapabilities() adds the "hap"
and "viridian" features based on the detected version.

Add an optional parameter to xenhypervisorInit() to disable automatic
detection of the Hypervisor version. The passed in arguments are used
instead.

Signed-off-by: Philipp Hahn <hahn@univention.de>
src/xen/xen_driver.c
src/xen/xen_hypervisor.c
src/xen/xen_hypervisor.h
tests/xencapstest.c