summaryrefslogtreecommitdiff
path: root/tests/virhostcpudata
Commit message (Collapse)AuthorAgeFilesLines
* tests: Break symlink loopAndrea Bolognani2018-01-118-8/+0
| | | | | | distcheck, and possibly more stuff, breaks because of it. Signed-off-by: Andrea Bolognani <abologna@redhat.com>
* tests: virhostcputest: testcase for S390 systemBjoern Walk2018-01-10108-0/+159
| | | | | | | | | Let's add a testcase for a S390 system running kernel version 4.14 on LPAR. Reviewed-by: Marc Hartmayer <mhartmay@linux.vnet.ibm.com> Reviewed-by: Boris Fiuczynski <fiuczy@linux.vnet.ibm.com> Signed-off-by: Bjoern Walk <bwalk@linux.vnet.ibm.com>
* util: Don't report CPU frequency for ARM hostsAndrea Bolognani2018-01-082-2/+2
| | | | | | | | | | | | | | | | | | | | | Some ARM platforms, such as the original Raspberry Pi, report the CPU frequency in the BogoMIPS field of /proc/cpuinfo, so libvirt parsed that field and returned it through its API. However, not only many more boards don't report any value there, but several - including ARMv8-based server hardware, and even the more recent Raspberry Pi 3 - use this field as originally intended: to report the BogoMIPS value instead of the CPU frequency. Since we have no way of detecting how the field is being used, it's better to report no information at all rather than something ludicrous like "your shiny 96-core aarch64 virtualization host's CPUs are running at a whopping 100 MHz". Partially-resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1206353 Signed-off-by: Andrea Bolognani <abologna@redhat.com> Reviewed-by: John Ferlan <jferlan@redhat.com>
* util: Improve CPU frequency parsingAndrea Bolognani2018-01-081-0/+4
| | | | | | | | | | Make the parser both more strict, by not ignoring errors reported by virStrToLong_ui(), and more permissive, by not failing due to unrelated fields which just happen to have a know prefix and accepting any amount of whitespace before the numeric value. Signed-off-by: Andrea Bolognani <abologna@redhat.com> Reviewed-by: Bjoern Walk <bwalk@linux.vnet.ibm.com>
* tests: Add host CPU data for Moonshot (RHEL 7.4)Andrea Bolognani2018-01-0886-0/+157
| | | | | Signed-off-by: Andrea Bolognani <abologna@redhat.com> Reviewed-by: John Ferlan <jferlan@redhat.com>
* tests: Add linux-caches sysfs entries for vircaps2xmltestMartin Kletzander2017-03-272-0/+2
| | | | | | | Bit more test data, this time with complete info copied, mainly with cache information, so we can easily add tests for it. Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
* tests: Add cpu/{online,present} files for old testsMartin Kletzander2017-03-2714-0/+14
| | | | | | | | | | | The functionality these tests partially relied on (scanning the cpu directory for cpu[0-9]+ subdirectories) is going to be removed, so we need additional files that are present on all non-medieval systems. Removing all these tests would be an option but we would lose the ability to test the topologies. Even though we just extract number of sockets/cores/threads from all these directory trees. Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
* tests: Remove some unneeded filesMartin Kletzander2017-03-2716-15/+0
| | | | | | | We are not using them at all and the directories are missing bunch of files already. Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
* nodeinfo: move host CPU APIs out into virhostcpu.c fileDaniel P. Berrange2016-06-092781-0/+8668
Move all APIs with a virHostCPU name prefix out into new util/virhostcpu.h & util/virhostcpu.c files Signed-off-by: Daniel P. Berrange <berrange@redhat.com>