aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/include/asm/kvm_x86_emulate.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/arch/x86/include/asm/kvm_x86_emulate.h b/arch/x86/include/asm/kvm_x86_emulate.h
index 25179a29f208..16a002655f31 100644
--- a/arch/x86/include/asm/kvm_x86_emulate.h
+++ b/arch/x86/include/asm/kvm_x86_emulate.h
@@ -146,22 +146,18 @@ struct x86_emulate_ctxt {
146 /* Register state before/after emulation. */ 146 /* Register state before/after emulation. */
147 struct kvm_vcpu *vcpu; 147 struct kvm_vcpu *vcpu;
148 148
149 /* Linear faulting address (if emulating a page-faulting instruction) */
150 unsigned long eflags; 149 unsigned long eflags;
151
152 /* Emulated execution mode, represented by an X86EMUL_MODE value. */ 150 /* Emulated execution mode, represented by an X86EMUL_MODE value. */
153 int mode; 151 int mode;
154
155 u32 cs_base; 152 u32 cs_base;
156 153
157 /* decode cache */ 154 /* decode cache */
158
159 struct decode_cache decode; 155 struct decode_cache decode;
160}; 156};
161 157
162/* Repeat String Operation Prefix */ 158/* Repeat String Operation Prefix */
163#define REPE_PREFIX 1 159#define REPE_PREFIX 1
164#define REPNE_PREFIX 2 160#define REPNE_PREFIX 2
165 161
166/* Execution mode, passed to the emulator. */ 162/* Execution mode, passed to the emulator. */
167#define X86EMUL_MODE_REAL 0 /* Real mode. */ 163#define X86EMUL_MODE_REAL 0 /* Real mode. */
@@ -170,7 +166,7 @@ struct x86_emulate_ctxt {
170#define X86EMUL_MODE_PROT64 8 /* 64-bit (long) mode. */ 166#define X86EMUL_MODE_PROT64 8 /* 64-bit (long) mode. */
171 167
172/* Host execution mode. */ 168/* Host execution mode. */
173#if defined(__i386__) 169#if defined(CONFIG_X86_32)
174#define X86EMUL_MODE_HOST X86EMUL_MODE_PROT32 170#define X86EMUL_MODE_HOST X86EMUL_MODE_PROT32
175#elif defined(CONFIG_X86_64) 171#elif defined(CONFIG_X86_64)
176#define X86EMUL_MODE_HOST X86EMUL_MODE_PROT64 172#define X86EMUL_MODE_HOST X86EMUL_MODE_PROT64