mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-26 23:55:23 +00:00
86a15a2582
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> |
||
---|---|---|
.. | ||
cpu_aarch64.c | ||
cpu_aarch64.h | ||
cpu_arm.c | ||
cpu_arm.h | ||
cpu_generic.c | ||
cpu_generic.h | ||
cpu_map.c | ||
cpu_map.h | ||
cpu_map.xml | ||
cpu_powerpc.c | ||
cpu_powerpc.h | ||
cpu_ppc_data.h | ||
cpu_s390.c | ||
cpu_s390.h | ||
cpu_x86_data.h | ||
cpu_x86.c | ||
cpu_x86.h | ||
cpu.c | ||
cpu.h |