diff options
author | Gleb Natapov <gleb@redhat.com> | 2010-04-28 18:15:22 +0200 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-08-01 09:35:28 +0200 |
commit | 9de41573675cbace09b02ef386f3e9c8739d495c (patch) | |
tree | e13a6a4b2326103472f7f18b6fd8c855f5ffdacf /arch/x86/include/asm/kvm_emulate.h | |
parent | KVM: VMX: Avoid writing HOST_CR0 every entry (diff) | |
download | linux-9de41573675cbace09b02ef386f3e9c8739d495c.tar.xz linux-9de41573675cbace09b02ef386f3e9c8739d495c.zip |
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/asm/kvm_emulate.h')
-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 { unsigned long modrm_val; struct fetch_cache fetch; struct read_cache io_read; + struct read_cache mem_read; }; struct x86_emulate_ctxt { |