[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [RFC 2/4] Added flag in ARMCPU to track last execution mode
From: |
Alvise Rigo |
Subject: |
[Qemu-devel] [RFC 2/4] Added flag in ARMCPU to track last execution mode |
Date: |
Tue, 25 Feb 2014 17:52:48 +0100 |
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 <address@hidden>
---
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
[Qemu-devel] [RFC 4/4] Relevant changes to enable KVM to TCG migration, Alvise Rigo, 2014/02/25