]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Refactor Hyper-V features check
authorJiri Denemark <jdenemar@redhat.com>
Fri, 10 Mar 2017 22:55:59 +0000 (23:55 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Fri, 17 Mar 2017 10:50:48 +0000 (11:50 +0100)
commite9dbe70110ac2d6ad8264c1c404e5ca4069e0e7b
tree7bf2f790da4388de1c2bc35c6dd855fe6b655e9b
parentfcd56ce86640bf8bc230025a3791593a5bf10507
qemu: Refactor Hyper-V features check

The checks are now in a dedicated qemuProcessVerifyHypervFeatures
function.

In addition to moving the code this patch also fixes a few bugs: the
original code was leaking cpuFeature and the return value of
virCPUDataCheckFeature was not checked properly.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
src/qemu/qemu_process.c