]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_process: add check for hyperv features
authorPavel Hrdina <phrdina@redhat.com>
Tue, 29 Mar 2016 13:17:45 +0000 (15:17 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Wed, 30 Mar 2016 08:35:15 +0000 (10:35 +0200)
commit95bbe4bf526cb67734415b92c91e34cbca42b3e6
treebe05cec7f4f3cac53258f331fd8d5b08274a6d8b
parente7cc2e3befad24471e070d39cf6f90cc9f7aaf32
qemu_process: add check for hyperv features

Commit 7068b56c introduced several hyperv features.  Not all hyperv
features are supported by old enough kernels and we shouldn't allow to
start a guest if kernel doesn't support any of the hyperv feature.

There is one exception, for backward compatibility we cannot error out
if one of the RELAXED, VAPIC or SPINLOCKS isn't supported, for the same
reason we ignore invtsc, to not break restoring saved domains with older
libvirt.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
src/cpu/cpu_x86.c
src/cpu/cpu_x86_data.h
src/qemu/qemu_process.c