From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55084) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bUWok-00050i-FH for qemu-devel@nongnu.org; Tue, 02 Aug 2016 06:20:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bUWod-0003zf-Fx for qemu-devel@nongnu.org; Tue, 02 Aug 2016 06:20:56 -0400 From: vijay.kilari@gmail.com Date: Tue, 2 Aug 2016 15:50:14 +0530 Message-Id: <1470133216-6758-1-git-send-email-vijay.kilari@gmail.com> Subject: [Qemu-devel] [RFC PATCH v1 0/2] Live migration optimization for Thunderx platform List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-arm@nongnu.org, peter.maydell@linaro.org, pbonzini@redhat.com Cc: qemu-devel@nongnu.org, Prasun.Kapoor@cavium.com, vijay.kilari@gmail.com, Vijaya Kumar K From: Vijaya Kumar K 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