libvirt/src/cpu
Daniel Hansel 86a15a2582 cpu-driver: Fix the cross driver function call
For Intel and PowerPC the implementation is calling a cpu driver
function across driver layers (i.e. from qemu driver directly to cpu
driver).
The correct behavior is to use libvirt API functionality to perform such
a inter-driver call.

This patch introduces a new cpu driver API function getModels() to
retrieve the cpu models. The currect implementation to process the
cpu_map XML content is transferred to the INTEL and PowerPC cpu driver
specific API functions.
Additionally processing the cpu_map XML file is not safe due to the fact
that the cpu map does not exist for all architectures. Therefore it is
better to encapsulate the processing in the architecture specific cpu
drivers.

Signed-off-by: Daniel Hansel <daniel.hansel@linux.vnet.ibm.com>
Reviewed-by: Boris Fiuczynski <fiuczy@linux.vnet.ibm.com>
Reviewed-by: Viktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
2014-12-02 10:18:55 -07:00
..
cpu_aarch64.c cpuCompare*: Add support for reporting failure on incompatible CPUs 2014-06-26 00:43:54 +02:00
cpu_aarch64.h AArch64: CPU Support for AArch64 (ARMv8 64bit). 2013-10-15 16:59:26 -04:00
cpu_arm.c cpuCompare*: Add support for reporting failure on incompatible CPUs 2014-06-26 00:43:54 +02:00
cpu_arm.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
cpu_generic.c cpuCompare*: Add support for reporting failure on incompatible CPUs 2014-06-26 00:43:54 +02:00
cpu_generic.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
cpu_map.c Use virBufferCheckError everywhere we report OOM error 2014-07-03 10:48:14 +02:00
cpu_map.h cpu: use typedefs for enums in "src/cpu/cpu_map.h" 2014-06-02 15:15:05 -06:00
cpu_map.xml PowerPC:Improve PVR handling to fall back to cpu generation. 2014-11-07 09:19:58 +01:00
cpu_powerpc.c cpu-driver: Fix the cross driver function call 2014-12-02 10:18:55 -07:00
cpu_powerpc.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
cpu_ppc_data.h Add one file cpu_ppc_data.h to define CPU data for PPC 2012-10-17 10:03:34 +02:00
cpu_s390.c maint: avoid 'const fooPtr' in cpu files 2013-10-14 13:11:20 -06:00
cpu_s390.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
cpu_x86_data.h cpu: x86: Add internal CPUID features support and KVM feature bits 2013-11-08 09:44:42 +01:00
cpu_x86.c cpu-driver: Fix the cross driver function call 2014-12-02 10:18:55 -07:00
cpu_x86.h cpu: Export few x86-specific APIs 2013-11-04 11:26:55 +01:00
cpu.c cpu-driver: Fix the cross driver function call 2014-12-02 10:18:55 -07:00
cpu.h cpu-driver: Fix the cross driver function call 2014-12-02 10:18:55 -07:00