From: Vijaya Kumar K <vijaya.ku...@cavium.com> The CPU MIDR_EL1 register is exposed to userspace for arm64 with the below patch. https://lkml.org/lkml/2016/7/8/467
Thunderx platform requires explicit prefetch instruction to provide prefetch hint. Using MIDR_EL1 information, provided by above kernel patch, prefetch is executed if the platform is Thunderx. The results of live migration time improvement is provided in commit message of patch 2. Vijaya Kumar K (2): utils: Add helper to read arm MIDR_EL1 register utils: Add prefetch for Thunderx platform include/qemu-common.h | 2 ++ util/Makefile.objs | 1 + util/cpuinfo.c | 90 +++++++++++++++++++++++++++++++++++++++++++++++++ util/cutils.c | 22 ++++++++++++ 4 files changed, 115 insertions(+) create mode 100644 util/cpuinfo.c -- 1.7.9.5