diff options
author | Gleb Natapov <gleb@redhat.com> | 2010-04-28 12:15:22 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-08-01 03:35:28 -0400 |
commit | 9de41573675cbace09b02ef386f3e9c8739d495c (patch) | |
tree | e13a6a4b2326103472f7f18b6fd8c855f5ffdacf /arch/x86/include | |
parent | 1c11e713576edf33b95669be9c2dc0ff1e0c90d3 (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.h | 1 |
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 | ||
191 | struct x86_emulate_ctxt { | 192 | struct x86_emulate_ctxt { |