]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
cpuCompare*: Add support for reporting failure on incompatible CPUs
authorJiri Denemark <jdenemar@redhat.com>
Wed, 28 May 2014 13:11:57 +0000 (15:11 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Wed, 25 Jun 2014 22:43:54 +0000 (00:43 +0200)
commitb14954fc124efcaa02bd82c95af932119319e010
tree3a475bbcfca320a10c0fd8378aad812006491e6f
parent871e64c66db076e1448255cd2be1839759c01c1a
cpuCompare*: Add support for reporting failure on incompatible CPUs

When CPU comparison APIs return VIR_CPU_COMPARE_INCOMPATIBLE, the caller
has no clue why the CPU is considered incompatible with host CPU. And in
some cases, it would be nice to be able to get such info in a client
rather than having to look in logs.

To achieve this, the APIs can be told to return VIR_ERR_CPU_INCOMPATIBLE
error for incompatible CPUs and the reason will be described in the
associated error message.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
12 files changed:
include/libvirt/virterror.h
src/bhyve/bhyve_driver.c
src/cpu/cpu.c
src/cpu/cpu.h
src/cpu/cpu_aarch64.c
src/cpu/cpu_arm.c
src/cpu/cpu_generic.c
src/cpu/cpu_powerpc.c
src/cpu/cpu_x86.c
src/qemu/qemu_driver.c
src/util/virerror.c
tests/cputest.c