aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include
diff options
context:
space:
mode:
authorGleb Natapov <gleb@redhat.com>2010-04-28 12:15:22 -0400
committerAvi Kivity <avi@redhat.com>2010-08-01 03:35:28 -0400
commit9de41573675cbace09b02ef386f3e9c8739d495c (patch)
treee13a6a4b2326103472f7f18b6fd8c855f5ffdacf /arch/x86/include
parent1c11e713576edf33b95669be9c2dc0ff1e0c90d3 (diff)
KVM: x86 emulator: introduce read cache
Introduce read cache which is needed for instruction that require more then one exit to userspace. After returning from userspace the instruction will be re-executed with cached read value. Signed-off-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/include')
-rw-r--r--arch/x86/include/asm/kvm_emulate.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/include/asm/kvm_emulate.h b/arch/x86/include/asm/kvm_emulate.h
index 0b2729bf2070..288cbedcab1c 100644
--- a/arch/x86/include/asm/kvm_emulate.h
+++ b/arch/x86/include/asm/kvm_emulate.h
@@ -186,6 +186,7 @@ struct decode_cache {
186 unsigned long modrm_val; 186 unsigned long modrm_val;
187 struct fetch_cache fetch; 187 struct fetch_cache fetch;
188 struct read_cache io_read; 188 struct read_cache io_read;
189 struct read_cache mem_read;
189}; 190};
190 191
191struct x86_emulate_ctxt { 192struct x86_emulate_ctxt {