From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42223) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WILHW-0003Lt-Cq for qemu-devel@nongnu.org; Tue, 25 Feb 2014 11:55:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WILHQ-0002Rn-8v for qemu-devel@nongnu.org; Tue, 25 Feb 2014 11:54:58 -0500 Received: from mail-wi0-f177.google.com ([209.85.212.177]:47255) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WILHQ-0002Ri-2b for qemu-devel@nongnu.org; Tue, 25 Feb 2014 11:54:52 -0500 Received: by mail-wi0-f177.google.com with SMTP id e4so1014805wiv.10 for ; Tue, 25 Feb 2014 08:54:51 -0800 (PST) From: Alvise Rigo Date: Tue, 25 Feb 2014 17:52:48 +0100 Message-Id: <1393347170-28502-3-git-send-email-a.rigo@virtualopensystems.com> In-Reply-To: <1393347170-28502-1-git-send-email-a.rigo@virtualopensystems.com> References: <1393347170-28502-1-git-send-email-a.rigo@virtualopensystems.com> Subject: [Qemu-devel] [RFC 2/4] Added flag in ARMCPU to track last execution mode List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Peter Maydell , tech@virtualopensystems.com, Alvise Rigo The value of this flag indicates the execution mode of the CPU prior the migration. It is used to handle the KVM <-> TCG migration. Signed-off-by: Alvise Rigo --- target-arm/cpu-qom.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/target-arm/cpu-qom.h b/target-arm/cpu-qom.h index afbd422..6819bfc 100644 --- a/target-arm/cpu-qom.h +++ b/target-arm/cpu-qom.h @@ -102,6 +102,9 @@ typedef struct ARMCPU { */ uint32_t kvm_target; + /* true if this cpu is using KVM. Read and set in cpu_pre/post_load */ + bool running_kvm; + /* The instance init functions for implementation-specific subclasses * set these fields to specify the implementation-dependent values of * various constant registers and reset values of non-constant -- 1.8.3.2